1 # 2 # spec file for package SUNWgnome-config 3 # 4 # includes module(s): GConf 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 %define owner stephen 11 %include Solaris.inc 12 13 %ifarch amd64 sparcv9 14 %include arch64.inc 15 %use gconf_64 = GConf.spec 16 %endif 17 18 %include base.inc 19 %use gconf = GConf.spec 20 21 Name: SUNWgnome-config 22 Summary: GNOME configuration framework 23 Version: %{default_pkg_version} 24 Source: %{name}-manpages-0.1.tar.gz 25 SUNW_BaseDir: %{_basedir} 26 SUNW_Copyright: %{name}.copyright 27 BuildRoot: %{_tmppath}/%{name}-%{version}-build 28 29 %include default-depend.inc 30 BuildRequires: SUNWgtk2-devel 31 Requires: SUNWgtk2 32 Requires: SUNWgnome-config-root 33 Requires: SUNWlxml 34 Requires: SUNWgnome-component 35 Requires: SUNWlibpopt 36 Requires: SUNWdbus 37 Requires: SUNWdbus-glib 38 Requires: SUNWdesktop-cache 39 BuildRequires: SUNWgnome-component-devel 40 BuildRequires: SUNWdbus-devel 41 BuildRequires: SUNWdbus-glib-devel 42 43 %package root 44 Summary: %{summary} - / filesystem 45 SUNW_BaseDir: / 46 %include default-depend.inc 47 48 %package devel 49 Summary: %{summary} - development files 50 SUNW_BaseDir: %{_basedir} 51 %include default-depend.inc 52 Requires: SUNWgtk2-devel 53 54 %if %build_l10n 55 %package l10n 56 Summary: %{summary} - l10n files 57 SUNW_BaseDir: %{_basedir} 58 %include default-depend.inc 59 Requires: %{name} 60 %endif 61 62 %prep 63 rm -rf %name-%version 64 mkdir %name-%version 65 66 %ifarch amd64 sparcv9 67 mkdir %name-%version/%_arch64 68 %gconf_64.prep -d %name-%version/%_arch64 69 %endif 70 71 mkdir %name-%version/%{base_arch} 72 %gconf.prep -d %name-%version/%{base_arch} 73 74 cd %{_builddir}/%name-%version 75 gzcat %SOURCE0 | tar xf - 76 77 %build 78 %ifarch amd64 sparcv9 79 %gconf_64.build -d %name-%version/%_arch64 80 %endif 81 82 export EXTRA_LDFLAGS="" 83 %gconf.build -d %name-%version/%{base_arch} 84 85 %install 86 rm -rf $RPM_BUILD_ROOT 87 88 %ifarch amd64 sparcv9 89 %gconf_64.install -d %name-%version/%_arch64 90 %endif 91 92 %gconf.install -d %name-%version/%{base_arch} 93 94 rm -rf $RPM_BUILD_ROOT%{_datadir}/man 95 cd %{_builddir}/%name-%version/sun-manpages 96 make install DESTDIR=$RPM_BUILD_ROOT 97 98 %ifarch amd64 sparcv9 99 rm -f $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/gconfd-2 100 rm -f $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/gconf-sanity-check-2 101 %endif 102 103 rm -f $RPM_BUILD_ROOT%{_bindir}/gconf-merge-tree 104 105 %if %build_l10n 106 %else 107 # REMOVE l10n FILES 108 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 109 %endif 110 111 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 112 113 %clean 114 rm -rf $RPM_BUILD_ROOT 115 116 %files 117 %doc -d %{base_arch}/GConf-%{gconf.version} README 118 %doc(bzip2) -d %{base_arch}/GConf-%{gconf.version} COPYING NEWS ChangeLog 119 %dir %attr (0755, root, other) %{_datadir}/doc 120 %defattr (-, root, bin) 121 %dir %attr (0755, root, bin) %{_bindir} 122 %{_bindir}/gconftool-2 123 %dir %attr (0755, root, bin) %{_libdir} 124 %{_libdir}/libgconf-2.so* 125 %{_libdir}/GConf/2/lib*.so 126 %{_libexecdir}/gconf-sanity-check-2 127 %{_libexecdir}/gconfd-2 128 %ifarch amd64 sparcv9 129 %dir %attr (0755, root, bin) %{_bindir}/%{_arch64} 130 %{_bindir}/%{_arch64}/gconf-merge-tree 131 %{_bindir}/%{_arch64}/gconftool-2 132 %dir %attr (0755, root, bin) %{_libdir}/%{_arch64} 133 %{_libdir}/%{_arch64}/libgconf-2.so* 134 %{_libdir}/%{_arch64}/GConf/2/lib*.so 135 %endif 136 %dir %attr (0755, root, sys) %{_datadir} 137 %{_datadir}/dbus-1 138 %{_datadir}/sgml/gconf/gconf-1.0.dtd 139 %dir %attr(0755, root, bin) %{_mandir} 140 %dir %attr(0755, root, bin) %{_mandir}/man1 141 %{_mandir}/man1/* 142 143 %files root 144 %defattr (-, root, sys) 145 %attr (0755, root, sys) %dir %{_sysconfdir} 146 %config %{_sysconfdir}/gconf 147 148 %files devel 149 %defattr (-, root, bin) 150 %dir %attr (0755, root, bin) %{_libdir} 151 %dir %attr (0755, root, other) %{_libdir}/pkgconfig 152 %{_libdir}/pkgconfig/* 153 %dir %attr (0755, root, bin) %{_includedir} 154 %{_includedir}/* 155 %ifarch amd64 sparcv9 156 %dir %attr (0755, root, bin) %{_libdir}/%{_arch64} 157 %dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig 158 %{_libdir}/%{_arch64}/pkgconfig/* 159 %endif 160 %dir %attr (0755, root, sys) %{_datadir} 161 %{_datadir}/gtk-doc 162 %dir %attr (0755, root, other) %{_datadir}/aclocal 163 %{_datadir}/aclocal/* 164 %dir %attr(0755, root, bin) %{_mandir} 165 %dir %attr(0755, root, bin) %{_mandir}/man3 166 %{_mandir}/man3/* 167 168 %if %build_l10n 169 %files l10n 170 %defattr (-, root, bin) 171 %dir %attr (0755, root, sys) %{_datadir} 172 %attr (-, root, other) %{_datadir}/locale 173 %endif 174 175 %post 176 %restart_fmri gconf-cache 177 178 %changelog 179 * Wed Apr 29 2009 - laca@sun.com 180 - add desktop-cache dependency and ping gconf-cache after installation 181 * Tue Mar 24 2009 - jeff.cai@sun.com 182 - Since /usr/lib/amd64/pkgconfig/gconf-2.0.pc (SUNWgnome-config-devel) 183 requires /usr/lib/amd64/pkgconfig/glib-2.0.pc which is found in 184 SUNWgnome-base-libs-devel, add the dependency. 185 * Thu Mar 05 2009 - brian.cameron@sun.com 186 - Change SUNWdbus-bindings to SUNWdbus-glib. 187 * Fri Sep 19 2008 - dave.lin@sun.com 188 - Set attribute of /usr/share/doc in base pkg %files section. 189 * Mon Sep 15 2008 - christian.kelly@sun.com 190 - Remove /usr/share/doc from %files. 191 * Wed Sep 10 2008 - padraig.obriain@sun.com 192 - Add %doc to %files for copyright 193 * Wed Aug 06 2008 - dermot.mccluskey@sun.com 194 - Bug 6703986 : Remove references to /usr/lib/ST/64 195 * Wed Jun 04 2008 - damien.carbery@sun.com 196 - Add Build/Requires SUNWdbus and SUNWdbus-bindings for GConf 2.23.1. Update 197 %files for dbus files. 198 * Fri Sep 28 2007 - laca@sun.com 199 - convert to new style multi-ISA build 200 * Tue Jul 03 2007 - damien.carbery@sun.com 201 - Remove %{_datadir}/GConf from %files as it is no longer installed. 202 * Fri Sep 01 2006 - Matt.Keenan@sun.com 203 - New Manpage tarball 204 * Thu Jun 29 2006 - laca@sun.com 205 - don't include gconf-merge-tree. Now that we're only using the merged 206 data, gconf-merge-tree can only cause trouble 207 * Thu Jun 22 2006 - damien.carbery@sun.com 208 - Correct LDFLAGS64 to use %{_arch64} and move sparc-specific settings to 209 a %ifarch sparcv9 section. 210 * Sun Jun 11 2006 - laca@sun.com 211 - change group from other to bin/sys 212 * Wed May 10 2006 - laca@sun.com 213 - merge -share pkg(s) into the base pkg(s) 214 * Tue Sep 20 2005 - laca@sun.com 215 - delete unpackaged files or add them to %files 216 * Tue Sep 06 2005 - laca@sun.com 217 - fix the 64-bit build 218 * Fri Sep 02 2005 - laca@sun.com 219 - remove unpackaged files 220 * Sat Oct 02 2004 - laca@sun.com 221 - added %pkgbuild_postprocess 222 * Sat Oct 2 2004 - Joseph.Townsend@Sun.COM 223 - Create 64bit libraries for Solaris 224 * Mon Aug 30 2004 - shirley.woo@sun.com 225 - Bug 5091588 : sman3/4 files should be in a separate devel package 226 * Tue Aug 24 2004 - laca@sun.com 227 - set all files in /etc/gconf to volatile, fixes 5090975 228 * Sun Aug 22 2004 - laca@sun.com 229 - fix dependencies: don't depend on -devel pkgs 230 * Wed Aug 18 2004 - damien.carbery (at] sun.com 231 - Change manpage perms for Solaris integration. 232 * Mon Jul 05 2004 - damien.carbery (at] sun.com 233 - Add BuildRequires: SUNWgnome-base-libs-devel 234 * Sat Jun 26 2004 - shirley.woo (at] sun.com 235 - Changed install location to /usr/... 236 * Thu May 27 2004 - laca (at] sun.com 237 - added l10n subpkg 238 * Thu May 05 2004 - brian.cameron (at] sun.com 239 - removed aclocal files from share since they were already 240 in devel-share. 241 * Sun Apr 04 2004 - laca (at] sun.com 242 - added some missing files to %files 243 * Wed Mar 24 2004 - brian.cameron (at] sun.com 244 - Added SGML man page integration 245 * Mon Jan 26 2004 - Laszlo.Peter (at] sun.com 246 - initial version added to CVS 247 248