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