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: padraig 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][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 %doc -d gconf-editor-%{gceditor.version} README AUTHORS MAINTAINERS 130 %doc(bzip2) -d gconf-editor-%{gceditor.version} COPYING NEWS ChangeLog 131 %dir %attr (0755, root, other) %{_datadir}/doc 132 %defattr (-, root, bin) 133 %dir %attr (0755, root, bin) %{_bindir} 134 %{_bindir}/* 135 %dir %attr (0755, root, sys) %{_datadir} 136 %dir %attr (0755, root, other) %{_datadir}/applications 137 %{_datadir}/applications/* 138 %dir %attr (0755, root, other) %{_datadir}/gnome 139 %{_datadir}/gnome/help/gconf-editor/C 140 %{_datadir}/omf/gconf-editor/*-C.omf 141 %dir %attr (0755, root, other) %{_datadir}/gconf-editor 142 %{_datadir}/gconf-editor/* 143 %attr (-, root, other) %{_datadir}/icons 144 %dir %attr(0755, root, bin) %{_mandir} 145 %dir %attr(0755, root, bin) %{_mandir}/* 146 %{_mandir}/*/* 147 148 %files root 149 %defattr (-, root, sys) 150 %dir %attr (0755, root, sys) %{_sysconfdir} 151 %{_sysconfdir}/gconf/schemas/gconf-editor.schemas 152 153 %if %build_l10n 154 %files l10n 155 %defattr (-, root, bin) 156 %dir %attr (0755, root, sys) %{_datadir} 157 %dir %attr (0755, root, other) %{_datadir}/gnome 158 %{_datadir}/gnome/help/gconf-editor/[a-z][a-z] 159 %{_datadir}/gnome/help/gconf-editor/[a-z][a-z]_[A-Z][A-Z] 160 %{_datadir}/omf/gconf-editor/gconf-editor-[a-z][a-z].omf 161 %{_datadir}/omf/gconf-editor/gconf-editor-[a-z][a-z]_[A-Z][A-Z].omf 162 %attr (-, root, other) %{_datadir}/locale 163 %endif 164 165 166 %changelog 167 * Thu Oct 09 2008 - halton.huo@sun.com 168 - Remove %{_datadir}/omf/*/*-[a-z][a-z]_[A-Z][A-Z].omf if not use --with-l10n 169 * Tue Sep 30 2008 - padraig.obriain@sun.com 170 - Update copyright file. 171 * Wed Sep 24 2008 - christian.kelly@sun.com 172 - Fix %files l10n. 173 * Thu Jan 3 2008 - laca@sun.com 174 - use gconf-install.script instead of an inline script 175 * Tue Dec 19 2006 - damien.carbery@sun.com 176 - Add l10n files to the l10n package. 177 * Fri Sep 01 2006 - Matt.Keenan@sun.com 178 - New Manpage tarball 179 * Wed Aug 16 2006 - damien.carbery@sun.com 180 - Remove scrollkeeper files under /var. Remove missing help files from l10n 181 pkg. 182 * Sat Aug 12 2006 - laca@sun.com 183 - delete some unnecessary env variables; set CFLAGS 184 * Sat Aug 12 2006 - laca@sun.com 185 - change datadir/icons permissions back to root:other since it's a stable 186 interface and wasn't supposed to be changed 187 * Fri Jul 14 2006 - laca@sun.com 188 - update %post/%postun/etc scripts to support diskless client setup, 189 part of 6448317 190 * Thu Jun 29 2006 - laca@sun.com 191 - update postrun scripts 192 * Sun Jun 11 2006 - laca@sun.com 193 - change group from other to bin/sys 194 * Thu May 25 2006 - laca@sun.com 195 - use post/preun scripts to install schemas into the merged gconf files 196 * Wed May 10 2006 - laca@sun.com 197 - merge -share pkg(s) into the base pkg(s) 198 * Mon Feb 20 2006 - damien.carbery@sun.com 199 - Complete update of Build/Requires after running check-deps.pl script. 200 * Thu Feb 16 2006 - damien.carbery@sun.com 201 - Update Build/Requires after running check-deps.pl script. 202 * Wed Jan 25 2006 - damien.carbery@sun.com 203 - Call gconf-merge-tree in %post to process /etc/gconf/gconf.xml.defaults in 204 root pkg. Add required SUNWpostrun dependency. 205 * Wed Jan 04 2006 - damien.carbery@sun.com 206 - Add BuildRequires to avoid build errors. 207 * Sat Dec 3 2005 - laca@sun.com 208 - add %post script that runs update-desktop-database 209 * Tue Nov 29 2005 - laca@sun.com 210 - remove javahelp stuff 211 * Tue Sep 13 2005 - laca@sun.com 212 - define root subpkg, install gconf schemas, add unpackaged files to %files 213 * Sat Oct 02 2004 - laca@sun.com 214 - added %pkgbuild_postprocess 215 * Wed Aug 25 2004 Kazuhiko.Maekawa@sun.com 216 - Added l10n help entries in files 217 * Tue Aug 24 2004 vinay.mandyakoppal@wipro.com 218 - Added %{_datadir}/gnome/help/gconf-editor/C to install help. 219 * Sun Jun 27 2004 shirley.woo@sun.com 220 - Added BuildRequires SUNWgnome-javahelp-convert 221 * Sat Jun 26 2004 shirley.woo@sun.com 222 - Changed install location to /usr/... 223 * Wed Jun 2 2004 - takao.fujiwara@sun.com 224 - Added %{_datadir}/locale to install l10n messages 225 * Wed Mar 24 2004 - brian.cameron@sun.com 226 - Added SGML man page integration 227 * Thu Feb 26 2004 - <niall.power@sun.com> 228 - define PERL5LIB for XML::Parser 229 - remove unnecessary CFLAGS definitions 230 - fix permissions of %{_mandir} 231 * Tue Feb 17 2004 - <niall.power@sun.com> 232 - Inital Solaris spec file created 233