Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package GConf
      3 #
      4 # Copyright (c) 2005 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 # Owner:stephen
      9 Name:         GConf
     10 License:      LGPL
     11 Group:        System/Libraries/GNOME
     12 Provides:     GConf
     13 Version:      2.16.0
     14 Release:      1
     15 Distribution: Java Desktop System
     16 Vendor:       Sun Microsystems, Inc.
     17 Summary:      GNOME Configuration Framework
     18 Source:       http://ftp.gnome.org/pub/GNOME/sources/GConf/2.16/GConf-%{version}.tar.bz2
     19 Source1:      gconftool-2.1.gz
     20 Source2:      libgconf-2.3.gz
     21 #owner:cyrillem date:2004-05-19 type:branding
     22 Patch1:       GConf-01-apoc-path-update.diff
     23 #owner:gheet date:2004-06-03 type:bug
     24 Patch2:       GConf-02-daemon-hanged-solaris.diff
     25 #owner:toshi date:2004-08-02 type:bug bugster:5042863 bugzilla:100378
     26 Patch3:       GConf-03-g11n-locale-alias.diff
     27 #owner:laca date:2006-06-29 type:feature
     28 Patch4:       GConf-04-GCONF_BACKEND_DIR.diff
     29 #owner:laca date:2006-06-06 type:bug
     30 Patch5:       GConf-05-gconftool-makefile-install.diff
     31 #owner:padraig date:2006-09-25 type:bug bugster:6366879 bugzilla:357206
     32 Patch6:       GConf-06-use-fdwalk.diff
     33 URL:	      http://www.gnome.org
     34 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
     35 Docdir:	      %{_defaultdocdir}/doc
     36 Autoreqprov:  on
     37 Prereq:       /sbin/ldconfig
     38 
     39 %define gtk2_version 2.4.0
     40 %define libxml2_version 2.6.7
     41 %define ORBit2_version 2.10.1
     42 %define gtk_doc_version 1.1
     43 %define popt_version 1.7
     44 
     45 Requires: gtk2 >= %{gtk2_version}
     46 Requires: libxml2 >= %{libxml2_version}
     47 Requires: ORBit2 >= %{ORBit2_version}
     48 Requires: popt >= %{popt_version}
     49 BuildRequires: gtk2-devel >= %{gtk2_version}
     50 BuildRequires: libxml2-devel >= %{libxml2_version}
     51 BuildRequires: ORBit2-devel >= %{ORBit2_version}
     52 BuildRequires: popt-devel >= %{popt_version}
     53 BuildRequires: gtk-doc >= %{gtk_doc_version}
     54 
     55 %description
     56 GConf is the Configuration Framework for the GNOME Desktop.
     57 
     58 %package devel
     59 Summary:      GNOME Configuration Framework Development Libraries
     60 Group:        Development/Libraries/GNOME
     61 Requires:     %{name} = %{version}
     62 Requires:     libxml2-devel >= %{libxml2_version}
     63 Requires:     ORBit2-devel >= %{ORBit2_version}
     64 Requires:     gtk2-devel >= %{gtk2_version}
     65 
     66 %description devel
     67 GConf is the Configuration Framework for the GNOME Desktop.
     68 
     69 %prep
     70 %setup -q
     71 %patch1 -p1
     72 %patch2 -p1
     73 %patch3 -p1
     74 %patch4 -p1
     75 %patch5 -p1
     76 %patch6 -p1
     77 
     78 %ifos solaris
     79 %ifarch amd64 sparcv9
     80 cd ..
     81 cp -rp GConf-%{version} GConf-%{version}-64
     82 cd GConf-%{version}
     83 %endif
     84 %endif
     85 
     86 
     87 %build
     88 %ifos linux
     89 if [ -x /usr/bin/getconf ]; then
     90   CPUS=`getconf _NPROCESSORS_ONLN`
     91 fi
     92 %else
     93   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     94 %endif
     95 if test "x$CPUS" = "x" -o $CPUS = 0; then
     96   CPUS=1
     97 fi
     98 
     99 CONFLAGS="--prefix=%{_prefix} --mandir=%{_mandir}"
    100 
    101 %ifos solaris
    102 %ifarch amd64 sparcv9
    103 cd ../GConf-%version-64
    104 
    105 export CFLAGS="$CFLAGS64"
    106 export PKG_CONFIG_PATH="$PKG_CONFIG_PATH64"
    107 export LDFLAGS="$LDFLAGS64"
    108 export CC=${CC64:-$CC}
    109 save_PATH="$PATH"
    110 ccdir=`dirname $CC`
    111 export PATH=$ccdir:$PATH
    112 
    113 autoheader
    114 autoconf
    115 ./configure $CONFLAGS					\
    116             --bindir=%{_bindir}/%{_arch64}		\
    117             --libdir=%{_libdir}/%{_arch64}		\
    118             --libexecdir=%{_libexecdir}/%{_arch64}	\
    119             --sysconfdir=%{_sysconfdir}			\
    120 	    --disable-gtk-doc
    121 
    122 # For some reason using -j $CPUS breaks the build on my machine with
    123 # 2 processors, so just using make
    124 #
    125 make
    126 
    127 cd ../GConf-%version
    128 
    129 export PKG_CONFIG_PATH="$PKG_CONFIG_PATH32"
    130 export LDFLAGS="$LDFLAGS32"
    131 export CFLAGS="$CFLAGS32"
    132 export RPM_OPT_FLAGS="$CFLAGS"
    133 export CC=${CC32:-$CC}
    134 export PATH="$save_PATH"
    135 
    136 %endif
    137 %endif
    138 
    139 autoheader
    140 autoconf
    141 CFLAGS="$RPM_OPT_FLAGS"			\
    142 ./configure $CONFLAGS			\
    143 	    --sysconfdir=%{_sysconfdir}	\
    144 	    --libexecdir=%{_libexecdir}	\
    145 	    %{gtk_doc_option}
    146 
    147 # For some reason using -j $CPUS breaks the build on my machine with
    148 # 2 processors, so just using make
    149 #
    150 make
    151 
    152 %install
    153 
    154 %ifos solaris
    155 %ifarch amd64 sparcv9
    156 cd ../GConf-%version-64
    157 make install DESTDIR=$RPM_BUILD_ROOT
    158 cd ../GConf-%version
    159 %endif
    160 %endif
    161 
    162 make DESTDIR=$RPM_BUILD_ROOT install 
    163 install -d $RPM_BUILD_ROOT%{_mandir}/man1
    164 install -d $RPM_BUILD_ROOT%{_mandir}/man3
    165 install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1
    166 install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man3
    167 #Copy zh_HK from zh_TW
    168 #Fixes bug 4930405
    169 install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES
    170 install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/
    171 rm $RPM_BUILD_ROOT%{_libdir}/GConf/2/*.la
    172 rm $RPM_BUILD_ROOT%{_libdir}/GConf/2/*.a
    173 rm $RPM_BUILD_ROOT%{_libdir}/*.la
    174 rm $RPM_BUILD_ROOT%{_libdir}/*.a
    175 
    176 %clean
    177 rm -rf $RPM_BUILD_ROOT
    178 
    179 %post 
    180 /sbin/ldconfig
    181 
    182 %postun 
    183 /sbin/ldconfig
    184 
    185 %files
    186 %defattr(-, root, root)
    187 %{_datadir}/locale/*/LC_MESSAGES/*.mo
    188 %{_datadir}/GConf
    189 %{_bindir}/*
    190 %{_libexecdir}/*
    191 %{_libdir}/GConf/2/*.so*
    192 %{_libdir}/libgconf-2*so.*
    193 %{_sysconfdir}/gconf
    194 %{_mandir}/man1/*
    195 %dir %{_sysconfdir}/gconf/gconf.xml.defaults
    196 %dir %{_sysconfdir}/gconf/gconf.xml.mandatory
    197 
    198 %files devel
    199 %defattr(-, root, root)
    200 %{_includedir}/gconf/2/gconf/*.h
    201 %{_libdir}/libgconf-2*.so
    202 %{_libdir}/pkgconfig/*.pc
    203 %{_datadir}/aclocal/*.m4
    204 %{_datadir}/gtk-doc/*
    205 %{_datadir}/sgml/*
    206 %{_mandir}/man3/*
    207 
    208 %changelog
    209 * Fri Nov  3 2006 - laca@sun.com
    210 - use %gtk_doc_option in configure so that it can be disabled using
    211   --without-gtk-doc
    212 * Tue Oct 17 2006 - damien.carbery@sun.com
    213 - Bump to 2.16.0.
    214 * Mon Sep 25 2006 - padraig.obriain@sun.com
    215 - add patch use-fdwalk to speed up clsoing of fds. (bug 6366879)
    216 * Tue Jul  4 2006 - laca@sun.com
    217 - add patch gconftool-makefile-install.diff which makes --makefile-install-rule
    218   continue if a schemas file fails.
    219 * Thu Jun 29 2006 - laca@sun.com
    220 - add patch GCONF_BACKEND_DIR.diff that makes the backend dir relocatable
    221   via env variable
    222 * Sat Mar 18 2006 - damien.carbery@sun.com
    223 - Bump to 2.14.0.
    224 * Fri Jan 20 2006 - damien.carbery@sun.com
    225 - Bump to 2.13.5.
    226 * Fri Jan  6 2006 - laca@sun.com
    227 - set 64-bit sysconfdir to /etc, since those files are not arch specific
    228 * Wed Nov 30 2005 - damien.carbery@sun.com
    229 - Remove upstream patch, 04-markup-tree-incremental-reads.diff.
    230 * Tue Nov 29 2005 - damien.carbery@sun.com
    231 - Bump to 2.12.1.
    232 * Thu Oct 20 2005 - laca@sun.com
    233 - add Lorenzo's incremental read patch; already in HEAD
    234 * Wed Sep 14 2005 - brian.cameron (at] sunc.om
    235 - Bump to 2.12.0.
    236 * Mon Sep 05 2005 - damien.carbery (at] sun.com
    237 - Bump to 2.11.92.
    238 * Mon Aug 15 2005 - damien.carbery (at] sun.com
    239 - Bump to 2.11.90.
    240 * Wed Jun 15 2005 - laca (at] sun.com
    241 - add patch pkgconfig.diff that add gconf-2.0 to the pkgconfig deps
    242 - run autoconf
    243 * Wed May 11 2005 - brian.cameron (at] sun.com
    244 - Remove building with multiple processors, since that is breaking
    245   the build on Solaris.
    246 * Fri May 06 2005 - glynn.foster (at] wipro.com
    247 - Bump to 2.10.0
    248 * Tue Feb 15 2005 - arvind.samptur (at] wipro.com
    249 - Add patch to fix such that defaults don't get
    250   installed for all locales since we always
    251   fallback to C locale values
    252 * Fri Oct 29 2004 - laca@sun.com
    253 - use $CC64 for the 64-bit build if defined
    254 * Sat Oct  2 2004 - Joseph.Townsend@Sun.COM
    255 - Create 64bit libraries for Solaris
    256 * Fri Sep 24 2004 - yuriy.kuznetsov@sun.com
    257 - Added GConf-06-g11n-potfiles.diff 
    258 * Mon Aug 30 2004 - takao.fujiwara@sun.com
    259 - updated GConf-02-g11n-potfiles.diff
    260 * Wed Aug 18 2004 - brian.cameron@sun.com
    261 - added --enable-gtk-doc.
    262 * Wed Aug 11 2004 - ghee.teo@sun.com
    263 - Removed GConf-05-use-global-lock.diff as it is backwards incomptaible in a 
    264   heterogeneous environment. While the goal of the project is to allow 
    265   concurrent login which has in effect achieved by not having any lock at all.
    266 * Thu Aug 02 2004 - hidetoshi.tajima@sun.com
    267 - create GConf-06-g11n-locale-alias.diff to fix bug #5042863,
    268   the orignal patch is from the bugzilla.gnome.org #100378
    269 * Thu Jul 08 2004 - damien.donlon@sun.com
    270 - Updated l10n content to GConf-l10n-po-1.2.tar.bz2
    271 * Thu Jul 08 2004 - stephen.browne@sun.com
    272 - ported to rpm4/suse91
    273 * Wed Jul 07 2004 - dermot.mccluskey@sun.com
    274 - added "-j $CPUS" to make to speed up builds
    275 * Fri Jun 11 2004 - Ghee.Teo@Sun.Com
    276 - Create a patch GConf-05-use-global-lock.diff as we want to use orbit ip
    277   to resolve to a single gconf daemon per user.
    278 * Thu Jun 03 2004 - Ghee.Teo@Sun.Com
    279 - Added GConf-04-daemon-hanged-solaris.diff as the signal handler
    280   is calling non-reentrant code as gconf_log(). SO removed the calls
    281   to these signals, though much of these messages are not that important.
    282 * Wed May 19 2004 - Cyrille.Moureaux@Sun.COM
    283 - added GConf-03-apoc-path-update.diff.
    284 * Wed May 12 2004 - damien.donlon@sun.com
    285 - Updated l10n content to GConf-l10n-po-1.1.tar.bz2
    286 * Thu Apr 06 2004 - matt.keenan@sun.com
    287 - Updtaed to 2.6.1 tarball.
    288 * Fri Apr 02 2004 - ghee.teo@sun.com
    289 - Updtaed to 2.6.0 tarball.
    290 * Mon Mar 29 2004 - damien.donlon@sun.com
    291 - Updated l10n content to GConf-l10n-po-1.0.tar.bz2
    292 * Fri Mar 19 2004 - glynn.foster@sun.com
    293 - Bump to 2.5.90 and merge the potfile patches.
    294 * Thu Mar 11 2004 - yuriy.kuznetsov@sun.com
    295 - added GConf-03-g11n-potfiles.diff
    296 * Wed Feb 11 2004 - <matt.keenan@sun.com>
    297 - Bump to 2.5.1, l10n to 0.7, port 02-fix-potfiles patch
    298 * Mon Dec 15 2003 - <glynn.foster@sun.com>
    299 - Add back the man page stuff, and the backend 
    300   notification patch
    301 * Mon Oct 06 2003 - <markmc@sun.com> 2.4.0.1-1
    302 - Update to 2.4.0.1-1.
    303 - Remove dump/load and local locks patches.
    304 * Tue Aug 19 2003 - <niall.power@sun.com>
    305 - add GConf-02-sanity-check.diff patch, fixes 4908212
    306 * Thu Aug 14 2003 - <laca@sun.com>
    307 - move lib*.so to -devel, remove *.a, *.la
    308 * Fri Aug 01 2003 - <markmc@sun.com> 2.2.1-1
    309 - Upgrade to 2.2.1
    310 * Wed Jul 09 2003 - <michael.twomey@sun.com>
    311 - add in sun po files
    312 * Fri May 30 2003 - <markmc@sun.com>
    313 - Make sure gconf.xml.mandatory gets created
    314 * Fri May 30 2003 - <markmc@sun.com>
    315 - Add patches required by gnome-panel-2.3.1
    316 - Install .la files
    317 * Thu May 07 2003 - <Niall.Power@Sun.COM>
    318 - Create new spec file for GConf
    319