apoc-adapter-gconf.spec
author dermotm
Mon, 18 Oct 2004 09:30:38 +0000
changeset 4276 2a2c7f354601
parent 4265 9c26d9ef4f72
child 4387 1b0580c5041e
permissions -rw-r--r--
Incremented release numbers for build 21
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1555
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
     1
Name:         apoc-adapter-gconf
1670
05b710447a90 #b4978727# New version
cm122549
parents: 1609
diff changeset
     2
License:      (C) Sun Microsystems, Inc.
1555
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
     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
2a2c7f354601 Incremented release numbers for build 21
dermotm
parents: 4265
diff changeset
     5
Release:      22
1555
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
     6
Distribution: Mercury
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
     7
Vendor:	      Sun Microsystems, Inc.
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
     8
Summary:      Apoc GConf Adapter
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
     9
Source:       apoc-adapter-gconf-%{version}.tar.bz2
4265
miles
parents: 4248
diff changeset
    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
dfe79fc307db 6179077 Protect shutdown from callbacks
cm122549
parents: 4133
diff changeset
    12
Patch2:       apoc-adapter-gconf-02-shutdown-protect.diff
1555
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    13
URL:          http://www.sun.com
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    14
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    15
Autoreqprov:  on
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    16
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    17
Requires:      GConf
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    18
Requires:      apoc
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    19
BuildRequires: GConf
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    20
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    21
%define sysconfdir  /etc
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    22
%define pathfile    %{sysconfdir}/gconf/2/path
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    23
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    24
%description
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    25
Part of the Apoc framework providing through GConf central configuration 
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    26
settings.
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    27
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    28
%prep
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    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
dfe79fc307db 6179077 Protect shutdown from callbacks
cm122549
parents: 4133
diff changeset
    31
%patch2 -p1
2355
ccf597d7b37a 2004-03-31 Brian Cameron <[email protected]>
bc99092
parents: 2350
diff changeset
    32
/usr/bin/bzcat -dc %SOURCE1|tar xf -
1555
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    33
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    34
%build
3263
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    35
%ifos linux
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    36
if [ -x /usr/bin/getconf ]; then
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    37
  CPUS=`getconf _NPROCESSORS_ONLN`
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    38
fi
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    39
%else
3846
9ab79af72b15 2004-09-05 Laszlo Peter <[email protected]>
laca
parents: 3679
diff changeset
    40
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
3263
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    41
%endif
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    42
if test "x$CPUS" = "x" -o $CPUS = 0; then
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    43
  CPUS=1
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    44
fi
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    45
1555
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    46
CFLAGS="$RPM_OPT_FLAGS"			\
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    47
./configure --prefix=%{_prefix}	--sysconfdir=%{sysconfdir}
3263
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    48
make -j $CPUS
1555
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    49
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    50
%install
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    51
make DESTDIR=$RPM_BUILD_ROOT install
3628
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3519
diff changeset
    52
rm $RPM_BUILD_ROOT%{_libdir}/GConf/2/*.la
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3519
diff changeset
    53
rm $RPM_BUILD_ROOT%{_libdir}/GConf/2/*.a
1555
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    54
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    55
# Ensures a clean build root before building a package a second time.
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    56
%clean
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    57
rm -rf $RPM_BUILD_ROOT
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    58
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    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
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    65
fi
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    66
/sbin/ldconfig
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    67
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    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
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    74
fi
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    75
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    76
%postun -p /sbin/ldconfig
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    77
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    78
%files
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    79
%defattr (-, root, root)
3628
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3519
diff changeset
    80
%{_libdir}/GConf/2/libgconfbackend-apoc.so
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3519
diff changeset
    81
%{_datadir}/locale/*/LC_MESSAGES/*.mo
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3519
diff changeset
    82
%{_sysconfdir}/gconf/2/*
1555
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    83
af430f237bc0 Cinnabar integration
cm122549
parents:
diff changeset
    84
%changelog
4247
dfe79fc307db 6179077 Protect shutdown from callbacks
cm122549
parents: 4133
diff changeset
    85
* Thu Oct 14 2004 - [email protected]
dfe79fc307db 6179077 Protect shutdown from callbacks
cm122549
parents: 4133
diff changeset
    86
- Added apoc-adapter-gconf-02-shutdown-protect.diff to fix potential
dfe79fc307db 6179077 Protect shutdown from callbacks
cm122549
parents: 4133
diff changeset
    87
  conflicts during shutdown (6179077).
4248
0dc8f51d6fcd Updated l10n tarball version
cm122549
parents: 4247
diff changeset
    88
- Set l10n tarball to proper version number.
0dc8f51d6fcd Updated l10n tarball version
cm122549
parents: 4247
diff changeset
    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
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3519
diff changeset
    93
* Wed Jul 07 2004 - [email protected]
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3519
diff changeset
    94
- ported to rpm4/SuSE9.1
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3519
diff changeset
    95
3263
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    96
* Wed Jul 07 2004 - [email protected]
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    97
- added "-j $CPUS" to make to speed up builds
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    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
545ae76695de #b5033706# Update version number
cm122549
parents: 2398
diff changeset
   107
* Mon Apr 19 2004 - [email protected]
545ae76695de #b5033706# Update version number
cm122549
parents: 2398
diff changeset
   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
ccf597d7b37a 2004-03-31 Brian Cameron <[email protected]>
bc99092
parents: 2350
diff changeset
   112
* Wed Mar 31 2004 - [email protected]
ccf597d7b37a 2004-03-31 Brian Cameron <[email protected]>
bc99092
parents: 2350
diff changeset
   113
- replace tar jxf with the more solaris friendly
ccf597d7b37a 2004-03-31 Brian Cameron <[email protected]>
bc99092
parents: 2350
diff changeset
   114
  bzcat piped through tar
2350
9adca2a8c84f Uprevved l10n tarballs to version 1.0
damiend
parents: 2280
diff changeset
   115
* Mon Mar 29 2004 - [email protected]
9adca2a8c84f Uprevved l10n tarballs to version 1.0
damiend
parents: 2280
diff changeset
   116
- Adding apoc-adapter-gconf-l10n-po-1.0.tar.bz2 l10n content
9adca2a8c84f Uprevved l10n tarballs to version 1.0
damiend
parents: 2280
diff changeset
   117