18861N/A#
18861N/A# spec file for package o3read
18861N/A#
18861N/A# Copyright 2008 Sun Microsystems, Inc.
18861N/A# This file and all modifications and additions to the pristine
18861N/A# package are under the same license as the package itself.
18861N/A#
20307N/A%define owner jefftsai
18861N/A#
18861N/A
18861N/A%define OSR 9318:0.x
18861N/A
18861N/AName: o3read
18861N/ALicense: GPL v2
18861N/AGroup: Development/Tools
18861N/AVersion: 0.0.4
18861N/ADistribution: Java Desktop System
18861N/AVendor: siag.nu/o3read
18861N/ASummary: A standalone converter for the OpenOffice.org swriter (*.sxw) and scalc (*.sxc) formats
18861N/ASource: http://siag.nu/pub/o3read/%{name}-%{version}.tar.gz
20307N/A#date:2008-08-01 owner:jefftsai type:branding
18861N/APatch1: o3read-01-man.diff
18861N/AURL: http://siag.nu/o3read/
18861N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18861N/ADocdir: %{_datadir}/doc
18861N/A
18861N/A%description
18861N/AThis is a standalone converter for the OpenOffice.org swriter (.sxw)
18861N/Aand scalc (.sxc) formats.
18861N/A
18861N/A%prep
18861N/A%setup -q
18861N/A%patch1 -p1
18861N/A
18861N/A%build
18861N/A%ifos linux
18861N/Aif [ -x /usr/bin/getconf ]; then
18861N/A CPUS=`getconf _NPROCESSORS_ONLN`
18861N/Afi
18861N/A%else
18861N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
18861N/A%endif
18861N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
18861N/A CPUS=1
18861N/Afi
18861N/A
18861N/Amake -j $CPUS INTLLIBS= GMSGFMT=msgfmt
18861N/A
18861N/A%install
18861N/Amkdir -p $RPM_BUILD_ROOT/usr/bin
18861N/Acp o3read $RPM_BUILD_ROOT/usr/bin
18861N/Acp o3totxt $RPM_BUILD_ROOT/usr/bin
18861N/Acp o3tohtml $RPM_BUILD_ROOT/usr/bin
18861N/Acp utf8tolatin1 $RPM_BUILD_ROOT/usr/bin
18861N/Amkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
18861N/Acp o3read.1 $RPM_BUILD_ROOT/usr/share/man/man1
18861N/Acp o3totxt.1 $RPM_BUILD_ROOT/usr/share/man/man1
18861N/Acp o3tohtml.1 $RPM_BUILD_ROOT/usr/share/man/man1
18861N/Acp utf8tolatin1.1 $RPM_BUILD_ROOT/usr/share/man/man1
18861N/A
18861N/A%clean
18861N/Arm -rf $RPM_BUILD_ROOT;
18861N/A
18861N/A%files
18861N/A%defattr(-,root,root)
18861N/A%{_bindir}/o3read
18861N/A%attr(755,root,root) %{_bindir}/*
18861N/A%{_mandir}/man1/*
18861N/A%{_bindir}/o3*
18861N/A
18861N/A%changelog
18861N/A* Fri Jul 4 2008 - jerry.tan@sun.com
18861N/A- Created spec file for o3read