1 # 2 # spec file for package SUNWdrivel 3 # 4 # includes module(s): drivel 5 # 6 # Copyright 2009 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 ydzhang 11 # 12 13 %include Solaris.inc 14 15 %use drivel = drivel.spec 16 17 Name: SUNWdrivel 18 Summary: Drivel - Blog Editor 19 Version: %{drivel.version} 20 SUNW_Copyright: %{name}.copyright 21 SUNW_BaseDir: %{_basedir} 22 BuildRoot: %{_tmppath}/%{name}-%{version}-build 23 Source1: %{name}-manpages-0.1.tar.gz 24 25 # these packages are only available on i386/x64 26 %ifnarch sparc 27 28 %include default-depend.inc 29 Requires: SUNWlibgnomecanvas 30 Requires: SUNWgnome-libs 31 Requires: SUNWgnome-gtksourceview 32 Requires: SUNWgnome-print 33 Requires: SUNWgtkspell 34 Requires: SUNWgnu-idn 35 Requires: SUNWcurl 36 Requires: %{name}-root 37 Requires: SUNWdesktop-cache 38 BuildRequires: SUNWlibgnomecanvas-devel 39 BuildRequires: SUNWgnome-libs-devel 40 BuildRequires: SUNWgnome-gtksourceview-devel 41 BuildRequires: SUNWgnome-print-devel 42 BuildRequires: SUNWgtkspell-devel 43 44 %if %build_l10n 45 %package l10n 46 Summary: %{summary} - l10n files 47 SUNW_BaseDir: %{_basedir} 48 %include default-depend.inc 49 Requires: %{name} 50 %endif 51 52 %package root 53 Summary: %{summary} - / filesystem 54 SUNW_BaseDir: / 55 %include default-depend.inc 56 57 %prep 58 rm -rf %name-%version 59 mkdir -p %name-%version 60 %drivel.prep -d %name-%version 61 cd %{_builddir}/%name-%version 62 gzcat %SOURCE1 | tar xf - 63 64 %build 65 export CFLAGS="%optflags" 66 export LDFLAGS="%{_ldflags}" 67 %drivel.build -d %name-%version 68 69 %install 70 rm -rf $RPM_BUILD_ROOT 71 %drivel.install -d %name-%version 72 73 # install man page 74 rm -rf $RPM_BUILD_ROOT%{_mandir} 75 cd %{_builddir}/%name-%version/sun-manpages 76 make install DESTDIR=$RPM_BUILD_ROOT 77 78 %if %build_l10n 79 %else 80 # REMOVE l10n FILES 81 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 82 %endif 83 84 %clean 85 rm -rf $RPM_BUILD_ROOT 86 87 %post 88 %restart_fmri desktop-mime-cache icon-cache gconf-cache 89 90 %postun 91 %restart_fmri desktop-mime-cache 92 93 %files 94 %doc -d drivel-%{drivel.version} README AUTHORS 95 %doc(bzip2) -d drivel-%{drivel.version} COPYING ChangeLog po/ChangeLog NEWS 96 %dir %attr (0755, root, other) %{_datadir}/doc 97 %defattr (-, root, bin) 98 %dir %attr (0755, root, bin) %{_bindir} 99 %{_bindir}/drivel 100 %dir %attr (0755, root, sys) %{_datadir} 101 %{_datadir}/drivel 102 %dir %attr (0755, root, other) %{_datadir}/applications 103 %{_datadir}/applications/* 104 %dir %attr (0755, root, bin) %{_datadir}/omf 105 %{_datadir}/omf/drivel 106 %dir %attr (0755, root, other) %{_datadir}/pixmaps 107 %{_datadir}/pixmaps/drivel 108 %{_datadir}/pixmaps/*.png 109 %dir %attr (0755, root, other) %{_datadir}/mime-info 110 %{_datadir}/mime-info/* 111 %dir %attr (0755, root, root) %{_datadir}/mime 112 %dir %attr (0755, root, root) %{_datadir}/mime/packages 113 %{_datadir}/mime/packages/* 114 %dir %attr (0755, root, other) %{_datadir}/application-registry 115 %{_datadir}/application-registry/* 116 %dir %attr (0755, root, other) %{_datadir}/icons 117 %dir %attr (0755, root, other) %{_datadir}/icons/gnome 118 %dir %attr (0755, root, other) %{_datadir}/icons/gnome/* 119 %dir %attr (0755, root, other) %{_datadir}/icons/gnome/*/mimetypes 120 %{_datadir}/icons/gnome/*/mimetypes/* 121 %dir %attr (0755, root, other) %{_datadir}/gnome 122 %dir %attr (0755, root, bin) %{_datadir}/gnome/help 123 %dir %attr (0755, root, bin) %{_datadir}/gnome/help/drivel 124 %{_datadir}/gnome/help/drivel/C 125 %dir %attr(0755, root, bin) %{_mandir} 126 %dir %attr(0755, root, bin) %{_mandir}/* 127 %{_mandir}/*/* 128 129 %if %build_l10n 130 %files l10n 131 %defattr (-, root, bin) 132 %dir %attr (0755, root, sys) %{_datadir} 133 %attr (-, root, other) %{_datadir}/locale 134 %endif 135 136 %files root 137 %defattr (-, root, sys) 138 %attr (0755, root, sys) %dir %{_sysconfdir} 139 %{_sysconfdir}/gconf/schemas/drivel.schemas 140 141 #endif for "ifnarch sparc" 142 %endif 143 144 %changelog 145 * Fri Apr 3 2009 - laca@sun.com 146 - use desktop-cache instead of postrun 147 * Mon Mar 9 2009 - david.zhang@sun.com 148 - Add ifnarch sparc so that it only build at i386/x64 platform 149 * Wed Feb 11 2009 - david.zhang@sun.com 150 - Initial spec 151 152