]> git.pld-linux.org Git - packages/GConf2.git/blame - GConf2.spec
- separated -libs (libgconf-2 + gconftool-2) to allow development without
[packages/GConf2.git] / GConf2.spec
CommitLineData
cb3e3a5b 1#
affeb290 2# TODO:
3# - update documentation to follow changes introduced in Patch0
4#
9589e6b3 5# Conditional build:
3c255572 6%bcond_without static_libs # don't build static libraries
9589e6b3 7#
70ad426d 8Summary: GNOME2 configuration database system
eec5f56a
ER
9Summary(pl.UTF-8): System konfiguracyjnej bazy danych dla GNOME 2
10Summary(pt_BR.UTF-8): Sistema de Configuração do GNOME 2
11Summary(ru.UTF-8): Система конфигурации GNOME 2
70ad426d 12Name: GConf2
891017f5 13Version: 2.24.0
10040bca 14Release: 2
af8d9212 15License: LGPL v2+
70ad426d 16Group: X11/Applications
891017f5
MB
17Source0: http://ftp.gnome.org/pub/GNOME/sources/GConf/2.24/GConf-%{version}.tar.bz2
18# Source0-md5: 4971d96f5ba94fe4a69396267bd5afe8
e00537d0 19Patch0: %{name}-NO_MAJOR_VERSION.patch
84d9d910 20Patch1: %{name}-path.patch
fae26a1a 21Patch2: %{name}-reload.patch
70ad426d 22URL: http://www.gnome.org/
6a75158a 23BuildRequires: ORBit2-devel >= 1:2.14.9
90a43b00 24BuildRequires: PolicyKit-devel >= 0.9
a948e6a1 25BuildRequires: autoconf
9c0e1d9c 26BuildRequires: automake >= 1:1.9
410c58ef 27BuildRequires: gettext-devel
891017f5 28BuildRequires: glib2-devel >= 1:2.18.0
9c0e1d9c 29BuildRequires: gtk+2-devel >= 2:2.12.8
8880401b 30BuildRequires: gtk-doc >= 1.8
6a75158a 31BuildRequires: intltool >= 0.36.2
a948e6a1 32BuildRequires: libtool
6a75158a 33BuildRequires: libxml2-devel >= 1:2.6.30
507c7593 34BuildRequires: openldap-devel >= 2.4.6
b057dd54 35BuildRequires: perl-base
70ad426d 36BuildRequires: pkgconfig
82fbd684 37BuildRequires: rpmbuild(macros) >= 1.197
46fa04c1 38Requires(post): findutils
10040bca 39Requires: %{name}-libs = %{version}-%{release}
af014341 40Obsoletes: GConf2-xinitrc
797e7b9f 41Obsoletes: libGConf2
1a67de6d 42# sr@Latn vs. sr@latin
43Conflicts: glibc-misc < 6:2.7
b057dd54 44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
70ad426d 45
70ad426d 46%description
47GConf2 is a configuration database system, functionally similar to the
edd1571b
JB
48Windows registry but lots better. :-) It's being written for the
49GNOME2 desktop but does not require GNOME2; configure should notice if
50GNOME2 is not installed and compile the basic GConf2 library anyway.
70ad426d 51
41d5538c 52%description -l pl.UTF-8
70ad426d 53GConf2 jest systemem konfiguracyjnej bazy danych, funkcjonalnie
54podobnej do rejestru Windows, ale o wiele lepszej :-). Jest pisana dla
edd1571b 55desktopu GNOME2, ale nie wymaga GNOME2; skrypt configure powinien
41d5538c 56wykryć brak GNOME2 i skompilować tylko wersję podstawową GConf2.
70ad426d 57
41d5538c
JR
58%description -l pt_BR.UTF-8
59Gconf2 é o sistema de banco de dados de configuração do GNOME2.
70ad426d 60
10040bca
JB
61%package libs
62Summary: GConf2 shared library
63Summary(pl.UTF-8): Biblioteka współdzielona GConf2
64Group: Libraries
65Requires: ORBit2 >= 1:2.14.9
66Requires: glib2 >= 1:2.18.0
67Conflicts: GConf2 < 2.24.0-2
e1a327be 68
10040bca
JB
69%description libs
70GConf2 shared library and gconftool utility (used both for
71configuration management and development purposes).
e1a327be 72
10040bca
JB
73%description libs -l pl.UTF-8
74Biblioteka współdzielona GConf2 oraz narzędzie gconftool (używane
75zarówno przy zarządzaniu konfiguracją, jak i tworzeniu
76oprogramowania).
e1a327be 77
70ad426d 78%package devel
10040bca
JB
79Summary: Header files for GConf2 library
80Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GConf2
eec5f56a 81Summary(pt_BR.UTF-8): Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
10040bca
JB
82Group: Development/Libraries
83Requires: %{name}-libs = %{version}-%{release}
6a75158a 84Requires: ORBit2-devel >= 1:2.14.9
6a75158a 85Requires: libxml2-devel >= 1:2.6.30
797e7b9f 86Obsoletes: libGConf2-devel
70ad426d 87
88%description devel
10040bca 89Header files for GConf2 library.
70ad426d 90
41d5538c 91%description devel -l pl.UTF-8
10040bca 92Pliki nagłówkowe biblioteki GConf2.
70ad426d 93
41d5538c
JR
94%description devel -l pt_BR.UTF-8
95Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
70ad426d 96
97%package static
98Summary: GConf2 static libraries
eec5f56a
ER
99Summary(pl.UTF-8): Biblioteki statyczne GConf2
100Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com gconf2
10040bca 101Group: Development/Libraries
d7220fca 102Requires: %{name}-devel = %{version}-%{release}
70ad426d 103
104%description static
105GConf2 static libraries.
106
41d5538c 107%description static -l pl.UTF-8
70ad426d 108Biblioteki statyczne GConf2.
109
41d5538c
JR
110%description static -l pt_BR.UTF-8
111Bibliotecas estáticas para desenvolvimento com gconf
70ad426d 112
10040bca
JB
113%package apidocs
114Summary: GConf2 API documentation
115Summary(pl.UTF-8): Dokumentacja API GConf2
116Group: Documentation
117Requires: gtk-doc-common
118
119%description apidocs
120GConf2 API documentation.
121
122%description apidocs -l pl.UTF-8
123Dokumentacja API GConf2.
124
6a75158a
MB
125%package examples
126Summary: GConf2 - example programs
127Summary(pl.UTF-8): GConf2 - przykładowe programy
10040bca 128Group: Development/Libraries
6a75158a
MB
129Requires: %{name}-devel = %{version}-%{release}
130
131%description examples
132GConf2 - example programs.
133
134%description examples -l pl.UTF-8
135GConf2 - przykładowe programy.
136
b21f9f89
JB
137%package backend-evoldap
138Summary: Evolution Data Sources LDAP backend for GConf
eec5f56a 139Summary(pl.UTF-8): Backend LDAP źródeł danych Evolution dla GConfa
b21f9f89
JB
140Group: Libraries
141Requires: %{name} = %{version}-%{release}
142
143%description backend-evoldap
144This is a special-purpose backend for GConf which enables default mail
145accounts, addressbooks and calendars for Evolution to be configured
146using each user's LDAP entry. By setting each user's mail address,
147incoming/outgoing mail server addresses and addressbook/calendar
148addresses in the user's LDAP entry, Evolution will be automatically
149configured to use these addresses.
150
41d5538c
JR
151%description backend-evoldap -l pl.UTF-8
152To jest backend GConfa specjalnego przeznaczenia, pozwalający na
153konfigurowanie domyślnych kont pocztowych, książek adresowych i
154kalendarzy dla Evolution przy użyciu wpisu LDAP dla każdego
155użytkownika. Poprzez ustawienie każdemu użytkownikowi adres pocztowy,
156adresy serwerów poczty przychodzącej/wychodzącej oraz adresy książki
b21f9f89 157adresowej i kalendarza w jego wpisie LDAP, Evolution zostanie
41d5538c 158automatycznie skonfigurowane do używania tych adresów.
b21f9f89 159
70ad426d 160%prep
affa5f14 161%setup -q -n GConf-%{version}
e00537d0 162%patch0 -p1
dfdd18a7 163%patch1 -p1
fae26a1a 164%patch2 -p1
70ad426d 165
166%build
114e3e03 167%{__gtkdocize}
82fbd684 168%{__glib_gettextize}
3cdb518c 169%{__intltoolize}
314d8d95 170%{__libtoolize}
43afe854 171%{__aclocal}
ad7fc529 172%{__autoheader}
ad7fc529 173%{__autoconf}
b057dd54 174%{__automake}
70ad426d 175%configure \
f6604249 176 POLKIT_POLICY_FILE_VALIDATE=/usr/bin/polkit-policy-file-validate \
3c255572 177 %{!?with_static_libs:--disable-static} \
b21f9f89
JB
178 --enable-gtk-doc \
179 --with-html-dir=%{_gtkdocdir}
70ad426d 180
181%{__make}
182
183%install
184rm -rf $RPM_BUILD_ROOT
6a75158a 185install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}/gconf/schemas}
70ad426d 186
187%{__make} install \
f116bc09
TP
188 DESTDIR=$RPM_BUILD_ROOT
189
6a75158a 190cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
9c0e1d9c 191cp examples/*.schemas $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
6a75158a 192
70ad426d 193%find_lang %{name}
194
9a1becbf
JB
195# no *.{la,a} for modules - shut up check-files
196rm -f $RPM_BUILD_ROOT%{_libdir}/GConf2/lib*.{la,a}
197
70ad426d 198%clean
199rm -rf $RPM_BUILD_ROOT
200
af014341 201%post
af014341 202umask 022
203for GCONF_DIR in %{_sysconfdir}/gconf/gconf.xml.mandatory %{_sysconfdir}/gconf/gconf.xml.defaults ;
204 do
205 GCONF_TREE=$GCONF_DIR/%gconf-tree.xml
206 if [ ! -f "$GCONF_TREE" ]; then
207 gconf-merge-tree "$GCONF_DIR"
208 chmod 644 "$GCONF_TREE"
209 find "$GCONF_DIR" -mindepth 1 -maxdepth 1 -type d -exec rm -rf \{\} \;
210 rm -f "$GCONF_DIR/%gconf.xml"
211 fi
212done
9c0e1d9c 213
10040bca
JB
214%post libs -p /sbin/ldconfig
215%postun libs -p /sbin/ldconfig
70ad426d 216
10040bca 217%files
70ad426d 218%defattr(644,root,root,755)
b057dd54 219%doc AUTHORS NEWS README
af8d9212 220%attr(755,root,root) %{_bindir}/gconf-merge-tree
891017f5
MB
221%attr(755,root,root) %{_libexecdir}/gconf-defaults-mechanism
222%attr(755,root,root) %{_libexecdir}/gconf-sanity-check-2
223%attr(755,root,root) %{_libexecdir}/gconfd-2
e00537d0 224%dir %{_libdir}/GConf2
b21f9f89
JB
225%attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-oldxml.so
226%attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-xml.so
891017f5 227%{_sysconfdir}/dbus-1/system.d/org.gnome.GConf.Defaults.conf
b21f9f89
JB
228%dir %{_sysconfdir}/gconf
229%dir %{_sysconfdir}/gconf/2
230%{_sysconfdir}/gconf/gconf.xml.*
231%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/path
232%dir %{_sysconfdir}/gconf/schemas
891017f5
MB
233%{_datadir}/PolicyKit/policy/org.gnome.gconf.defaults.policy
234%{_datadir}/dbus-1/services/org.gnome.GConf.service
235%{_datadir}/dbus-1/system-services/org.gnome.GConf.Defaults.service
b21f9f89
JB
236%dir %{_datadir}/GConf
237%dir %{_datadir}/GConf/schema
3033af1d 238%{_datadir}/sgml/gconf
70ad426d 239
10040bca 240%files libs -f %{name}.lang
e1a327be 241%defattr(644,root,root,755)
10040bca
JB
242%attr(755,root,root) %{_libdir}/libgconf-2.so.*.*.*
243%attr(755,root,root) %ghost %{_libdir}/libgconf-2.so.4
244%attr(755,root,root) %{_bindir}/gconftool-2
245%{_mandir}/man1/gconftool-2.1*
e1a327be 246
70ad426d 247%files devel
248%defattr(644,root,root,755)
c81f7abe 249%doc ChangeLog TODO
af8d9212
JB
250%attr(755,root,root) %{_libdir}/libgconf-2.so
251%{_libdir}/libgconf-2.la
e00537d0 252%{_includedir}/gconf2
af8d9212
JB
253%{_aclocaldir}/gconf-2.m4
254%{_pkgconfigdir}/gconf-2.0.pc
70ad426d 255
3c255572 256%if %{with static_libs}
70ad426d 257%files static
258%defattr(644,root,root,755)
af8d9212 259%{_libdir}/libgconf-2.a
23f0fa1e 260%endif
b21f9f89 261
10040bca
JB
262%files apidocs
263%defattr(644,root,root,755)
264%{_gtkdocdir}/gconf
265
6a75158a
MB
266%files examples
267%defattr(644,root,root,755)
268%{_examplesdir}/%{name}-%{version}
269
b21f9f89
JB
270%files backend-evoldap
271%defattr(644,root,root,755)
272%doc backends/README.evoldap
273%attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-evoldap.so
274%{_datadir}/GConf/schema/evoldap.schema
275%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/2/evoldap.conf
This page took 0.092603 seconds and 4 git commands to generate.