]> git.pld-linux.org Git - packages/GConf2.git/blame - GConf2.spec
- BR: PolicyKit-devel >= 0.9 for polkit_dbus_error_generate
[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
9c0e1d9c 14Release: 1
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
6a75158a 39Requires: ORBit2 >= 1:2.14.9
891017f5 40Requires: glib2 >= 1:2.18.0
af014341 41Obsoletes: GConf2-xinitrc
797e7b9f 42Obsoletes: libGConf2
1a67de6d 43# sr@Latn vs. sr@latin
44Conflicts: glibc-misc < 6:2.7
b057dd54 45BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
70ad426d 46
70ad426d 47%description
48GConf2 is a configuration database system, functionally similar to the
edd1571b
JB
49Windows registry but lots better. :-) It's being written for the
50GNOME2 desktop but does not require GNOME2; configure should notice if
51GNOME2 is not installed and compile the basic GConf2 library anyway.
70ad426d 52
41d5538c 53%description -l pl.UTF-8
70ad426d 54GConf2 jest systemem konfiguracyjnej bazy danych, funkcjonalnie
55podobnej do rejestru Windows, ale o wiele lepszej :-). Jest pisana dla
edd1571b 56desktopu GNOME2, ale nie wymaga GNOME2; skrypt configure powinien
41d5538c 57wykryć brak GNOME2 i skompilować tylko wersję podstawową GConf2.
70ad426d 58
41d5538c
JR
59%description -l pt_BR.UTF-8
60Gconf2 é o sistema de banco de dados de configuração do GNOME2.
70ad426d 61
e1a327be
MB
62%package apidocs
63Summary: GConf2 API documentation
eec5f56a 64Summary(pl.UTF-8): Dokumentacja API GConf2
e1a327be
MB
65Group: Documentation
66Requires: gtk-doc-common
67
68%description apidocs
69GConf2 API documentation.
70
41d5538c 71%description apidocs -l pl.UTF-8
e1a327be
MB
72Dokumentacja API GConf2.
73
70ad426d 74%package devel
75Summary: GConf2 includes, etc
eec5f56a
ER
76Summary(pl.UTF-8): Pliki nagłówkowe GConf2
77Summary(pt_BR.UTF-8): Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
70ad426d 78Group: X11/Development/Libraries
d7220fca 79Requires: %{name} = %{version}-%{release}
6a75158a 80Requires: ORBit2-devel >= 1:2.14.9
6a75158a 81Requires: libxml2-devel >= 1:2.6.30
797e7b9f 82Obsoletes: libGConf2-devel
70ad426d 83
84%description devel
85GConf2 includes etc.
86
41d5538c
JR
87%description devel -l pl.UTF-8
88Pliki nagłówkowe GConf2.
70ad426d 89
41d5538c
JR
90%description devel -l pt_BR.UTF-8
91Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
70ad426d 92
93%package static
94Summary: GConf2 static libraries
eec5f56a
ER
95Summary(pl.UTF-8): Biblioteki statyczne GConf2
96Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com gconf2
70ad426d 97Group: X11/Development/Libraries
d7220fca 98Requires: %{name}-devel = %{version}-%{release}
70ad426d 99
100%description static
101GConf2 static libraries.
102
41d5538c 103%description static -l pl.UTF-8
70ad426d 104Biblioteki statyczne GConf2.
105
41d5538c
JR
106%description static -l pt_BR.UTF-8
107Bibliotecas estáticas para desenvolvimento com gconf
70ad426d 108
6a75158a
MB
109%package examples
110Summary: GConf2 - example programs
111Summary(pl.UTF-8): GConf2 - przykładowe programy
112Group: X11/Development/Libraries
113Requires: %{name}-devel = %{version}-%{release}
114
115%description examples
116GConf2 - example programs.
117
118%description examples -l pl.UTF-8
119GConf2 - przykładowe programy.
120
b21f9f89
JB
121%package backend-evoldap
122Summary: Evolution Data Sources LDAP backend for GConf
eec5f56a 123Summary(pl.UTF-8): Backend LDAP źródeł danych Evolution dla GConfa
b21f9f89
JB
124Group: Libraries
125Requires: %{name} = %{version}-%{release}
126
127%description backend-evoldap
128This is a special-purpose backend for GConf which enables default mail
129accounts, addressbooks and calendars for Evolution to be configured
130using each user's LDAP entry. By setting each user's mail address,
131incoming/outgoing mail server addresses and addressbook/calendar
132addresses in the user's LDAP entry, Evolution will be automatically
133configured to use these addresses.
134
41d5538c
JR
135%description backend-evoldap -l pl.UTF-8
136To jest backend GConfa specjalnego przeznaczenia, pozwalający na
137konfigurowanie domyślnych kont pocztowych, książek adresowych i
138kalendarzy dla Evolution przy użyciu wpisu LDAP dla każdego
139użytkownika. Poprzez ustawienie każdemu użytkownikowi adres pocztowy,
140adresy serwerów poczty przychodzącej/wychodzącej oraz adresy książki
b21f9f89 141adresowej i kalendarza w jego wpisie LDAP, Evolution zostanie
41d5538c 142automatycznie skonfigurowane do używania tych adresów.
b21f9f89 143
70ad426d 144%prep
affa5f14 145%setup -q -n GConf-%{version}
e00537d0 146%patch0 -p1
dfdd18a7 147%patch1 -p1
fae26a1a 148%patch2 -p1
70ad426d 149
150%build
114e3e03 151%{__gtkdocize}
82fbd684 152%{__glib_gettextize}
3cdb518c 153%{__intltoolize}
314d8d95 154%{__libtoolize}
43afe854 155%{__aclocal}
ad7fc529 156%{__autoheader}
ad7fc529 157%{__autoconf}
b057dd54 158%{__automake}
70ad426d 159%configure \
f6604249 160 POLKIT_POLICY_FILE_VALIDATE=/usr/bin/polkit-policy-file-validate \
3c255572 161 %{!?with_static_libs:--disable-static} \
b21f9f89
JB
162 --enable-gtk-doc \
163 --with-html-dir=%{_gtkdocdir}
70ad426d 164
165%{__make}
166
167%install
168rm -rf $RPM_BUILD_ROOT
6a75158a 169install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}/gconf/schemas}
70ad426d 170
171%{__make} install \
f116bc09
TP
172 DESTDIR=$RPM_BUILD_ROOT
173
6a75158a 174cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
9c0e1d9c 175cp examples/*.schemas $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
6a75158a 176
70ad426d 177%find_lang %{name}
178
9a1becbf
JB
179# no *.{la,a} for modules - shut up check-files
180rm -f $RPM_BUILD_ROOT%{_libdir}/GConf2/lib*.{la,a}
181
70ad426d 182%clean
183rm -rf $RPM_BUILD_ROOT
184
af014341 185%post
186/sbin/ldconfig
187umask 022
188for GCONF_DIR in %{_sysconfdir}/gconf/gconf.xml.mandatory %{_sysconfdir}/gconf/gconf.xml.defaults ;
189 do
190 GCONF_TREE=$GCONF_DIR/%gconf-tree.xml
191 if [ ! -f "$GCONF_TREE" ]; then
192 gconf-merge-tree "$GCONF_DIR"
193 chmod 644 "$GCONF_TREE"
194 find "$GCONF_DIR" -mindepth 1 -maxdepth 1 -type d -exec rm -rf \{\} \;
195 rm -f "$GCONF_DIR/%gconf.xml"
196 fi
197done
9c0e1d9c 198
a286d3d8 199%postun -p /sbin/ldconfig
70ad426d 200
201%files -f %{name}.lang
202%defattr(644,root,root,755)
b057dd54 203%doc AUTHORS NEWS README
af8d9212
JB
204%attr(755,root,root) %{_bindir}/gconf-merge-tree
205%attr(755,root,root) %{_bindir}/gconftool-2
891017f5
MB
206%attr(755,root,root) %{_libexecdir}/gconf-defaults-mechanism
207%attr(755,root,root) %{_libexecdir}/gconf-sanity-check-2
208%attr(755,root,root) %{_libexecdir}/gconfd-2
af8d9212 209%attr(755,root,root) %{_libdir}/libgconf-2.so.*.*.*
9c0e1d9c 210%attr(755,root,root) %ghost %{_libdir}/libgconf-2.so.4
e00537d0 211%dir %{_libdir}/GConf2
b21f9f89
JB
212%attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-oldxml.so
213%attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-xml.so
891017f5 214%{_sysconfdir}/dbus-1/system.d/org.gnome.GConf.Defaults.conf
b21f9f89
JB
215%dir %{_sysconfdir}/gconf
216%dir %{_sysconfdir}/gconf/2
217%{_sysconfdir}/gconf/gconf.xml.*
218%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/path
219%dir %{_sysconfdir}/gconf/schemas
891017f5
MB
220%{_datadir}/PolicyKit/policy/org.gnome.gconf.defaults.policy
221%{_datadir}/dbus-1/services/org.gnome.GConf.service
222%{_datadir}/dbus-1/system-services/org.gnome.GConf.Defaults.service
b21f9f89
JB
223%dir %{_datadir}/GConf
224%dir %{_datadir}/GConf/schema
3033af1d 225%{_datadir}/sgml/gconf
af8d9212 226%{_mandir}/man1/gconftool-2.1*
70ad426d 227
e1a327be
MB
228%files apidocs
229%defattr(644,root,root,755)
230%{_gtkdocdir}/gconf
231
70ad426d 232%files devel
233%defattr(644,root,root,755)
c81f7abe 234%doc ChangeLog TODO
af8d9212
JB
235%attr(755,root,root) %{_libdir}/libgconf-2.so
236%{_libdir}/libgconf-2.la
e00537d0 237%{_includedir}/gconf2
af8d9212
JB
238%{_aclocaldir}/gconf-2.m4
239%{_pkgconfigdir}/gconf-2.0.pc
70ad426d 240
3c255572 241%if %{with static_libs}
70ad426d 242%files static
243%defattr(644,root,root,755)
af8d9212 244%{_libdir}/libgconf-2.a
23f0fa1e 245%endif
b21f9f89 246
6a75158a
MB
247%files examples
248%defattr(644,root,root,755)
249%{_examplesdir}/%{name}-%{version}
250
b21f9f89
JB
251%files backend-evoldap
252%defattr(644,root,root,755)
253%doc backends/README.evoldap
254%attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-evoldap.so
255%{_datadir}/GConf/schema/evoldap.schema
256%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/2/evoldap.conf
This page took 0.151806 seconds and 4 git commands to generate.