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