1 # 2 # spec file for package SUNWgnome-help-viewer 3 # 4 # includes module(s): yelp 5 # 6 # Copyright 2007 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 # Owner: mattman 11 # 12 %include Solaris.inc 13 14 %use yelp = yelp.spec 15 16 Name: SUNWgnome-help-viewer 17 Summary: GNOME help system 18 Version: %{default_pkg_version} 19 Source: %{name}-manpages-0.1.tar.gz 20 SUNW_BaseDir: %{_basedir} 21 SUNW_Copyright: %{name}.copyright 22 BuildRoot: %{_tmppath}/%{name}-%{version}-build 23 %include default-depend.inc 24 Requires: SUNWgnome-libs 25 Requires: SUNWgnome-vfs 26 Requires: SUNWgnome-component 27 Requires: SUNWgnome-base-libs 28 Requires: SUNWgnome-config 29 Requires: SUNWlxml 30 Requires: SUNWlxsl 31 Requires: SUNWfirefox 32 Requires: SUNWbzip 33 Requires: SUNWgnome-print 34 Requires: SUNWlibC 35 Requires: SUNWlibpopt 36 Requires: SUNWzlib 37 Requires: SUNWpostrun 38 BuildRequires: SUNWgnome-print-devel 39 BuildRequires: SUNWlibpopt-devel 40 BuildRequires: SUNWfirefox-devel 41 BuildRequires: SUNWgnome-print-devel 42 BuildRequires: SUNWgnome-vfs-devel 43 BuildRequires: SUNWgnome-component-devel 44 BuildRequires: SUNWgnome-libs-devel 45 BuildRequires: SUNWgnome-base-libs-devel 46 BuildRequires: SUNWgnome-config-devel 47 BuildRequires: SUNWgnome-doc-utils 48 BuildRequires: SUNWlxml 49 BuildRequires: SUNWlxsl 50 51 %package root 52 Summary: %{summary} - / filesystem 53 SUNW_BaseDir: / 54 %include default-depend.inc 55 Requires: SUNWpostrun-root 56 Requires: SUNWgnome-config 57 58 %if %build_l10n 59 %package l10n 60 Summary: %{summary} - l10n files 61 SUNW_BaseDir: %{_basedir} 62 %include default-depend.inc 63 Requires: %{name} 64 %endif 65 66 %prep 67 rm -rf %name-%version 68 mkdir %name-%version 69 %yelp.prep -d %name-%version 70 cd %{_builddir}/%name-%version 71 gzcat %SOURCE0 | tar xf - 72 73 74 %build 75 export CFLAGS="%optflags -I%{_includedir}/mps -DANSICPP -DI_KNOW_RARIAN_0_8_IS_UNSTABLE" 76 export RPM_OPT_FLAGS="$CFLAGS" 77 export CXXFLAGS="%cxx_optflags -I%{_includedir}/mps" 78 export ACLOCAL_FLAGS="-I ./m4" 79 %if %cc_is_gcc 80 %else 81 export CXX="${CXX} -norunpath" 82 %endif 83 export LDFLAGS="%_ldflags" 84 85 %yelp.build -d %name-%version 86 87 %install 88 %yelp.install -d %name-%version 89 rm -rf $RPM_BUILD_ROOT%{_mandir} 90 cd %{_builddir}/%name-%version/sun-manpages 91 make install DESTDIR=$RPM_BUILD_ROOT 92 93 %if %build_l10n 94 %else 95 # REMOVE l10n FILES 96 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 97 %endif 98 99 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 100 101 %clean 102 rm -rf $RPM_BUILD_ROOT 103 104 %post 105 ( echo 'test -x /usr/bin/update-desktop-database || exit 0'; 106 echo '/usr/bin/update-desktop-database' 107 ) | $BASEDIR/lib/postrun -b -u -c JDS_wait 108 109 %postun 110 test -x $BASEDIR/lib/postrun || exit 0 111 ( echo 'test -x /usr/bin/update-desktop-database || exit 0'; 112 echo '/usr/bin/update-desktop-database' 113 ) | $BASEDIR/lib/postrun -b -u -c JDS 114 115 %post root 116 %include gconf-install.script 117 118 %preun root 119 test -x $BASEDIR/var/lib/postrun/postrun || exit 0 120 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; 121 echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; 122 echo ' exit 0'; 123 echo '}'; 124 echo 'umask 0022'; 125 echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; 126 echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; 127 echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; 128 echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; 129 echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; 130 echo 'retval=0'; 131 echo 'for schemas in yelp; do' ; 132 echo ' $PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $SDIR/$schemas.schemas || retval=1'; 133 echo 'done'; 134 echo 'exit $retval' 135 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a 136 137 %files 138 %defattr (-, root, bin) 139 %dir %attr (0755, root, bin) %{_bindir} 140 %{_bindir}/* 141 %dir %attr(0755, root, sys) %{_datadir} 142 %dir %attr (0755, root, other) %{_datadir}/applications 143 %{_datadir}/applications/* 144 %attr (-, root, other) %{_datadir}/icons 145 %{_datadir}/yelp 146 %dir %attr(0755, root, bin) %{_mandir} 147 %dir %attr(0755, root, bin) %{_mandir}/* 148 %{_mandir}/*/* 149 150 %files root 151 %defattr (-, root, sys) 152 %attr (0755, root, sys) %dir %{_sysconfdir} 153 %{_sysconfdir}/gconf/schemas/yelp.schemas 154 155 %if %build_l10n 156 %files l10n 157 %defattr (-, root, bin) 158 %dir %attr (0755, root, sys) %{_datadir} 159 %attr (-, root, other) %{_datadir}/locale 160 %endif 161 162 %changelog 163 * Fri Jul 18 2008 - dave.lin@sun.com 164 - Removed the self-dependency 165 * Fri May 16 2008 - evan.yan@sun.com 166 - Undo Evan's change - revert todepend on SUNWfirefox/-devel because FF3 is not 167 stable enough to be the default browser in Nevada. 168 * Thu May 15 2008 - damien.carbery (at] sun.com 169 - Remove references to /usr/sfw because freetype2 is under /usr now. 170 * Thu May 08 2008 - evan.yan (at] sun.com 171 - Remove Build/Requires SUNWfirefox/-devel because we have moved dependence to 172 firefox3 and will remove firefox2 from vermillion. 173 * Mon Apr 21 2008 - damien.carbery (at] sun.com 174 - Add Build/Requires SUNWfirefox3/-devel because yelp has been patched to use 175 firefox3. 176 * Thu Jan 24 2008 - glynn.foster (at] sun.com 177 - Fix up gconf install 178 * Wed Nov 28 2008 - damien.carbery (at] sun.com 179 - Add -DI_KNOW_RARIAN_0_8_IS_UNSTABLE to CFLAGS as required by rarian-info.h. 180 * Thu Oct 11 2007 - damien.carbery (at] sun.com 181 - Remove install dependency on SUNWgnome-doc-utils and change the build 182 dependency from SUNWgnome-doc-utils-devel to SUNWgnome-doc-utils. 183 * Fri Sep 28 2007 - laca (at] sun.com 184 - delete SUNWxwrtl dep 185 - add -norunpath flag for CXX and fix LDFLAGS 186 * Fri Aug 17 2007 - damien.carbery (at] sun.com 187 - Move rarian to SUNWgnome-libs.spec, replacing scrollkeeper. Remove devel 188 package and other rarian related changes. 189 * Wed Aug 01 2007 - damien.carbery (at] sun.com 190 - Add rarian module as required by yelp 2.19.1. 191 * Mon Sep 04 2006 - Matt.Keenan (at] sun.com 192 - New Manpage tarball 193 * Sat Aug 12 2006 - laca (at] sun.com 194 - delete some unnecessary env variables 195 * Sat Aug 12 2006 - laca (at] sun.com 196 - change datadir/icons permissions back to root:other since it's a stable 197 interface and wasn't supposed to be changed 198 * Wed Jul 26 2006 - matt.keenan (at] sun.com 199 - Bump to 2.15.5, update %files, bonobo support has been removed. 200 * Fri Jul 14 2006 - laca (at] sun.com 201 - update %post/%postun/etc scripts to support diskless client setup, 202 part of 6448317 203 * Thu Jun 29 2006 - laca (at] sun.com 204 - update postrun scripts 205 * Sun Jun 11 2006 - laca (at] sun.com 206 - change group from other to bin/sys 207 * Sat May 13 2006 - laca (at] sun.com 208 - Remove /usr/lib/jds-private from LDFLAGS 209 * Wed May 10 2006 - laca (at] sun.com 210 - merge -share pkg(s) into the base pkg(s) 211 * Mon Feb 20 2006 - damien.carbery (at] sun.com 212 - Update Build/Requires after running check-deps.pl script. 213 * Thu Jan 05 2006 - damien.carbery (at] sun.com 214 - Complete the Build/Requires lists. 215 * Sat Dec 3 2005 - laca (at] sun.com 216 - add %post script that runs update-desktop-database 217 * Fri Sep 30 2005 - damien.carbery (at] sun.com 218 - Add icons dir to %files; remove /etc dir before packaging. 219 * Thu Jul 21 2005 - damien.carbery (at] sun.com 220 - Add SUNWmozilla dependency as configure breaking without mozilla. 221 * Sat Oct 02 2004 - laca (at] sun.com 222 - added %pkgbuild_postprocess 223 * Wed Aug 18 2004 - damien.carbery (at] sun.com 224 - Change manpage perms for Solaris integration. 225 * Fri Jul 09 2004 - damien.carbery (at] sun.com 226 - Return -R to LDFLAGS. I had incorrectly implemented the ARC decision. 227 * Thu Jul 08 2004 - damien.carbery (at] sun.com 228 - Remove -R from LDFLAGS because ARC said to use -norunpath. 229 * Fri Jul 02 2004 - damien.carbery (at] sun.com 230 - Add /usr/lib/jds-private to LDFLAGS. 231 * Sat Jun 26 2004 shirley.woo (at] sun.com 232 - Changed install location to /usr/... 233 * Wed Jun 2 2004 - takao.fujiwara (at] sun.com 234 - Added %{_datadir}/locale to install l10n messages 235 * Fri May 14 2004 - laca (at] sun.com 236 - Added libxslt dependency 237 * Wed Mar 24 2004 - brian.cameron (at] sun.com 238 - Added SGML man page integration 239 * Mon Mar 01 2004 - <laca (at] sun.com> 240 - define PERL5LIB. 241 - remove non-existant dirs from %files share 242 * Tue Feb 17 2004 - <niall.power (at] sun.com 243 - initial spec file created 244 245