author | dermotm |
Mon, 24 Jul 2006 12:30:39 +0000 | |
branch | gnome-2-10 |
changeset 19949 | 94f49bf19351 |
parent 19719 | d184ca39d269 |
permissions | -rw-r--r-- |
19693 | 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 |
# |
|
21 | 8 |
Name: GConf |
9 |
License: LGPL |
|
152 | 10 |
Group: System/Libraries/GNOME |
21 | 11 |
Provides: GConf |
19219 | 12 |
Version: 2.10.0 |
13 |
Release: 1 |
|
19693 | 14 |
Distribution: Java Desktop System |
575 | 15 |
Vendor: Sun Microsystems, Inc. |
152 | 16 |
Summary: GNOME Configuration Framework |
19219 | 17 |
Source: http://ftp.gnome.org/pub/GNOME/sources/GConf/2.10/GConf-%{version}.tar.bz2 |
19719 | 18 |
Source1: gconftool-2.1.gz |
19 |
Source2: libgconf-2.3.gz |
|
19219 | 20 |
Patch1: GConf-01-apoc-path-update.diff |
21 |
Patch2: GConf-02-daemon-hanged-solaris.diff |
|
22 |
Patch3: GConf-03-g11n-locale-alias.diff |
|
152 | 23 |
URL: http://www.gnome.org |
21 | 24 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
152 | 25 |
Docdir: %{_defaultdocdir}/doc |
26 |
Autoreqprov: on |
|
19693 | 27 |
Prereq: /sbin/ldconfig |
152 | 28 |
|
3628 | 29 |
%define gtk2_version 2.4.0 |
30 |
%define libxml2_version 2.6.7 |
|
31 |
%define ORBit2_version 2.10.1 |
|
1199 | 32 |
%define gtk_doc_version 1.1 |
3628 | 33 |
%define popt_version 1.7 |
189 | 34 |
|
35 |
Requires: gtk2 >= %{gtk2_version} |
|
36 |
Requires: libxml2 >= %{libxml2_version} |
|
37 |
Requires: ORBit2 >= %{ORBit2_version} |
|
38 |
Requires: popt >= %{popt_version} |
|
39 |
BuildRequires: gtk2-devel >= %{gtk2_version} |
|
40 |
BuildRequires: libxml2-devel >= %{libxml2_version} |
|
41 |
BuildRequires: ORBit2-devel >= %{ORBit2_version} |
|
42 |
BuildRequires: popt-devel >= %{popt_version} |
|
43 |
BuildRequires: gtk-doc >= %{gtk_doc_version} |
|
21 | 44 |
|
45 |
%description |
|
152 | 46 |
GConf is the Configuration Framework for the GNOME Desktop. |
21 | 47 |
|
48 |
%package devel |
|
152 | 49 |
Summary: GNOME Configuration Framework Development Libraries |
21 | 50 |
Group: Development/Libraries/GNOME |
191 | 51 |
Requires: %{name} = %{version} |
189 | 52 |
Requires: libxml2-devel >= %{libxml2_version} |
53 |
Requires: ORBit2-devel >= %{ORBit2_version} |
|
54 |
Requires: gtk2-devel >= %{gtk2_version} |
|
21 | 55 |
|
56 |
%description devel |
|
152 | 57 |
GConf is the Configuration Framework for the GNOME Desktop. |
21 | 58 |
|
59 |
%prep |
|
1432 | 60 |
%setup -q |
61 |
%patch1 -p1 |
|
1621 | 62 |
%patch2 -p1 |
2804
55d2f661843f
#b5045338# Patched the GConf path to feature the APOC sources commented out
cm122549
parents:
2777
diff
changeset
|
63 |
%patch3 -p1 |
21 | 64 |
|
4121 | 65 |
%ifos solaris |
4271 | 66 |
%ifarch amd64 sparcv9 |
4121 | 67 |
cd .. |
68 |
cp -rp GConf-%{version} GConf-%{version}-64 |
|
69 |
%endif |
|
4127 | 70 |
%endif |
4121 | 71 |
|
4455 | 72 |
|
21 | 73 |
%build |
3263 | 74 |
%ifos linux |
75 |
if [ -x /usr/bin/getconf ]; then |
|
76 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
77 |
fi |
|
78 |
%else |
|
3846 | 79 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 80 |
%endif |
81 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
82 |
CPUS=1 |
|
83 |
fi |
|
84 |
||
4121 | 85 |
CONFLAGS="--prefix=%{_prefix} --mandir=%{_mandir}" |
86 |
||
87 |
%ifos solaris |
|
4271 | 88 |
%ifarch amd64 sparcv9 |
4121 | 89 |
cd ../GConf-%version-64 |
90 |
||
91 |
export CFLAGS="$CFLAGS64" |
|
92 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH64" |
|
93 |
export LDFLAGS="$LDFLAGS64" |
|
4365 | 94 |
export CC=${CC64:-$CC} |
95 |
save_PATH="$PATH" |
|
96 |
ccdir=`dirname $CC` |
|
97 |
export PATH=$ccdir:$PATH |
|
4121 | 98 |
|
19428 | 99 |
autoconf |
4121 | 100 |
./configure $CONFLAGS \ |
101 |
--bindir=%{_bindir}/%{_arch64} \ |
|
102 |
--libdir=%{_libdir}/%{_arch64} \ |
|
103 |
--libexecdir=%{_libexecdir}/%{_arch64} \ |
|
104 |
--sysconfdir=%{_sysconfdir}/%{_arch64} \ |
|
105 |
--disable-gtk-doc |
|
106 |
||
19253 | 107 |
# For some reason using -j $CPUS breaks the build on my machine with |
108 |
# 2 processors, so just using make |
|
109 |
# |
|
110 |
make |
|
4121 | 111 |
|
112 |
cd ../GConf-%version |
|
113 |
||
114 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" |
|
4365 | 115 |
export LDFLAGS="$LDFLAGS32" |
116 |
export CFLAGS="$CFLAGS32" |
|
117 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
118 |
export CC=${CC32:-$CC} |
|
119 |
export PATH="$save_PATH" |
|
120 |
||
4127 | 121 |
%endif |
4121 | 122 |
%endif |
123 |
||
19427 | 124 |
autoconf |
605 | 125 |
CFLAGS="$RPM_OPT_FLAGS" \ |
4121 | 126 |
./configure $CONFLAGS \ |
127 |
--sysconfdir=%{_sysconfdir} \ |
|
128 |
--libexecdir=%{_libexecdir} \ |
|
3691 | 129 |
--enable-gtk-doc |
19253 | 130 |
|
131 |
# For some reason using -j $CPUS breaks the build on my machine with |
|
132 |
# 2 processors, so just using make |
|
133 |
# |
|
134 |
make |
|
21 | 135 |
|
136 |
%install |
|
4121 | 137 |
|
138 |
%ifos solaris |
|
4271 | 139 |
%ifarch amd64 sparcv9 |
4121 | 140 |
cd ../GConf-%version-64 |
141 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
142 |
cd ../GConf-%version |
|
143 |
%endif |
|
4127 | 144 |
%endif |
4121 | 145 |
|
152 | 146 |
make DESTDIR=$RPM_BUILD_ROOT install |
1522 | 147 |
install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
148 |
install -d $RPM_BUILD_ROOT%{_mandir}/man3 |
|
19719 | 149 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1 |
150 |
install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
1432 | 151 |
#Copy zh_HK from zh_TW |
152 |
#Fixes bug 4930405 |
|
1522 | 153 |
install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES |
154 |
install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/ |
|
3628 | 155 |
rm $RPM_BUILD_ROOT%{_libdir}/GConf/2/*.la |
156 |
rm $RPM_BUILD_ROOT%{_libdir}/GConf/2/*.a |
|
157 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
|
158 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
|
152 | 159 |
|
160 |
%clean |
|
161 |
rm -rf $RPM_BUILD_ROOT |
|
21 | 162 |
|
163 |
%post |
|
164 |
/sbin/ldconfig |
|
165 |
||
166 |
%postun |
|
167 |
/sbin/ldconfig |
|
168 |
||
169 |
%files |
|
170 |
%defattr(-, root, root) |
|
171 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
|
189 | 172 |
%{_bindir}/* |
173 |
%{_libexecdir}/* |
|
174 |
%{_libdir}/GConf/2/*.so* |
|
1058 | 175 |
%{_libdir}/libgconf-2*so.* |
152 | 176 |
%{_sysconfdir}/gconf/2/path |
1432 | 177 |
%{_mandir}/man1/* |
248 | 178 |
%dir %{_sysconfdir}/gconf/gconf.xml.defaults |
179 |
%dir %{_sysconfdir}/gconf/gconf.xml.mandatory |
|
21 | 180 |
|
181 |
%files devel |
|
182 |
%defattr(-, root, root) |
|
189 | 183 |
%{_includedir}/gconf/2/gconf/*.h |
1058 | 184 |
%{_libdir}/libgconf-2*.so |
189 | 185 |
%{_libdir}/pkgconfig/*.pc |
186 |
%{_datadir}/aclocal/*.m4 |
|
3628 | 187 |
%{_datadir}/gtk-doc/* |
189 | 188 |
%{_datadir}/sgml/* |
3691 | 189 |
%{_datadir}/gtk-doc/html/gconf |
1432 | 190 |
%{_mandir}/man3/* |
21 | 191 |
|
192 |
%changelog |
|
19424 | 193 |
* Wed Jun 15 2005 - [email protected] |
194 |
- add patch pkgconfig.diff that add gconf-2.0 to the pkgconfig deps |
|
19427 | 195 |
- run autoconf |
19424 | 196 |
|
19253 | 197 |
* Wed May 11 2005 - [email protected] |
198 |
- Remove building with multiple processors, since that is breaking |
|
199 |
the build on Solaris. |
|
200 |
||
19219 | 201 |
* Fri May 06 2005 - [email protected] |
202 |
- Bump to 2.10.0 |
|
203 |
||
5092 | 204 |
* Tue Feb 15 2005 - [email protected] |
205 |
- Add patch to fix such that defaults don't get |
|
206 |
installed for all locales since we always |
|
207 |
fallback to C locale values |
|
208 |
||
4365 | 209 |
* Fri Oct 29 2004 - [email protected] |
210 |
- use $CC64 for the 64-bit build if defined |
|
211 |
||
4121 | 212 |
* Sat Oct 2 2004 - [email protected] |
213 |
- Create 64bit libraries for Solaris |
|
214 |
||
4058
985dab8f5da2
Added GConf-06-g11n-potfiles.diff, updated GConf.spec.
yk150259
parents:
4033
diff
changeset
|
215 |
* Fri Sep 24 2004 - [email protected] |
985dab8f5da2
Added GConf-06-g11n-potfiles.diff, updated GConf.spec.
yk150259
parents:
4033
diff
changeset
|
216 |
- Added GConf-06-g11n-potfiles.diff |
985dab8f5da2
Added GConf-06-g11n-potfiles.diff, updated GConf.spec.
yk150259
parents:
4033
diff
changeset
|
217 |
|
3796 | 218 |
* Mon Aug 30 2004 - [email protected] |
219 |
- updated GConf-02-g11n-potfiles.diff |
|
220 |
||
3691 | 221 |
* Wed Aug 18 2004 - [email protected] |
222 |
- added --enable-gtk-doc. |
|
223 |
||
3535 | 224 |
* Wed Aug 11 2004 - [email protected] |
225 |
- Removed GConf-05-use-global-lock.diff as it is backwards incomptaible in a |
|
226 |
heterogeneous environment. While the goal of the project is to allow |
|
227 |
concurrent login which has in effect achieved by not having any lock at all. |
|
228 |
||
3460
e5aa4c14cf90
* GConf.spec : create GConf-06-g11n-locale-alias.diff to fix
tajima
parents:
3425
diff
changeset
|
229 |
* Thu Aug 02 2004 - [email protected] |
e5aa4c14cf90
* GConf.spec : create GConf-06-g11n-locale-alias.diff to fix
tajima
parents:
3425
diff
changeset
|
230 |
- create GConf-06-g11n-locale-alias.diff to fix bug #5042863, |
e5aa4c14cf90
* GConf.spec : create GConf-06-g11n-locale-alias.diff to fix
tajima
parents:
3425
diff
changeset
|
231 |
the orignal patch is from the bugzilla.gnome.org #100378 |
e5aa4c14cf90
* GConf.spec : create GConf-06-g11n-locale-alias.diff to fix
tajima
parents:
3425
diff
changeset
|
232 |
|
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
233 |
* Thu Jul 08 2004 - [email protected] |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
234 |
- Updated l10n content to GConf-l10n-po-1.2.tar.bz2 |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
235 |
|
3628 | 236 |
* Thu Jul 08 2004 - [email protected] |
237 |
- ported to rpm4/suse91 |
|
238 |
||
3263 | 239 |
* Wed Jul 07 2004 - [email protected] |
240 |
- added "-j $CPUS" to make to speed up builds |
|
241 |
||
3133 | 242 |
* Fri Jun 11 2004 - [email protected] |
243 |
- Create a patch GConf-05-use-global-lock.diff as we want to use orbit ip |
|
244 |
to resolve to a single gconf daemon per user. |
|
245 |
||
3014 | 246 |
* Thu Jun 03 2004 - [email protected] |
247 |
- Added GConf-04-daemon-hanged-solaris.diff as the signal handler |
|
248 |
is calling non-reentrant code as gconf_log(). SO removed the calls |
|
249 |
to these signals, though much of these messages are not that important. |
|
250 |
||
2804
55d2f661843f
#b5045338# Patched the GConf path to feature the APOC sources commented out
cm122549
parents:
2777
diff
changeset
|
251 |
* Wed May 19 2004 - [email protected] |
55d2f661843f
#b5045338# Patched the GConf path to feature the APOC sources commented out
cm122549
parents:
2777
diff
changeset
|
252 |
- added GConf-03-apoc-path-update.diff. |
55d2f661843f
#b5045338# Patched the GConf path to feature the APOC sources commented out
cm122549
parents:
2777
diff
changeset
|
253 |
|
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2664
diff
changeset
|
254 |
* Wed May 12 2004 - [email protected] |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2664
diff
changeset
|
255 |
- Updated l10n content to GConf-l10n-po-1.1.tar.bz2 |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2664
diff
changeset
|
256 |
|
2664 | 257 |
* Thu Apr 06 2004 - [email protected] |
258 |
- Updtaed to 2.6.1 tarball. |
|
259 |
||
2375 | 260 |
* Fri Apr 02 2004 - [email protected] |
261 |
- Updtaed to 2.6.0 tarball. |
|
262 |
||
2350 | 263 |
* Mon Mar 29 2004 - [email protected] |
264 |
- Updated l10n content to GConf-l10n-po-1.0.tar.bz2 |
|
265 |
||
2254 | 266 |
* Fri Mar 19 2004 - [email protected] |
267 |
- Bump to 2.5.90 and merge the potfile patches. |
|
268 |
||
2191 | 269 |
* Thu Mar 11 2004 - [email protected] |
270 |
- added GConf-03-g11n-potfiles.diff |
|
271 |
||
1621 | 272 |
* Wed Feb 11 2004 - <[email protected]> |
273 |
- Bump to 2.5.1, l10n to 0.7, port 02-fix-potfiles patch |
|
274 |
||
1432 | 275 |
* Mon Dec 15 2003 - <[email protected]> |
276 |
- Add back the man page stuff, and the backend |
|
277 |
notification patch |
|
278 |
||
1199 | 279 |
* Mon Oct 06 2003 - <[email protected]> 2.4.0.1-1 |
280 |
- Update to 2.4.0.1-1. |
|
281 |
- Remove dump/load and local locks patches. |
|
282 |
||
1092 | 283 |
* Tue Aug 19 2003 - <[email protected]> |
284 |
- add GConf-02-sanity-check.diff patch, fixes 4908212 |
|
285 |
||
1058 | 286 |
* Thu Aug 14 2003 - <[email protected]> |
287 |
- move lib*.so to -devel, remove *.a, *.la |
|
288 |
||
908 | 289 |
* Fri Aug 01 2003 - <[email protected]> 2.2.1-1 |
290 |
- Upgrade to 2.2.1 |
|
291 |
||
503 | 292 |
* Wed Jul 09 2003 - <[email protected]> |
293 |
- add in sun po files |
|
294 |
||
908 | 295 |
* Fri May 30 2003 - <[email protected]> |
248 | 296 |
- Make sure gconf.xml.mandatory gets created |
297 |
||
908 | 298 |
* Fri May 30 2003 - <[email protected]> |
235 | 299 |
- Add patches required by gnome-panel-2.3.1 |
300 |
- Install .la files |
|
301 |
||
908 | 302 |
* Thu May 07 2003 - <[email protected]> |
152 | 303 |
- Create new spec file for GConf |