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 %doc -d yelp-%{yelp.version} AUTHORS README 150 %doc(bzip2) -d yelp-%{yelp.version} COPYING ChangeLog NEWS 151 %doc(bzip2) -d yelp-%{yelp.version} stylesheets/ChangeLog po/ChangeLog 152 %dir %attr (0755, root, other) %{_datadir}/doc 153 154 %files root 155 %defattr (-, root, sys) 156 %attr (0755, root, sys) %dir %{_sysconfdir} 157 %{_sysconfdir}/gconf/schemas/yelp.schemas 158 159 %if %build_l10n 160 %files l10n 161 %defattr (-, root, bin) 162 %dir %attr (0755, root, sys) %{_datadir} 163 %attr (-, root, other) %{_datadir}/locale 164 %endif 165 166 %changelog 167 * Thu Sep 11 2008 - matt.keenn@sun.com 168 - Update copyright 169 * Fri Jul 18 2008 - dave.lin@sun.com 170 - Removed the self-dependency 171 * Fri May 16 2008 - evan.yan@sun.com 172 - Undo Evan's change - revert todepend on SUNWfirefox/-devel because FF3 is not 173 stable enough to be the default browser in Nevada. 174 * Thu May 15 2008 - damien.carbery (at] sun.com 175 - Remove references to /usr/sfw because freetype2 is under /usr now. 176 * Thu May 08 2008 - evan.yan (at] sun.com 177 - Remove Build/Requires SUNWfirefox/-devel because we have moved dependence to 178 firefox3 and will remove firefox2 from vermillion. 179 * Mon Apr 21 2008 - damien.carbery (at] sun.com 180 - Add Build/Requires SUNWfirefox3/-devel because yelp has been patched to use 181 firefox3. 182 * Thu Jan 24 2008 - glynn.foster (at] sun.com 183 - Fix up gconf install 184 * Wed Nov 28 2008 - damien.carbery (at] sun.com 185 - Add -DI_KNOW_RARIAN_0_8_IS_UNSTABLE to CFLAGS as required by rarian-info.h. 186 * Thu Oct 11 2007 - damien.carbery (at] sun.com 187 - Remove install dependency on SUNWgnome-doc-utils and change the build 188 dependency from SUNWgnome-doc-utils-devel to SUNWgnome-doc-utils. 189 * Fri Sep 28 2007 - laca (at] sun.com 190 - delete SUNWxwrtl dep 191 - add -norunpath flag for CXX and fix LDFLAGS 192 * Fri Aug 17 2007 - damien.carbery (at] sun.com 193 - Move rarian to SUNWgnome-libs.spec, replacing scrollkeeper. Remove devel 194 package and other rarian related changes. 195 * Wed Aug 01 2007 - damien.carbery (at] sun.com 196 - Add rarian module as required by yelp 2.19.1. 197 * Mon Sep 04 2006 - Matt.Keenan (at] sun.com 198 - New Manpage tarball 199 * Sat Aug 12 2006 - laca (at] sun.com 200 - delete some unnecessary env variables 201 * Sat Aug 12 2006 - laca (at] sun.com 202 - change datadir/icons permissions back to root:other since it's a stable 203 interface and wasn't supposed to be changed 204 * Wed Jul 26 2006 - matt.keenan (at] sun.com 205 - Bump to 2.15.5, update %files, bonobo support has been removed. 206 * Fri Jul 14 2006 - laca (at] sun.com 207 - update %post/%postun/etc scripts to support diskless client setup, 208 part of 6448317 209 * Thu Jun 29 2006 - laca (at] sun.com 210 - update postrun scripts 211 * Sun Jun 11 2006 - laca (at] sun.com 212 - change group from other to bin/sys 213 * Sat May 13 2006 - laca (at] sun.com 214 - Remove /usr/lib/jds-private from LDFLAGS 215 * Wed May 10 2006 - laca (at] sun.com 216 - merge -share pkg(s) into the base pkg(s) 217 * Mon Feb 20 2006 - damien.carbery (at] sun.com 218 - Update Build/Requires after running check-deps.pl script. 219 * Thu Jan 05 2006 - damien.carbery (at] sun.com 220 - Complete the Build/Requires lists. 221 * Sat Dec 3 2005 - laca (at] sun.com 222 - add %post script that runs update-desktop-database 223 * Fri Sep 30 2005 - damien.carbery (at] sun.com 224 - Add icons dir to %files; remove /etc dir before packaging. 225 * Thu Jul 21 2005 - damien.carbery (at] sun.com 226 - Add SUNWmozilla dependency as configure breaking without mozilla. 227 * Sat Oct 02 2004 - laca (at] sun.com 228 - added %pkgbuild_postprocess 229 * Wed Aug 18 2004 - damien.carbery (at] sun.com 230 - Change manpage perms for Solaris integration. 231 * Fri Jul 09 2004 - damien.carbery (at] sun.com 232 - Return -R to LDFLAGS. I had incorrectly implemented the ARC decision. 233 * Thu Jul 08 2004 - damien.carbery (at] sun.com 234 - Remove -R from LDFLAGS because ARC said to use -norunpath. 235 * Fri Jul 02 2004 - damien.carbery (at] sun.com 236 - Add /usr/lib/jds-private to LDFLAGS. 237 * Sat Jun 26 2004 shirley.woo (at] sun.com 238 - Changed install location to /usr/... 239 * Wed Jun 2 2004 - takao.fujiwara (at] sun.com 240 - Added %{_datadir}/locale to install l10n messages 241 * Fri May 14 2004 - laca (at] sun.com 242 - Added libxslt dependency 243 * Wed Mar 24 2004 - brian.cameron (at] sun.com 244 - Added SGML man page integration 245 * Mon Mar 01 2004 - <laca (at] sun.com> 246 - define PERL5LIB. 247 - remove non-existant dirs from %files share 248 * Tue Feb 17 2004 - <niall.power (at] sun.com 249 - initial spec file created 250 251