1 # 2 # spec file for package SUNWgnome-config-editor 3 # 4 # includes module(s): gconf-editor 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: stephen 11 # 12 %include Solaris.inc 13 14 %use gceditor = gconf-editor.spec 15 16 Name: SUNWgnome-config-editor 17 Summary: GNOME configuration database editor 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 24 %include default-depend.inc 25 Requires: SUNWgnome-config-editor-root 26 Requires: SUNWgnome-config 27 Requires: SUNWgnome-base-libs 28 Requires: SUNWgnome-libs 29 Requires: SUNWbzip 30 Requires: SUNWzlib 31 Requires: SUNWlxml 32 Requires: SUNWlibpopt 33 BuildRequires: SUNWlibpopt-devel 34 BuildRequires: SUNWgnome-base-libs-devel 35 BuildRequires: SUNWgnome-libs-devel 36 BuildRequires: SUNWgnome-config-devel 37 Requires: SUNWpostrun 38 39 %package root 40 Summary: %{summary} - / filesystem 41 SUNW_BaseDir: / 42 %include default-depend.inc 43 Requires: SUNWpostrun-root 44 45 %if %build_l10n 46 %package l10n 47 Summary: %{summary} - l10n files 48 SUNW_BaseDir: %{_basedir} 49 %include default-depend.inc 50 Requires: %{name} 51 %endif 52 53 %prep 54 rm -rf %name-%version 55 mkdir %name-%version 56 %gceditor.prep -d %name-%version 57 cd %{_builddir}/%name-%version 58 gzcat %SOURCE0 | tar xf - 59 60 %build 61 export PKG_CONFIG_PATH=%{_pkg_config_path} 62 export LDFLAGS="%_ldflags" 63 export CFLAGS="%optflags" 64 export RPM_OPT_FLAGS="$CFLAGS" 65 66 %gceditor.build -d %name-%version 67 68 %install 69 rm -rf $RPM_BUILD_ROOT 70 %gceditor.install -d %name-%version 71 rm -rf $RPM_BUILD_ROOT%{_mandir} 72 cd %{_builddir}/%name-%version/sun-manpages 73 make install DESTDIR=$RPM_BUILD_ROOT 74 75 rm -rf $RPM_BUILD_ROOT%{_prefix}/var 76 rm -rf $RPM_BUILD_ROOT/var 77 78 %if %build_l10n 79 %else 80 # REMOVE l10n FILES 81 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 82 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]* 83 rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf 84 #rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf 85 %endif 86 87 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 88 89 %clean 90 rm -rf $RPM_BUILD_ROOT 91 92 %post 93 ( echo 'test -x /usr/bin/update-desktop-database || exit 0'; 94 echo '/usr/bin/update-desktop-database' 95 ) | $BASEDIR/lib/postrun -b -u -c JDS_wait 96 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; 97 echo '/usr/bin/scrollkeeper-update' 98 ) | $BASEDIR/lib/postrun -b -u -c JDS 99 100 %postun 101 test -x $BASEDIR/lib/postrun || exit 0 102 ( echo 'test -x /usr/bin/update-desktop-database || exit 0'; 103 echo '/usr/bin/update-desktop-database' 104 ) | $BASEDIR/lib/postrun -b -u -c JDS 105 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; 106 echo '/usr/bin/scrollkeeper-update' 107 ) | $BASEDIR/lib/postrun -b -u -c JDS 108 109 %post root 110 %include gconf-install.script 111 112 %preun root 113 test -x $BASEDIR/var/lib/postrun/postrun || exit 0 114 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; 115 echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; 116 echo ' exit 0'; 117 echo '}'; 118 echo 'umask 0022'; 119 echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; 120 echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; 121 echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; 122 echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; 123 echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; 124 echo 'schemas="$SDIR/gconf-editor.schemas"'; 125 echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' 126 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a 127 128 %files 129 %defattr (-, root, bin) 130 %dir %attr (0755, root, bin) %{_bindir} 131 %{_bindir}/* 132 %dir %attr (0755, root, sys) %{_datadir} 133 %dir %attr (0755, root, other) %{_datadir}/applications 134 %{_datadir}/applications/* 135 %dir %attr (0755, root, other) %{_datadir}/gnome 136 %{_datadir}/gnome/help/gconf-editor/C 137 %{_datadir}/omf/gconf-editor/*-C.omf 138 %dir %attr (0755, root, other) %{_datadir}/pixmaps 139 %{_datadir}/pixmaps/* 140 %attr (-, root, other) %{_datadir}/icons 141 %dir %attr(0755, root, bin) %{_mandir} 142 %dir %attr(0755, root, bin) %{_mandir}/* 143 %{_mandir}/*/* 144 145 %files root 146 %defattr (-, root, sys) 147 %dir %attr (0755, root, sys) %{_sysconfdir} 148 %{_sysconfdir}/gconf/schemas/gconf-editor.schemas 149 150 %if %build_l10n 151 %files l10n 152 %defattr (-, root, bin) 153 %dir %attr (0755, root, sys) %{_datadir} 154 %dir %attr (0755, root, other) %{_datadir}/gnome 155 %{_datadir}/gnome/help/gconf-editor/[a-z][a-z] 156 %{_datadir}/omf/gconf-editor/gconf-editor-[a-z][a-z].omf 157 %attr (-, root, other) %{_datadir}/locale 158 %endif 159 160 161 %changelog 162 * Thu Jan 3 2008 - laca@sun.com 163 - use gconf-install.script instead of an inline script 164 * Tue Dec 19 2006 - damien.carbery@sun.com 165 - Add l10n files to the l10n package. 166 * Fri Sep 01 2006 - Matt.Keenan@sun.com 167 - New Manpage tarball 168 * Wed Aug 16 2006 - damien.carbery@sun.com 169 - Remove scrollkeeper files under /var. Remove missing help files from l10n 170 pkg. 171 * Sat Aug 12 2006 - laca@sun.com 172 - delete some unnecessary env variables; set CFLAGS 173 * Sat Aug 12 2006 - laca@sun.com 174 - change datadir/icons permissions back to root:other since it's a stable 175 interface and wasn't supposed to be changed 176 * Fri Jul 14 2006 - laca@sun.com 177 - update %post/%postun/etc scripts to support diskless client setup, 178 part of 6448317 179 * Thu Jun 29 2006 - laca@sun.com 180 - update postrun scripts 181 * Sun Jun 11 2006 - laca@sun.com 182 - change group from other to bin/sys 183 * Thu May 25 2006 - laca@sun.com 184 - use post/preun scripts to install schemas into the merged gconf files 185 * Wed May 10 2006 - laca@sun.com 186 - merge -share pkg(s) into the base pkg(s) 187 * Mon Feb 20 2006 - damien.carbery@sun.com 188 - Complete update of Build/Requires after running check-deps.pl script. 189 * Thu Feb 16 2006 - damien.carbery@sun.com 190 - Update Build/Requires after running check-deps.pl script. 191 * Wed Jan 25 2006 - damien.carbery@sun.com 192 - Call gconf-merge-tree in %post to process /etc/gconf/gconf.xml.defaults in 193 root pkg. Add required SUNWpostrun dependency. 194 * Wed Jan 04 2006 - damien.carbery@sun.com 195 - Add BuildRequires to avoid build errors. 196 * Sat Dec 3 2005 - laca@sun.com 197 - add %post script that runs update-desktop-database 198 * Tue Nov 29 2005 - laca@sun.com 199 - remove javahelp stuff 200 * Tue Sep 13 2005 - laca@sun.com 201 - define root subpkg, install gconf schemas, add unpackaged files to %files 202 * Sat Oct 02 2004 - laca@sun.com 203 - added %pkgbuild_postprocess 204 * Wed Aug 25 2004 Kazuhiko.Maekawa@sun.com 205 - Added l10n help entries in files 206 * Tue Aug 24 2004 vinay.mandyakoppal@wipro.com 207 - Added %{_datadir}/gnome/help/gconf-editor/C to install help. 208 * Sun Jun 27 2004 shirley.woo@sun.com 209 - Added BuildRequires SUNWgnome-javahelp-convert 210 * Sat Jun 26 2004 shirley.woo@sun.com 211 - Changed install location to /usr/... 212 * Wed Jun 2 2004 - takao.fujiwara@sun.com 213 - Added %{_datadir}/locale to install l10n messages 214 * Wed Mar 24 2004 - brian.cameron@sun.com 215 - Added SGML man page integration 216 * Thu Feb 26 2004 - <niall.power@sun.com> 217 - define PERL5LIB for XML::Parser 218 - remove unnecessary CFLAGS definitions 219 - fix permissions of %{_mandir} 220 * Tue Feb 17 2004 - <niall.power@sun.com> 221 - Inital Solaris spec file created 222