1 # 2 # spec file for package SUNWgnome-doc-utils 3 # 4 # includes module(s): gucharmap 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 laca 11 # 12 %include Solaris.inc 13 14 %use gnomedocutils = gnome-doc-utils.spec 15 16 Name: SUNWgnome-doc-utils 17 Summary: GNOME documentation utilities 18 Version: %{default_pkg_version} 19 SUNW_BaseDir: %{_basedir} 20 SUNW_Copyright: %{name}.copyright 21 BuildRoot: %{_tmppath}/%{name}-%{version}-build 22 %include default-depend.inc 23 Requires: SUNWlxml-python 24 Requires: SUNWgnome-common-devel 25 Requires: SUNWlxml 26 Requires: SUNWlxsl 27 Requires: SUNWPython 28 BuildRequires: SUNWlxml-devel 29 BuildRequires: SUNWlxsl-devel 30 31 %if %build_l10n 32 %package l10n 33 Summary: %{summary} - l10n content 34 SUNW_BaseDir: %{_basedir} 35 %include default-depend.inc 36 Requires: %{name} 37 %endif 38 39 %prep 40 rm -rf %name-%version 41 mkdir %name-%version 42 %gnomedocutils.prep -d %name-%version 43 44 %build 45 export PKG_CONFIG_PATH=%{_pkg_config_path} 46 export CFLAGS="%optflags -I%{_includedir}" 47 export RPM_OPT_FLAGS="$CFLAGS" 48 export LDFLAGS="%_ldflags" 49 %gnomedocutils.build -d %name-%version 50 51 %install 52 rm -rf $RPM_BUILD_ROOT 53 %gnomedocutils.install -d %name-%version 54 55 # HACK. 56 if [ -d $RPM_BUILD_ROOT%{_libdir}/locale ]; then 57 mv $RPM_BUILD_ROOT%{_libdir}/locale $RPM_BUILD_ROOT%{_datadir} 58 fi 59 60 %if %build_l10n 61 %else 62 # REMOVE l10n FILES 63 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 64 %endif 65 66 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 67 68 %clean 69 rm -rf $RPM_BUILD_ROOT 70 71 %files 72 %defattr (-, root, bin) 73 %dir %attr (0755, root, bin) %{_bindir} 74 %{_bindir}/gnome-doc-prepare 75 %{_bindir}/gnome-doc-tool 76 %{_bindir}/xml2po 77 %dir %attr (0755, root, sys) %{_datadir} 78 %{_datadir}/gnome-doc-utils 79 %dir %attr (0755, root, other) %{_datadir}/gnome 80 %{_datadir}/gnome/help 81 %{_datadir}/omf 82 %{_datadir}/xml 83 %dir %attr(0755, root, bin) %{_mandir} 84 %dir %attr(0755, root, bin) %{_mandir}/* 85 %{_mandir}/*/* 86 %dir %attr (0755, root, bin) %{_libdir} 87 %dir %attr (0755, root, other) %{_libdir}/pkgconfig 88 %{_libdir}/pkgconfig/* 89 %dir %attr (0755, root, other) %{_datadir}/aclocal 90 %{_datadir}/aclocal/* 91 %{_datadir}/pkgconfig/gnome-doc-utils.pc 92 %{_libdir}/python2.4/site-packages/xml2po/*.py 93 %{_libdir}/python2.4/site-packages/xml2po/modes/*.py 94 95 %if %build_l10n 96 %files l10n 97 %defattr (-, root, bin) 98 %dir %attr (0755, root, sys) %dir %{_datadir} 99 %attr (-, root, other) %{_datadir}/locale 100 %endif 101 102 %changelog 103 * Wed Jul 15 2009 - christian.kelly@sun.com 104 - Minor pkg'ing fix. 105 * Thu Jun 18 2009 - christian.kelly (at] sun.com 106 - Minor pkg'ing fix. 107 * Fri Apr 3 2009 - laca@sun.com 108 - stop using postrun 109 * Wed Jul 23 2008 - damien.carbery@sun.com 110 - Modify hack because %{_libdir}/locale is installed on svn_91 but not snv_93. 111 * Sun Mar 16 2008 - damien.carbery@sun.com 112 - Add hack back in to get build going again. Will split 'glib' out of 113 SUNWgnome-base-specs.spec at a later date. 114 * Fri Mar 14 2008 - damien.carbery@sun.com 115 - Remove hack - call aclocal/automake/autoconf in the base spec file. 116 * Tue Mar 11 2008 - damien.carbery@sun.com 117 - Add hack to move locale files from %{_libdir} to %{_datadir}. 118 * Thu Nov 15 2007 - damien.carbery@sun.com 119 - Add BuildRequires SUNWlxml-devel and SUNWlxsl-devel. 120 * Thu Oct 11 2007 - damien.carbery@sun.com 121 - Remove duplicate %{_datadir} line and second %defattr. 122 * Wed Oct 10 2007 - damien.carbery@sun.com 123 - Move -devel package into base package as the module is only used during 124 building. 125 * Thu Aug 23 2007 - laca@sun.com 126 - don't delete lib/locale in %install -- this is now fixed in the base spec 127 - delete $RPM_BUILD_ROOT in %install 128 * Mon May 14 2007 - damien.carbery (at] sun.com 129 - Add SUNWgnome-common-devel dependency for pkg-config. 130 * Fri May 11 2007 - damien.carbery (at] sun.com 131 - Remove unnecessary SUNWgnome-libs dependency. Builds okay without it. 132 * Wed Apr 11 2007 - damien.carbery (at] sun.com 133 - Add l10n package after bumping tarball. 134 * Tue Feb 27 2007 - damien.carbery (at] sun.com 135 - Add %{_bindir}/gnome-doc-tools from new tarball. 136 * Fri Sep 08 2006 - Matt.Keenan (at] sun.com 137 - Remove "rm" of _mandir during %install, deliver xml2po.1 community man page 138 * Sat Aug 12 2006 - laca (at] sun.com 139 - delete some unnecessary env variables 140 * Fri Aug 11 2006 - damien.carbery (at] sun.com 141 - Remove %{_libdir}/locale files because I don't want to create a l10n pkg. 142 * Fri Jul 14 2006 - laca@sun.com 143 - update %post/%postun/etc scripts to support diskless client setup, 144 part of 6448317 145 * Thu Jun 29 2006 - laca@sun.com 146 - update postrun scripts 147 * Sun Jun 11 2006 - laca@sun.com 148 - change group from other to bin/sys 149 * Thu May 04 2006 - laca@sun.com 150 - merge -share pkg(s) into the base pkg(s) 151 * Tue Nov 29 2005 - laca@sun.com 152 - remove javahelp stuff 153 * Wed Oct 19 2005 - damien.carbery@sun.com 154 - Add SUNWPython dependency as xml2po uses python. 155 * Wed Jul 06 2005 - laca@sun.com 156 - remove mandir from %files, it's not there 157 - remove l10n subpkg, there's no l10n content 158 * Mon Jul 04 2005 - matt.keenan@sun.com 159 - Initial spec file needed by SUNWgnome-help-viewer (yelp) 160 161