1 # 2 # spec file for package SUNWgnome-character-map 3 # 4 # includes module(s): gucharmap 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 # Owner: dkenny 11 # 12 %include Solaris.inc 13 14 %use gucharmap = gucharmap.spec 15 16 Name: SUNWgnome-character-map 17 Summary: GNOME character map utility 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-base-libs 26 BuildRequires: SUNWgnome-libs-devel 27 BuildRequires: SUNWgnome-base-libs-devel 28 BuildRequires: SUNWgnome-doc-utils 29 Requires: SUNWpostrun 30 Requires: %{name}-root 31 32 %package root 33 Summary: %{summary} - / filesystem 34 SUNW_BaseDir: / 35 %include default-depend.inc 36 Requires: SUNWpostrun-root 37 Requires: SUNWgnome-config 38 39 %package devel 40 Summary: %{summary} - development files 41 SUNW_BaseDir: %{_basedir} 42 %include default-depend.inc 43 Requires: SUNWgnome-character-map 44 Requires: SUNWperl584usr 45 Requires: SUNWlibms 46 47 %if %build_l10n 48 %package l10n 49 Summary: %{summary} - l10n files 50 SUNW_BaseDir: %{_basedir} 51 %include default-depend.inc 52 Requires: %{name} 53 %endif 54 55 %prep 56 rm -rf %name-%version 57 mkdir %name-%version 58 %gucharmap.prep -d %name-%version 59 cd %{_builddir}/%name-%version 60 gzcat %SOURCE0 | tar xf - 61 62 %build 63 export PKG_CONFIG_PATH=%{_pkg_config_path} 64 export CFLAGS="%optflags -I%{_includedir}" 65 export RPM_OPT_FLAGS="$CFLAGS" 66 export LDFLAGS="%_ldflags" 67 export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" 68 %gucharmap.build -d %name-%version 69 70 %install 71 %gucharmap.install -d %name-%version 72 rm -rf $RPM_BUILD_ROOT%{_mandir} 73 cd %{_builddir}/%name-%version/sun-manpages 74 make install DESTDIR=$RPM_BUILD_ROOT 75 76 # Remove scrollkeeper files. 77 rm -rf $RPM_BUILD_ROOT%{_localstatedir} 78 79 %if %build_l10n 80 %else 81 # REMOVE l10n FILES 82 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 83 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]* 84 rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf 85 rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf 86 %endif 87 88 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 89 90 %clean 91 rm -rf $RPM_BUILD_ROOT 92 93 %post 94 ( echo 'test -x /usr/bin/update-desktop-database || exit 0'; 95 echo '/usr/bin/update-desktop-database' 96 ) | $BASEDIR/lib/postrun -b -u -c JDS_wait 97 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; 98 echo '/usr/bin/scrollkeeper-update' 99 ) | $BASEDIR/lib/postrun -b -u -c JDS 100 101 %postun 102 test -x $BASEDIR/lib/postrun || exit 0 103 ( echo 'test -x /usr/bin/update-desktop-database || exit 0'; 104 echo '/usr/bin/update-desktop-database' 105 ) | $BASEDIR/lib/postrun -b -u -c JDS 106 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; 107 echo '/usr/bin/scrollkeeper-update' 108 ) | $BASEDIR/lib/postrun -b -u -c JDS 109 110 %post root 111 %include gconf-install.script 112 113 %preun root 114 test -x $BASEDIR/var/lib/postrun/postrun || exit 0 115 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; 116 echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; 117 echo ' exit 0'; 118 echo '}'; 119 echo 'umask 0022'; 120 echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; 121 echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; 122 echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; 123 echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; 124 echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; 125 echo 'schemas="$SDIR/metacity.schemas"'; 126 echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' 127 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a 128 129 %files 130 %defattr (-, root, bin) 131 %dir %attr (0755, root, bin) %{_bindir} 132 %{_bindir}/*char*map* 133 %dir %attr (0755, root, bin) %{_libdir} 134 %{_libdir}/libgucharmap*.so* 135 %dir %attr (0755, root, sys) %{_datadir} 136 %dir %attr (0755, root, other) %{_datadir}/applications 137 %{_datadir}/applications/gucharmap.desktop 138 %dir %attr (0755, root, other) %{_datadir}/gnome 139 %{_datadir}/gnome/help/gucharmap/C 140 %{_datadir}/omf/gucharmap/gucharmap-C.omf 141 %dir %attr(0755, root, bin) %{_mandir} 142 %dir %attr(0755, root, bin) %{_mandir}/* 143 %{_mandir}/*/*char*map* 144 %doc -d gucharmap-%{gucharmap.version} AUTHORS COPYING.UNICODE NEWS README 145 %doc -d gucharmap-%{gucharmap.version} ChangeLog.README 146 %doc(bzip2) -d gucharmap-%{gucharmap.version} COPYING ChangeLog 147 %doc(bzip2) -d gucharmap-%{gucharmap.version} ChangeLog.pre-2-23 148 %doc(bzip2) -d gucharmap-%{gucharmap.version} help/ChangeLog.pre-2-23 149 %doc(bzip2) -d gucharmap-%{gucharmap.version} po/ChangeLog.pre-2-23 150 %dir %attr (0755, root, other) %{_datadir}/doc 151 152 %files root 153 %defattr (-, root, sys) 154 %attr (0755, root, sys) %dir %{_sysconfdir} 155 %{_sysconfdir}/gconf/schemas/gucharmap.schemas 156 157 %files devel 158 %defattr (-, root, bin) 159 %dir %attr (0755, root, bin) %{_libdir} 160 %dir %attr (0755, root, other) %{_libdir}/pkgconfig 161 %{_libdir}/pkgconfig/* 162 %dir %attr (0755, root, bin) %{_includedir} 163 %{_includedir}/* 164 165 %if %build_l10n 166 %files l10n 167 %defattr (-, root, bin) 168 %dir %attr (0755, root, sys) %{_datadir} 169 %dir %attr (0755, root, other) %{_datadir}/gnome 170 %attr (-, root, other) %{_datadir}/locale 171 %{_datadir}/gnome/help/*/[a-z]* 172 %{_datadir}/omf/*/*-[a-z][a-z].omf 173 %{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf 174 %endif 175 176 %changelog 177 * Fri Sep 12 2008 - matt.keenn@sun.com 178 - Update copyright 179 * Tue Jun 17 2008 - damien.carbery@sun.com 180 - Update %files as the %{_datadir}/icons dir is no longer delivered - a stock 181 icon is used. 182 * Thu Jun 12 2008 - darren.kenny@sun.com 183 - Add missing root package dependency 184 * Thu Jan 3 2008 - laca@sun.com 185 - use gconf-install.script instead of an inline script 186 * Wed Nov 05 2007 - damien.carbery@sun.com 187 - Add root package and post/preun scripts for gucharmap.schemas. 188 * Wed Oct 10 2007 - damien.carbery@sun.com 189 - Remove 'Requires: SUNWgnome-doc-utils' as it is only used during building; 190 change SUNWgnome-doc-utils-devel to SUNWgnome-doc-utils to match change in 191 SUNWgnome-doc-utils.spec. 192 * Fri Sep 01 2006 - Matt.Keenan@sun.com 193 - New Manpage tarball 194 * Fri Aug 25 2006 - brian.cameron@sun.com 195 - Add new charmap.1 manpage. 196 * Sat Aug 12 2006 - laca@sun.com 197 - delete some unnecessary env variables 198 * Sat Aug 12 2006 - laca@sun.com 199 - change datadir/icons permissions back to root:other since it's a stable 200 interface and wasn't supposed to be changed 201 * Fri Jul 14 2006 - laca@sun.com 202 - update %post/%postun/etc scripts to support diskless client setup, 203 part of 6448317 204 * Thu Jun 29 2006 - laca@sun.com 205 - update postrun scripts 206 * Sun Jun 11 2006 - laca@sun.com 207 - change group from other to bin/sys 208 * Fri Jun 02 2006 - damien.carbery@sun.com 209 - Add Build/Requires SUNWgnome-doc-utils/-devel otherwise build fails. 210 * Wed May 10 2006 - laca@sun.com 211 - merge -share pkg(s) into the base pkg(s) 212 * Mon Feb 20 2006 - damien.carbery@sun.com 213 - Update Build/Requires after running check-deps.pl script. 214 * Tue Feb 14 2006 - damien.carbery@sun.com 215 - Change %files share for new tarball (gucharmap.png now under icons). 216 * Mon Jan 30 2006 - damien.carbery@sun.com 217 - Delete scrollkeeper files before packaging. 218 * Sat Dec 3 2005 - laca@sun.com 219 - add %post script that runs update-desktop-database 220 * Tue Nov 29 2005 - laca@sun.com 221 - remove javahelp stuff 222 * Tue May 17 2005 - brian.cameron@sun.com 223 - Split out from SUNWgnome-utils.spec, since it is now a dependancy 224 on gnome-applets (in SUNWgnome-panel) and SUNWgnome-utils depends 225 on SUNWgnome-panel. 226