3 # - update documentation to follow changes introduced in Patch0
6 %bcond_without static_libs # don't build static libraries
8 Summary: GNOME2 configuration database system
9 Summary(pl.UTF-8): System konfiguracyjnej bazy danych dla GNOME 2
10 Summary(pt_BR.UTF-8): Sistema de Configuração do GNOME 2
11 Summary(ru.UTF-8): Система конфигурации GNOME 2
16 Group: X11/Applications
17 Source0: http://ftp.gnome.org/pub/GNOME/sources/GConf/2.28/GConf-%{version}.tar.bz2
18 # Source0-md5: ad2aeb9c7d906b274954c51a615caeac
19 Patch0: %{name}-NO_MAJOR_VERSION.patch
20 Patch1: %{name}-reload.patch
21 URL: http://www.gnome.org/
22 BuildRequires: ORBit2-devel >= 1:2.14.9
23 BuildRequires: autoconf >= 2.60
24 BuildRequires: automake >= 1:1.9
25 BuildRequires: docbook-dtd412-xml
26 BuildRequires: gettext-devel
27 BuildRequires: dbus-glib-devel >= 0.74
28 BuildRequires: glib2-devel >= 1:2.20.0
29 BuildRequires: gtk+2-devel >= 2:2.16.0
30 BuildRequires: gtk-doc >= 1.8
31 BuildRequires: intltool >= 0.40.0
32 BuildRequires: libtool
33 BuildRequires: libxml2-devel >= 1:2.6.30
34 BuildRequires: openldap-devel >= 2.4.6
35 BuildRequires: perl-base
36 BuildRequires: pkgconfig
37 BuildRequires: polkit-devel >= 0.92
38 BuildRequires: rpmbuild(macros) >= 1.197
39 Requires(post): findutils
40 Requires: %{name}-libs = %{version}-%{release}
41 Obsoletes: GConf2-xinitrc
43 # sr@Latn vs. sr@latin
44 Conflicts: glibc-misc < 6:2.7
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 GConf2 is a configuration database system, functionally similar to the
49 Windows registry but lots better. :-) It's being written for the
50 GNOME2 desktop but does not require GNOME2; configure should notice if
51 GNOME2 is not installed and compile the basic GConf2 library anyway.
53 %description -l pl.UTF-8
54 GConf2 jest systemem konfiguracyjnej bazy danych, funkcjonalnie
55 podobnej do rejestru Windows, ale o wiele lepszej :-). Jest pisana dla
56 desktopu GNOME2, ale nie wymaga GNOME2; skrypt configure powinien
57 wykryć brak GNOME2 i skompilować tylko wersję podstawową GConf2.
59 %description -l pt_BR.UTF-8
60 Gconf2 é o sistema de banco de dados de configuração do GNOME2.
63 Summary: GConf2 shared library
64 Summary(pl.UTF-8): Biblioteka współdzielona GConf2
66 Requires: ORBit2 >= 1:2.14.9
67 Requires: glib2 >= 1:2.20.0
68 Conflicts: GConf2 < 2.24.0-2
71 GConf2 shared library and gconftool utility (used both for
72 configuration management and development purposes).
74 %description libs -l pl.UTF-8
75 Biblioteka współdzielona GConf2 oraz narzędzie gconftool (używane
76 zarówno przy zarządzaniu konfiguracją, jak i tworzeniu
80 Summary: Header files for GConf2 library
81 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GConf2
82 Summary(pt_BR.UTF-8): Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
83 Group: Development/Libraries
84 Requires: %{name}-libs = %{version}-%{release}
85 Requires: ORBit2-devel >= 1:2.14.9
86 Requires: dbus-devel >= 1.0.0
87 Requires: libxml2-devel >= 1:2.6.30
88 Obsoletes: libGConf2-devel
91 Header files for GConf2 library.
93 %description devel -l pl.UTF-8
94 Pliki nagłówkowe biblioteki GConf2.
96 %description devel -l pt_BR.UTF-8
97 Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
100 Summary: GConf2 static libraries
101 Summary(pl.UTF-8): Biblioteki statyczne GConf2
102 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com gconf2
103 Group: Development/Libraries
104 Requires: %{name}-devel = %{version}-%{release}
107 GConf2 static libraries.
109 %description static -l pl.UTF-8
110 Biblioteki statyczne GConf2.
112 %description static -l pt_BR.UTF-8
113 Bibliotecas estáticas para desenvolvimento com gconf
116 Summary: GConf2 API documentation
117 Summary(pl.UTF-8): Dokumentacja API GConf2
119 Requires: gtk-doc-common
122 GConf2 API documentation.
124 %description apidocs -l pl.UTF-8
125 Dokumentacja API GConf2.
128 Summary: GConf2 - example programs
129 Summary(pl.UTF-8): GConf2 - przykładowe programy
130 Group: Development/Libraries
131 Requires: %{name}-devel = %{version}-%{release}
133 %description examples
134 GConf2 - example programs.
136 %description examples -l pl.UTF-8
137 GConf2 - przykładowe programy.
139 %package backend-evoldap
140 Summary: Evolution Data Sources LDAP backend for GConf
141 Summary(pl.UTF-8): Backend LDAP źródeł danych Evolution dla GConfa
143 Requires: %{name} = %{version}-%{release}
145 %description backend-evoldap
146 This is a special-purpose backend for GConf which enables default mail
147 accounts, addressbooks and calendars for Evolution to be configured
148 using each user's LDAP entry. By setting each user's mail address,
149 incoming/outgoing mail server addresses and addressbook/calendar
150 addresses in the user's LDAP entry, Evolution will be automatically
151 configured to use these addresses.
153 %description backend-evoldap -l pl.UTF-8
154 To jest backend GConfa specjalnego przeznaczenia, pozwalający na
155 konfigurowanie domyślnych kont pocztowych, książek adresowych i
156 kalendarzy dla Evolution przy użyciu wpisu LDAP dla każdego
157 użytkownika. Poprzez ustawienie każdemu użytkownikowi adres pocztowy,
158 adresy serwerów poczty przychodzącej/wychodzącej oraz adresy książki
159 adresowej i kalendarza w jego wpisie LDAP, Evolution zostanie
160 automatycznie skonfigurowane do używania tych adresów.
163 %setup -q -n GConf-%{version}
177 POLKIT_POLICY_FILE_VALIDATE=/usr/bin/polkit-policy-file-validate \
178 %{!?with_static_libs:--disable-static} \
180 --with-html-dir=%{_gtkdocdir}
185 rm -rf $RPM_BUILD_ROOT
186 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}/gconf/{schemas,gconf.xml.system}}
189 DESTDIR=$RPM_BUILD_ROOT
191 cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
192 cp examples/*.schemas $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
194 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/ca@valencia
198 # no *.{la,a} for modules - shut up check-files
199 rm -f $RPM_BUILD_ROOT%{_libdir}/GConf2/lib*.{la,a}
202 rm -rf $RPM_BUILD_ROOT
206 for GCONF_DIR in %{_sysconfdir}/gconf/gconf.xml.mandatory %{_sysconfdir}/gconf/gconf.xml.defaults ;
208 GCONF_TREE=$GCONF_DIR/%gconf-tree.xml
209 if [ ! -f "$GCONF_TREE" ]; then
210 gconf-merge-tree "$GCONF_DIR"
211 chmod 644 "$GCONF_TREE"
212 find "$GCONF_DIR" -mindepth 1 -maxdepth 1 -type d -exec rm -rf \{\} \;
213 rm -f "$GCONF_DIR/%gconf.xml"
217 %post libs -p /sbin/ldconfig
218 %postun libs -p /sbin/ldconfig
221 %defattr(644,root,root,755)
222 %doc AUTHORS NEWS README
223 %attr(755,root,root) %{_bindir}/gconf-merge-tree
224 %attr(755,root,root) %{_libexecdir}/gconf-defaults-mechanism
225 %attr(755,root,root) %{_libexecdir}/gconf-sanity-check-2
226 %attr(755,root,root) %{_libexecdir}/gconfd-2
227 %dir %{_libdir}/GConf2
228 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-oldxml.so
229 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-xml.so
230 %{_sysconfdir}/dbus-1/system.d/org.gnome.GConf.Defaults.conf
231 %dir %{_sysconfdir}/gconf
232 %dir %{_sysconfdir}/gconf/2
233 %{_sysconfdir}/gconf/gconf.xml.*
234 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/path
235 %dir %{_sysconfdir}/gconf/schemas
236 %{_datadir}/dbus-1/services/org.gnome.GConf.service
237 %{_datadir}/dbus-1/system-services/org.gnome.GConf.Defaults.service
238 %{_datadir}/polkit-1/actions/org.gnome.gconf.defaults.policy
239 %dir %{_datadir}/GConf
240 %dir %{_datadir}/GConf/schema
241 %{_datadir}/sgml/gconf
243 %files libs -f %{name}.lang
244 %defattr(644,root,root,755)
245 %attr(755,root,root) %{_libdir}/libgconf-2.so.*.*.*
246 %attr(755,root,root) %ghost %{_libdir}/libgconf-2.so.4
247 %attr(755,root,root) %{_bindir}/gconftool-2
248 %{_mandir}/man1/gconftool-2.1*
251 %defattr(644,root,root,755)
253 %attr(755,root,root) %{_libdir}/libgconf-2.so
254 %{_libdir}/libgconf-2.la
255 %{_includedir}/gconf2
256 %{_aclocaldir}/gconf-2.m4
257 %{_pkgconfigdir}/gconf-2.0.pc
259 %if %{with static_libs}
261 %defattr(644,root,root,755)
262 %{_libdir}/libgconf-2.a
266 %defattr(644,root,root,755)
270 %defattr(644,root,root,755)
271 %{_examplesdir}/%{name}-%{version}
273 %files backend-evoldap
274 %defattr(644,root,root,755)
275 %doc backends/README.evoldap
276 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-evoldap.so
277 %{_datadir}/GConf/schema/evoldap.schema
278 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/2/evoldap.conf