author | dermotm |
Mon, 18 Oct 2004 09:30:38 +0000 | |
changeset 4276 | 2a2c7f354601 |
parent 4265 | 9c26d9ef4f72 |
child 4387 | 1b0580c5041e |
permissions | -rw-r--r-- |
1555 | 1 |
Name: apoc-adapter-gconf |
1670 | 2 |
License: (C) Sun Microsystems, Inc. |
1555 | 3 |
Group: System/GUI/GNOME |
3130
ae8040a2d48e
#b5043774# #b5059948# Fix potential core dump source and source parsing
cm122549
parents:
3120
diff
changeset
|
4 |
Version: 1.0.1 |
4276 | 5 |
Release: 22 |
1555 | 6 |
Distribution: Mercury |
7 |
Vendor: Sun Microsystems, Inc. |
|
8 |
Summary: Apoc GConf Adapter |
|
9 |
Source: apoc-adapter-gconf-%{version}.tar.bz2 |
|
4265 | 10 |
Source1: apoc-adapter-gconf-l10n-po-1.6.tar.bz2 |
3958
4ca9f4b74273
Added apoc-adapter-gconf-01-g11n-alllinguas.diff. Updated apoc-adapter-gconf.spec.
yk150259
parents:
3858
diff
changeset
|
11 |
Patch1: apoc-adapter-gconf-01-g11n-alllinguas.diff |
4247 | 12 |
Patch2: apoc-adapter-gconf-02-shutdown-protect.diff |
1555 | 13 |
URL: http://www.sun.com |
14 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
15 |
Autoreqprov: on |
|
16 |
||
17 |
Requires: GConf |
|
18 |
Requires: apoc |
|
19 |
BuildRequires: GConf |
|
20 |
||
21 |
%define sysconfdir /etc |
|
22 |
%define pathfile %{sysconfdir}/gconf/2/path |
|
23 |
||
24 |
%description |
|
25 |
Part of the Apoc framework providing through GConf central configuration |
|
26 |
settings. |
|
27 |
||
28 |
%prep |
|
29 |
%setup -q -n apoc-adapter-gconf-%{version} |
|
3958
4ca9f4b74273
Added apoc-adapter-gconf-01-g11n-alllinguas.diff. Updated apoc-adapter-gconf.spec.
yk150259
parents:
3858
diff
changeset
|
30 |
%patch1 -p1 |
4247 | 31 |
%patch2 -p1 |
2355 | 32 |
/usr/bin/bzcat -dc %SOURCE1|tar xf - |
1555 | 33 |
|
34 |
%build |
|
3263 | 35 |
%ifos linux |
36 |
if [ -x /usr/bin/getconf ]; then |
|
37 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
38 |
fi |
|
39 |
%else |
|
3846 | 40 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 41 |
%endif |
42 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
43 |
CPUS=1 |
|
44 |
fi |
|
45 |
||
1555 | 46 |
CFLAGS="$RPM_OPT_FLAGS" \ |
47 |
./configure --prefix=%{_prefix} --sysconfdir=%{sysconfdir} |
|
3263 | 48 |
make -j $CPUS |
1555 | 49 |
|
50 |
%install |
|
51 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
3628 | 52 |
rm $RPM_BUILD_ROOT%{_libdir}/GConf/2/*.la |
53 |
rm $RPM_BUILD_ROOT%{_libdir}/GConf/2/*.a |
|
1555 | 54 |
|
55 |
# Ensures a clean build root before building a package a second time. |
|
56 |
%clean |
|
57 |
rm -rf $RPM_BUILD_ROOT |
|
58 |
||
59 |
%post |
|
2806
1d2d3513fa54
#b5045338# Uncomment/comment apoc datasources in existing GConf path to enable/disable the adapter
cm122549
parents:
2777
diff
changeset
|
60 |
if [ -f %{pathfile} ]; then |
1d2d3513fa54
#b5045338# Uncomment/comment apoc datasources in existing GConf path to enable/disable the adapter
cm122549
parents:
2777
diff
changeset
|
61 |
sed -e s/^#apoc:/apoc:/g %{pathfile} > /tmp/apocpath.$$ |
1d2d3513fa54
#b5045338# Uncomment/comment apoc datasources in existing GConf path to enable/disable the adapter
cm122549
parents:
2777
diff
changeset
|
62 |
if [ $? -eq 0 ]; then |
1d2d3513fa54
#b5045338# Uncomment/comment apoc datasources in existing GConf path to enable/disable the adapter
cm122549
parents:
2777
diff
changeset
|
63 |
mv /tmp/apocpath.$$ %{pathfile} |
1d2d3513fa54
#b5045338# Uncomment/comment apoc datasources in existing GConf path to enable/disable the adapter
cm122549
parents:
2777
diff
changeset
|
64 |
fi |
1555 | 65 |
fi |
66 |
/sbin/ldconfig |
|
67 |
||
68 |
%preun |
|
2806
1d2d3513fa54
#b5045338# Uncomment/comment apoc datasources in existing GConf path to enable/disable the adapter
cm122549
parents:
2777
diff
changeset
|
69 |
if [ $1 -eq 0 ] && [ -f %{pathfile} ]; then |
1d2d3513fa54
#b5045338# Uncomment/comment apoc datasources in existing GConf path to enable/disable the adapter
cm122549
parents:
2777
diff
changeset
|
70 |
sed -e s/^apoc:/#apoc:/g %{pathfile} > /tmp/apocpath.$$ |
1d2d3513fa54
#b5045338# Uncomment/comment apoc datasources in existing GConf path to enable/disable the adapter
cm122549
parents:
2777
diff
changeset
|
71 |
if [ $? -eq 0 ]; then |
1d2d3513fa54
#b5045338# Uncomment/comment apoc datasources in existing GConf path to enable/disable the adapter
cm122549
parents:
2777
diff
changeset
|
72 |
mv /tmp/apocpath.$$ %{pathfile} |
1d2d3513fa54
#b5045338# Uncomment/comment apoc datasources in existing GConf path to enable/disable the adapter
cm122549
parents:
2777
diff
changeset
|
73 |
fi |
1555 | 74 |
fi |
75 |
||
76 |
%postun -p /sbin/ldconfig |
|
77 |
||
78 |
%files |
|
79 |
%defattr (-, root, root) |
|
3628 | 80 |
%{_libdir}/GConf/2/libgconfbackend-apoc.so |
81 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
|
82 |
%{_sysconfdir}/gconf/2/* |
|
1555 | 83 |
|
84 |
%changelog |
|
4247 | 85 |
* Thu Oct 14 2004 - [email protected] |
86 |
- Added apoc-adapter-gconf-02-shutdown-protect.diff to fix potential |
|
87 |
conflicts during shutdown (6179077). |
|
4248 | 88 |
- Set l10n tarball to proper version number. |
89 |
||
3958
4ca9f4b74273
Added apoc-adapter-gconf-01-g11n-alllinguas.diff. Updated apoc-adapter-gconf.spec.
yk150259
parents:
3858
diff
changeset
|
90 |
* Wed Sep 15 2004 - [email protected] |
4ca9f4b74273
Added apoc-adapter-gconf-01-g11n-alllinguas.diff. Updated apoc-adapter-gconf.spec.
yk150259
parents:
3858
diff
changeset
|
91 |
- added apoc-adapter-gconf--01-g11n-alllinguas.diff to include cs, hu. |
4ca9f4b74273
Added apoc-adapter-gconf-01-g11n-alllinguas.diff. Updated apoc-adapter-gconf.spec.
yk150259
parents:
3858
diff
changeset
|
92 |
|
3628 | 93 |
* Wed Jul 07 2004 - [email protected] |
94 |
- ported to rpm4/SuSE9.1 |
|
95 |
||
3263 | 96 |
* Wed Jul 07 2004 - [email protected] |
97 |
- added "-j $CPUS" to make to speed up builds |
|
98 |
||
3130
ae8040a2d48e
#b5043774# #b5059948# Fix potential core dump source and source parsing
cm122549
parents:
3120
diff
changeset
|
99 |
* Fri Jun 11 2004 - [email protected] |
ae8040a2d48e
#b5043774# #b5059948# Fix potential core dump source and source parsing
cm122549
parents:
3120
diff
changeset
|
100 |
- Updated version number. |
2806
1d2d3513fa54
#b5045338# Uncomment/comment apoc datasources in existing GConf path to enable/disable the adapter
cm122549
parents:
2777
diff
changeset
|
101 |
* Wed May 19 2004 - [email protected] |
1d2d3513fa54
#b5045338# Uncomment/comment apoc datasources in existing GConf path to enable/disable the adapter
cm122549
parents:
2777
diff
changeset
|
102 |
- Removed patch file for GConf path and modified post/preun to |
1d2d3513fa54
#b5045338# Uncomment/comment apoc datasources in existing GConf path to enable/disable the adapter
cm122549
parents:
2777
diff
changeset
|
103 |
modify the path delivered by GConf instead. |
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
104 |
* Wed May 12 2004 - [email protected] |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
105 |
- Updated l10n content to apoc-adapter-gconf-l10n-po-1.1.tar.bz2 |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
106 |
|
2491 | 107 |
* Mon Apr 19 2004 - [email protected] |
108 |
- Update version number and remove patch (which *was* required until now). |
|
2361
03636b402bdf
apoc-adapter-gconf.spec:Comment out failing patch. Damien Donlon told me it is no longer required. Leaving in spec file and patch file in CVS in case I misheard him.
dc144907
parents:
2355
diff
changeset
|
109 |
* Thu Apr 01 2004 - [email protected] |
03636b402bdf
apoc-adapter-gconf.spec:Comment out failing patch. Damien Donlon told me it is no longer required. Leaving in spec file and patch file in CVS in case I misheard him.
dc144907
parents:
2355
diff
changeset
|
110 |
- Comment out failing patch. Damien Donlon told me it is no longer required. |
03636b402bdf
apoc-adapter-gconf.spec:Comment out failing patch. Damien Donlon told me it is no longer required. Leaving in spec file and patch file in CVS in case I misheard him.
dc144907
parents:
2355
diff
changeset
|
111 |
Leaving in spec file and patch file in CVS in case I misheard him. |
2355 | 112 |
* Wed Mar 31 2004 - [email protected] |
113 |
- replace tar jxf with the more solaris friendly |
|
114 |
bzcat piped through tar |
|
2350 | 115 |
* Mon Mar 29 2004 - [email protected] |
116 |
- Adding apoc-adapter-gconf-l10n-po-1.0.tar.bz2 l10n content |
|
117 |