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.26/GConf-%{version}.tar.bz2
18 # Source0-md5: 1f35137836eec03fa7e901230200a34a
19 Patch0: %{name}-NO_MAJOR_VERSION.patch
20 Patch1: %{name}-reload.patch
21 # http://bugzilla.gnome.org/show_bug.cgi?id=581880
22 Patch2: %{name}-workaround-bug581880.patch
23 URL: http://www.gnome.org/
24 BuildRequires: ORBit2-devel >= 1:2.14.9
25 BuildRequires: PolicyKit-devel >= 0.9
26 BuildRequires: autoconf
27 BuildRequires: automake >= 1:1.9
28 BuildRequires: gettext-devel
29 BuildRequires: dbus-glib-devel >= 0.74
30 BuildRequires: glib2-devel >= 1:2.19.0
31 BuildRequires: gtk+2-devel >= 2:2.15.0
32 BuildRequires: gtk-doc >= 1.8
33 BuildRequires: intltool >= 0.40.0
34 BuildRequires: libtool
35 BuildRequires: libxml2-devel >= 1:2.6.30
36 BuildRequires: openldap-devel >= 2.4.6
37 BuildRequires: perl-base
38 BuildRequires: pkgconfig
39 BuildRequires: rpmbuild(macros) >= 1.197
40 Requires(post): findutils
41 Requires: %{name}-libs = %{version}-%{release}
42 Obsoletes: GConf2-xinitrc
44 # sr@Latn vs. sr@latin
45 Conflicts: glibc-misc < 6:2.7
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 GConf2 is a configuration database system, functionally similar to the
50 Windows registry but lots better. :-) It's being written for the
51 GNOME2 desktop but does not require GNOME2; configure should notice if
52 GNOME2 is not installed and compile the basic GConf2 library anyway.
54 %description -l pl.UTF-8
55 GConf2 jest systemem konfiguracyjnej bazy danych, funkcjonalnie
56 podobnej do rejestru Windows, ale o wiele lepszej :-). Jest pisana dla
57 desktopu GNOME2, ale nie wymaga GNOME2; skrypt configure powinien
58 wykryć brak GNOME2 i skompilować tylko wersję podstawową GConf2.
60 %description -l pt_BR.UTF-8
61 Gconf2 é o sistema de banco de dados de configuração do GNOME2.
64 Summary: GConf2 shared library
65 Summary(pl.UTF-8): Biblioteka współdzielona GConf2
67 Requires: ORBit2 >= 1:2.14.9
68 Requires: glib2 >= 1:2.19.0
69 Conflicts: GConf2 < 2.24.0-2
72 GConf2 shared library and gconftool utility (used both for
73 configuration management and development purposes).
75 %description libs -l pl.UTF-8
76 Biblioteka współdzielona GConf2 oraz narzędzie gconftool (używane
77 zarówno przy zarządzaniu konfiguracją, jak i tworzeniu
81 Summary: Header files for GConf2 library
82 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GConf2
83 Summary(pt_BR.UTF-8): Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
84 Group: Development/Libraries
85 Requires: %{name}-libs = %{version}-%{release}
86 Requires: ORBit2-devel >= 1:2.14.9
87 Requires: dbus-devel >= 1.0.0
88 Requires: libxml2-devel >= 1:2.6.30
89 Obsoletes: libGConf2-devel
92 Header files for GConf2 library.
94 %description devel -l pl.UTF-8
95 Pliki nagłówkowe biblioteki GConf2.
97 %description devel -l pt_BR.UTF-8
98 Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
101 Summary: GConf2 static libraries
102 Summary(pl.UTF-8): Biblioteki statyczne GConf2
103 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com gconf2
104 Group: Development/Libraries
105 Requires: %{name}-devel = %{version}-%{release}
108 GConf2 static libraries.
110 %description static -l pl.UTF-8
111 Biblioteki statyczne GConf2.
113 %description static -l pt_BR.UTF-8
114 Bibliotecas estáticas para desenvolvimento com gconf
117 Summary: GConf2 API documentation
118 Summary(pl.UTF-8): Dokumentacja API GConf2
120 Requires: gtk-doc-common
123 GConf2 API documentation.
125 %description apidocs -l pl.UTF-8
126 Dokumentacja API GConf2.
129 Summary: GConf2 - example programs
130 Summary(pl.UTF-8): GConf2 - przykładowe programy
131 Group: Development/Libraries
132 Requires: %{name}-devel = %{version}-%{release}
134 %description examples
135 GConf2 - example programs.
137 %description examples -l pl.UTF-8
138 GConf2 - przykładowe programy.
140 %package backend-evoldap
141 Summary: Evolution Data Sources LDAP backend for GConf
142 Summary(pl.UTF-8): Backend LDAP źródeł danych Evolution dla GConfa
144 Requires: %{name} = %{version}-%{release}
146 %description backend-evoldap
147 This is a special-purpose backend for GConf which enables default mail
148 accounts, addressbooks and calendars for Evolution to be configured
149 using each user's LDAP entry. By setting each user's mail address,
150 incoming/outgoing mail server addresses and addressbook/calendar
151 addresses in the user's LDAP entry, Evolution will be automatically
152 configured to use these addresses.
154 %description backend-evoldap -l pl.UTF-8
155 To jest backend GConfa specjalnego przeznaczenia, pozwalający na
156 konfigurowanie domyślnych kont pocztowych, książek adresowych i
157 kalendarzy dla Evolution przy użyciu wpisu LDAP dla każdego
158 użytkownika. Poprzez ustawienie każdemu użytkownikowi adres pocztowy,
159 adresy serwerów poczty przychodzącej/wychodzącej oraz adresy książki
160 adresowej i kalendarza w jego wpisie LDAP, Evolution zostanie
161 automatycznie skonfigurowane do używania tych adresów.
164 %setup -q -n GConf-%{version}
179 POLKIT_POLICY_FILE_VALIDATE=/usr/bin/polkit-policy-file-validate \
180 %{!?with_static_libs:--disable-static} \
182 --with-html-dir=%{_gtkdocdir}
187 rm -rf $RPM_BUILD_ROOT
188 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}/gconf/{schemas,gconf.xml.system}}
191 DESTDIR=$RPM_BUILD_ROOT
193 cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
194 cp examples/*.schemas $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
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}/PolicyKit/policy/org.gnome.gconf.defaults.policy
237 %{_datadir}/dbus-1/services/org.gnome.GConf.service
238 %{_datadir}/dbus-1/system-services/org.gnome.GConf.Defaults.service
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