2 # - update documentation to follow changes introduced in Patch0
5 %bcond_with apidocs # build apidocs (broken with new gtk-doc)
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/3.2/GConf-%{version}.tar.xz
18 # Source0-md5: 2b16996d0e4b112856ee5c59130e822c
19 Patch0: %{name}-NO_MAJOR_VERSION.patch
20 Patch1: %{name}-reload.patch
21 Patch2: workaround-crash.patch
23 URL: https://projects-old.gnome.org/gconf/
24 BuildRequires: ORBit2-devel >= 1:2.14.9
25 BuildRequires: autoconf >= 2.60
26 BuildRequires: automake >= 1:1.9
27 BuildRequires: dbus-devel >= 1.0.0
28 BuildRequires: dbus-glib-devel >= 0.74
29 BuildRequires: docbook-dtd412-xml
30 BuildRequires: gettext-tools
31 BuildRequires: glib2-devel >= 1:2.31.0
32 BuildRequires: gobject-introspection-devel >= 0.10.0
33 BuildRequires: gtk+3-devel >= 3.0.0
34 %{?with_apidocs:BuildRequires: gtk-doc >= 1.8}
35 BuildRequires: intltool >= 0.40.0
36 BuildRequires: libtool
37 BuildRequires: libxml2-devel >= 1:2.6.30
38 BuildRequires: openldap-devel >= 2.4.6
39 BuildRequires: perl-base
40 BuildRequires: pkgconfig
41 BuildRequires: polkit-devel >= 0.92
42 BuildRequires: rpm-pythonprov
43 BuildRequires: rpmbuild(macros) >= 1.527
44 BuildRequires: tar >= 1:1.22
46 Requires(post): findutils
47 Requires(post,postun): glib2 >= 1:2.31.0
48 Requires: %{name}-libs = %{version}-%{release}
49 Requires: psmisc >= 20.1-2
50 Obsoletes: GConf2-xinitrc
52 # sr@Latn vs. sr@latin
53 Conflicts: glibc-misc < 6:2.7
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57 GConf2 is a configuration database system, functionally similar to the
58 Windows registry but lots better. :-) It's being written for the
59 GNOME2 desktop but does not require GNOME2; configure should notice if
60 GNOME2 is not installed and compile the basic GConf2 library anyway.
62 %description -l pl.UTF-8
63 GConf2 jest systemem konfiguracyjnej bazy danych, funkcjonalnie
64 podobnej do rejestru Windows, ale o wiele lepszej :-). Jest pisana dla
65 desktopu GNOME2, ale nie wymaga GNOME2; skrypt configure powinien
66 wykryć brak GNOME2 i skompilować tylko wersję podstawową GConf2.
68 %description -l pt_BR.UTF-8
69 Gconf2 é o sistema de banco de dados de configuração do GNOME2.
72 Summary: GConf2 shared library
73 Summary(pl.UTF-8): Biblioteka współdzielona GConf2
75 Requires: ORBit2 >= 1:2.14.9
76 Requires: glib2 >= 1:2.31.0
77 Conflicts: GConf2 < 2.24.0-2
80 GConf2 shared library and gconftool utility (used both for
81 configuration management and development purposes).
83 %description libs -l pl.UTF-8
84 Biblioteka współdzielona GConf2 oraz narzędzie gconftool (używane
85 zarówno przy zarządzaniu konfiguracją, jak i tworzeniu
89 Summary: Header files for GConf2 library
90 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GConf2
91 Summary(pt_BR.UTF-8): Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
92 Group: Development/Libraries
93 Requires: %{name}-libs = %{version}-%{release}
94 Requires: ORBit2-devel >= 1:2.14.9
95 Requires: dbus-devel >= 1.0.0
96 Requires: glib2-devel >= 1:2.31.0
97 Requires: libxml2-devel >= 1:2.6.30
98 Obsoletes: libGConf2-devel
101 Header files for GConf2 library.
103 %description devel -l pl.UTF-8
104 Pliki nagłówkowe biblioteki GConf2.
106 %description devel -l pt_BR.UTF-8
107 Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
110 Summary: GConf2 static libraries
111 Summary(pl.UTF-8): Biblioteki statyczne GConf2
112 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com gconf2
113 Group: Development/Libraries
114 Requires: %{name}-devel = %{version}-%{release}
117 GConf2 static libraries.
119 %description static -l pl.UTF-8
120 Biblioteki statyczne GConf2.
122 %description static -l pt_BR.UTF-8
123 Bibliotecas estáticas para desenvolvimento com gconf
126 Summary: GConf2 API documentation
127 Summary(pl.UTF-8): Dokumentacja API GConf2
129 Requires: gtk-doc-common
133 GConf2 API documentation.
135 %description apidocs -l pl.UTF-8
136 Dokumentacja API GConf2.
139 Summary: GConf2 - example programs
140 Summary(pl.UTF-8): GConf2 - przykładowe programy
141 Group: Development/Libraries
142 Requires: %{name}-devel = %{version}-%{release}
144 %description examples
145 GConf2 - example programs.
147 %description examples -l pl.UTF-8
148 GConf2 - przykładowe programy.
150 %package backend-evoldap
151 Summary: Evolution Data Sources LDAP backend for GConf
152 Summary(pl.UTF-8): Backend LDAP źródeł danych Evolution dla GConfa
154 Requires: %{name} = %{version}-%{release}
156 %description backend-evoldap
157 This is a special-purpose backend for GConf which enables default mail
158 accounts, addressbooks and calendars for Evolution to be configured
159 using each user's LDAP entry. By setting each user's mail address,
160 incoming/outgoing mail server addresses and addressbook/calendar
161 addresses in the user's LDAP entry, Evolution will be automatically
162 configured to use these addresses.
164 %description backend-evoldap -l pl.UTF-8
165 To jest backend GConfa specjalnego przeznaczenia, pozwalający na
166 konfigurowanie domyślnych kont pocztowych, książek adresowych i
167 kalendarzy dla Evolution przy użyciu wpisu LDAP dla każdego
168 użytkownika. Poprzez ustawienie każdemu użytkownikowi adres pocztowy,
169 adresy serwerów poczty przychodzącej/wychodzącej oraz adresy książki
170 adresowej i kalendarza w jego wpisie LDAP, Evolution zostanie
171 automatycznie skonfigurowane do używania tych adresów.
174 %setup -q -n GConf-%{version}
181 %{?with_apidocs:%{__gtkdocize}}
190 --disable-silent-rules \
191 %{!?with_static_libs:--disable-static} \
192 %{__enable_disable apidocs gtk-doc} \
193 --with-html-dir=%{_gtkdocdir}
198 rm -rf $RPM_BUILD_ROOT
199 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}/gconf/{schemas,gconf.xml.system},%{_datadir}/GConf/gsettings}
202 DESTDIR=$RPM_BUILD_ROOT
204 cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
205 cp examples/*.schemas $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
209 # no *.{la,a} for modules - shut up check-files
210 %{__rm} $RPM_BUILD_ROOT%{_libdir}/{GConf2,gio/modules}/lib*.la
211 %if %{with static_libs}
212 %{__rm} $RPM_BUILD_ROOT%{_libdir}/{GConf2,gio/modules}/lib*.a
214 # obsoleted by pkg-config
215 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgconf-2.la
218 rm -rf $RPM_BUILD_ROOT
222 for GCONF_DIR in %{_sysconfdir}/gconf/gconf.xml.mandatory %{_sysconfdir}/gconf/gconf.xml.defaults ;
224 GCONF_TREE=$GCONF_DIR/%gconf-tree.xml
225 if [ ! -f "$GCONF_TREE" ]; then
226 gconf-merge-tree "$GCONF_DIR"
227 chmod 644 "$GCONF_TREE"
228 find "$GCONF_DIR" -mindepth 1 -maxdepth 1 -type d -exec rm -rf \{\} \;
229 rm -f "$GCONF_DIR/%gconf.xml"
233 %{_bindir}/gio-querymodules %{_libdir}/gio/modules
237 %{_bindir}/gio-querymodules %{_libdir}/gio/modules
240 %post libs -p /sbin/ldconfig
241 %postun libs -p /sbin/ldconfig
244 %defattr(644,root,root,755)
245 %doc AUTHORS ChangeLog NEWS README TODO
246 %attr(755,root,root) %{_bindir}/gconf-merge-tree
247 %attr(755,root,root) %{_bindir}/gsettings-data-convert
248 %attr(755,root,root) %{_bindir}/gsettings-schema-convert
249 %attr(755,root,root) %{_libexecdir}/gconf-defaults-mechanism
250 %attr(755,root,root) %{_libexecdir}/gconfd-2
251 %dir %{_libdir}/GConf2
252 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-oldxml.so
253 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-xml.so
254 %attr(755,root,root) %{_libdir}/gio/modules/libgsettingsgconfbackend.so
255 /etc/dbus-1/system.d/org.gnome.GConf.Defaults.conf
256 %{_sysconfdir}/xdg/autostart/gsettings-data-convert.desktop
257 %dir %{_sysconfdir}/gconf
258 %dir %{_sysconfdir}/gconf/2
259 %{_sysconfdir}/gconf/gconf.xml.*
260 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/path
261 %dir %{_sysconfdir}/gconf/schemas
262 %{_datadir}/dbus-1/services/org.gnome.GConf.service
263 %{_datadir}/dbus-1/system-services/org.gnome.GConf.Defaults.service
264 %{_datadir}/polkit-1/actions/org.gnome.gconf.defaults.policy
265 %dir %{_datadir}/GConf
266 %dir %{_datadir}/GConf/gsettings
267 %dir %{_datadir}/GConf/schema
268 %{_datadir}/sgml/gconf
269 %{_mandir}/man1/gsettings-data-convert.1*
270 %{_mandir}/man1/gsettings-schema-convert.1*
272 %files libs -f %{name}.lang
273 %defattr(644,root,root,755)
274 %attr(755,root,root) %{_libdir}/libgconf-2.so.*.*.*
275 %attr(755,root,root) %ghost %{_libdir}/libgconf-2.so.4
276 %attr(755,root,root) %{_bindir}/gconftool-2
277 %{_mandir}/man1/gconftool-2.1*
278 %{_libdir}/girepository-1.0/GConf-2.0.typelib
281 %defattr(644,root,root,755)
282 %attr(755,root,root) %{_libdir}/libgconf-2.so
283 %{_includedir}/gconf2
284 %{_aclocaldir}/gconf-2.m4
285 %{_pkgconfigdir}/gconf-2.0.pc
286 %{_datadir}/gir-1.0/GConf-2.0.gir
288 %if %{with static_libs}
290 %defattr(644,root,root,755)
291 %{_libdir}/libgconf-2.a
296 %defattr(644,root,root,755)
301 %defattr(644,root,root,755)
302 %{_examplesdir}/%{name}-%{version}
304 %files backend-evoldap
305 %defattr(644,root,root,755)
306 %doc backends/README.evoldap
307 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-evoldap.so
308 %{_datadir}/GConf/schema/evoldap.schema
309 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/2/evoldap.conf