1 # 2 # spec file for package apoc-adapter-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: alo 9 # 10 Name: apoc-adapter-gconf 11 License: BCL 12 Group: System/GUI/GNOME 13 Version: 1.1.0 14 Release: 1 15 Distribution: Java Desktop System 16 Vendor: Sun Microsystems, Inc. 17 Summary: Apoc GConf Adapter 18 Source: apoc-adapter-gconf-%{version}.tar.bz2 19 URL: http://www.sun.com 20 BuildRoot: %{_tmppath}/%{name}-%{version}-build 21 Autoreqprov: on 22 23 Requires: GConf 24 Requires: apoc 25 Prereq: sed 26 Prereq: coreutils 27 Prereq: /sbin/ldconfig 28 BuildRequires: GConf-devel 29 30 %define pathfile %{_sysconfdir}/gconf/2/path 31 32 %description 33 Part of the Apoc framework providing through GConf central configuration 34 settings. 35 36 %prep 37 %setup -q -n apoc-adapter-gconf-%{version} 38 39 %build 40 %ifos linux 41 if [ -x /usr/bin/getconf ]; then 42 CPUS=`getconf _NPROCESSORS_ONLN` 43 fi 44 %else 45 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 46 %endif 47 if test "x$CPUS" = "x" -o $CPUS = 0; then 48 CPUS=1 49 fi 50 51 CFLAGS="$RPM_OPT_FLAGS" \ 52 ./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} 53 make -j $CPUS 54 55 %install 56 make DESTDIR=$RPM_BUILD_ROOT install 57 rm $RPM_BUILD_ROOT%{_libdir}/GConf/2/*.la 58 rm $RPM_BUILD_ROOT%{_libdir}/GConf/2/*.a 59 60 # Ensures a clean build root before building a package a second time. 61 %clean 62 rm -rf $RPM_BUILD_ROOT 63 64 %post 65 if [ -f %{pathfile} ]; then 66 sed -e s/^#apoc:/apoc:/g %{pathfile} > /tmp/apocpath.$$ 67 if [ $? -eq 0 ]; then 68 mv /tmp/apocpath.$$ %{pathfile} 69 fi 70 fi 71 /sbin/ldconfig 72 73 %preun 74 if [ $1 -eq 0 ] && [ -f %{pathfile} ]; then 75 sed -e s/^apoc:/#apoc:/g %{pathfile} > /tmp/apocpath.$$ 76 if [ $? -eq 0 ]; then 77 mv /tmp/apocpath.$$ %{pathfile} 78 fi 79 fi 80 81 %postun -p /sbin/ldconfig 82 83 %files 84 %defattr (-, root, root) 85 %{_libdir}/GConf/2/libgconfbackend-apoc.so 86 %{_datadir}/locale/*/LC_MESSAGES/*.mo 87 %{_sysconfdir}/gconf/2/* 88 89 %changelog 90 * Thu Jun 29 2006 - Cyrille.Moureaux@Sun.COM 91 - Moved to new tarball adapted for use with Gnome 2.14 (5028119). 92 93 * Tue Mar 14 2006 - Cyrille.Moureaux@Sun.COM 94 - Added apoc-adapter-gconf-02-placeholders.diff to handle replacements in APOC 95 data (6397519). 96 97 * Thu Oct 14 2004 - Cyrille.Moureaux@Sun.COM 98 - Added apoc-adapter-gconf-02-shutdown-protect.diff to fix potential 99 conflicts during shutdown (6179077). 100 - Set l10n tarball to proper version number. 101 102 * Wed Sep 15 2004 - ciaran.mcdermott@sun.com 103 - added apoc-adapter-gconf--01-g11n-alllinguas.diff to include cs, hu. 104 105 * Wed Jul 07 2004 - stephen.browne@sun.com 106 - ported to rpm4/SuSE9.1 107 108 * Wed Jul 07 2004 - dermot.mccluskey@sun.com 109 - added "-j $CPUS" to make to speed up builds 110 111 * Fri Jun 11 2004 - Cyrille.Moureaux@Sun.COM 112 - Updated version number. 113 * Wed May 19 2004 - Cyrille.Moureaux@Sun.COM 114 - Removed patch file for GConf path and modified post/preun to 115 modify the path delivered by GConf instead. 116 * Wed May 12 2004 - damien.donlon@sun.com 117 - Updated l10n content to apoc-adapter-gconf-l10n-po-1.1.tar.bz2 118 119 * Mon Apr 19 2004 - Cyrille.Moureaux@Sun.COM 120 - Update version number and remove patch (which *was* required until now). 121 * Thu Apr 01 2004 - damien.carbery@sun.com 122 - Comment out failing patch. Damien Donlon told me it is no longer required. 123 Leaving in spec file and patch file in CVS in case I misheard him. 124 * Wed Mar 31 2004 - brian.cameron@sun.com 125 - replace tar jxf with the more solaris friendly 126 bzcat piped through tar 127 * Mon Mar 29 2004 - damien.donlon@sun.com 128 - Adding apoc-adapter-gconf-l10n-po-1.0.tar.bz2 l10n content 129 130