1 # 2 # spec file for package SUNWo3read 3 # 4 # includes module(s): o3read 5 # 6 # Copyright 2008 Sun Microsystems, Inc. 7 # This file and all modifications and additions to the pristine 8 # package are under the same license as the package itself. 9 # 10 %define owner jerrytan 11 12 %include Solaris.inc 13 14 %use o3read = o3read.spec 15 16 Name: SUNWo3read 17 Summary: A standalone converter for the OpenOffice.org swriter (*.sxw) and scalc (*.sxc) formats into plain text and html 18 Version: %{o3read.version} 19 SUNW_Copyright: %{name}.copyright 20 SUNW_BaseDir: %{_basedir} 21 BuildRoot: %{_tmppath}/%{name}-%{version}-build 22 23 %include default-depend.inc 24 25 %prep 26 rm -rf %name-%version 27 mkdir %name-%version 28 %o3read.prep -d %name-%version 29 30 %build 31 export CFLAGS="%optflags" 32 export RPM_OPT_FLAGS="$CFLAGS" 33 34 %o3read.build -d %name-%version 35 36 %install 37 rm -rf $RPM_BUILD_ROOT 38 %o3read.install -d %name-%version 39 40 # TODO: Remove this line when o3totxt removed from SUNWdesktop-search (tracker). 41 #rm $RPM_BUILD_ROOT%{_bindir}/o3totxt 42 43 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}(o3read):$RPM_ARCH:%(date +%%Y-%%m-%%d):unsupported" $RPM_BUILD_ROOT/usr} 44 45 %clean 46 rm -rf $RPM_BUILD_ROOT 47 48 49 %files 50 %doc -d o3read-%{o3read.version} README 51 %doc(bzip2) -d o3read-%{o3read.version} COPYING ChangeLog 52 %dir %attr (0755, root, other) %{_datadir}/doc 53 %defattr (-, root, bin) 54 %dir %attr (0755, root, bin) %{_bindir} 55 %{_bindir}/* 56 %dir %attr(0755, root, sys) %{_datadir} 57 %dir %attr(0755, root, bin) %{_mandir} 58 %dir %attr(0755, root, bin) %{_mandir}/man1 59 %{_mandir}/man1/* 60 61 62 %changelog 63 * Thu Sep 4 2008 - jerry.tan@sun.com 64 - Add o3totxt back, remove o3totxt from desktop-search 65 66 * Sat Jul 12 2008 - damien.carbery@sun.com 67 - Remove %{_bindir}/o3totxt because it is delivered by SUNWdesktop-search too. 68 69 * Tue Jul 04 2008 - damien.carbery@sun.com 70 - Remove l10n package because no l10n files are installed. 71 72 * Fri Jul 4 2008 - jerry.tan@sun.com 73 - Create new spec for SUNWo3read 74