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: 8b55d58dab13e821e048627aa4f92b8b
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: PolicyKit-devel >= 0.9
24 BuildRequires: autoconf
25 BuildRequires: automake >= 1:1.9
26 BuildRequires: gettext-devel
27 BuildRequires: dbus-glib-devel >= 0.74
28 BuildRequires: glib2-devel >= 1:2.19.0
29 BuildRequires: gtk+2-devel >= 2:2.15.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: rpmbuild(macros) >= 1.197
38 Requires(post): findutils
39 Requires: %{name}-libs = %{version}-%{release}
40 Obsoletes: GConf2-xinitrc
42 # sr@Latn vs. sr@latin
43 Conflicts: glibc-misc < 6:2.7
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 GConf2 is a configuration database system, functionally similar to the
48 Windows registry but lots better. :-) It's being written for the
49 GNOME2 desktop but does not require GNOME2; configure should notice if
50 GNOME2 is not installed and compile the basic GConf2 library anyway.
52 %description -l pl.UTF-8
53 GConf2 jest systemem konfiguracyjnej bazy danych, funkcjonalnie
54 podobnej do rejestru Windows, ale o wiele lepszej :-). Jest pisana dla
55 desktopu GNOME2, ale nie wymaga GNOME2; skrypt configure powinien
56 wykryć brak GNOME2 i skompilować tylko wersję podstawową GConf2.
58 %description -l pt_BR.UTF-8
59 Gconf2 é o sistema de banco de dados de configuração do GNOME2.
62 Summary: GConf2 shared library
63 Summary(pl.UTF-8): Biblioteka współdzielona GConf2
65 Requires: ORBit2 >= 1:2.14.9
66 Requires: glib2 >= 1:2.19.0
67 Conflicts: GConf2 < 2.24.0-2
70 GConf2 shared library and gconftool utility (used both for
71 configuration management and development purposes).
73 %description libs -l pl.UTF-8
74 Biblioteka współdzielona GConf2 oraz narzędzie gconftool (używane
75 zarówno przy zarządzaniu konfiguracją, jak i tworzeniu
79 Summary: Header files for GConf2 library
80 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GConf2
81 Summary(pt_BR.UTF-8): Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
82 Group: Development/Libraries
83 Requires: %{name}-libs = %{version}-%{release}
84 Requires: ORBit2-devel >= 1:2.14.9
85 Requires: dbus-devel >= 1.0.0
86 Requires: libxml2-devel >= 1:2.6.30
87 Obsoletes: libGConf2-devel
90 Header files for GConf2 library.
92 %description devel -l pl.UTF-8
93 Pliki nagłówkowe biblioteki GConf2.
95 %description devel -l pt_BR.UTF-8
96 Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
99 Summary: GConf2 static libraries
100 Summary(pl.UTF-8): Biblioteki statyczne GConf2
101 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com gconf2
102 Group: Development/Libraries
103 Requires: %{name}-devel = %{version}-%{release}
106 GConf2 static libraries.
108 %description static -l pl.UTF-8
109 Biblioteki statyczne GConf2.
111 %description static -l pt_BR.UTF-8
112 Bibliotecas estáticas para desenvolvimento com gconf
115 Summary: GConf2 API documentation
116 Summary(pl.UTF-8): Dokumentacja API GConf2
118 Requires: gtk-doc-common
121 GConf2 API documentation.
123 %description apidocs -l pl.UTF-8
124 Dokumentacja API GConf2.
127 Summary: GConf2 - example programs
128 Summary(pl.UTF-8): GConf2 - przykładowe programy
129 Group: Development/Libraries
130 Requires: %{name}-devel = %{version}-%{release}
132 %description examples
133 GConf2 - example programs.
135 %description examples -l pl.UTF-8
136 GConf2 - przykładowe programy.
138 %package backend-evoldap
139 Summary: Evolution Data Sources LDAP backend for GConf
140 Summary(pl.UTF-8): Backend LDAP źródeł danych Evolution dla GConfa
142 Requires: %{name} = %{version}-%{release}
144 %description backend-evoldap
145 This is a special-purpose backend for GConf which enables default mail
146 accounts, addressbooks and calendars for Evolution to be configured
147 using each user's LDAP entry. By setting each user's mail address,
148 incoming/outgoing mail server addresses and addressbook/calendar
149 addresses in the user's LDAP entry, Evolution will be automatically
150 configured to use these addresses.
152 %description backend-evoldap -l pl.UTF-8
153 To jest backend GConfa specjalnego przeznaczenia, pozwalający na
154 konfigurowanie domyślnych kont pocztowych, książek adresowych i
155 kalendarzy dla Evolution przy użyciu wpisu LDAP dla każdego
156 użytkownika. Poprzez ustawienie każdemu użytkownikowi adres pocztowy,
157 adresy serwerów poczty przychodzącej/wychodzącej oraz adresy książki
158 adresowej i kalendarza w jego wpisie LDAP, Evolution zostanie
159 automatycznie skonfigurowane do używania tych adresów.
162 %setup -q -n GConf-%{version}
176 POLKIT_POLICY_FILE_VALIDATE=/usr/bin/polkit-policy-file-validate \
177 %{!?with_static_libs:--disable-static} \
179 --with-html-dir=%{_gtkdocdir}
184 rm -rf $RPM_BUILD_ROOT
185 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}/gconf/{schemas,gconf.xml.system}}
188 DESTDIR=$RPM_BUILD_ROOT
190 cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
191 cp examples/*.schemas $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
195 # no *.{la,a} for modules - shut up check-files
196 rm -f $RPM_BUILD_ROOT%{_libdir}/GConf2/lib*.{la,a}
199 rm -rf $RPM_BUILD_ROOT
203 for GCONF_DIR in %{_sysconfdir}/gconf/gconf.xml.mandatory %{_sysconfdir}/gconf/gconf.xml.defaults ;
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"
214 %post libs -p /sbin/ldconfig
215 %postun libs -p /sbin/ldconfig
218 %defattr(644,root,root,755)
219 %doc AUTHORS NEWS README
220 %attr(755,root,root) %{_bindir}/gconf-merge-tree
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
224 %dir %{_libdir}/GConf2
225 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-oldxml.so
226 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-xml.so
227 %{_sysconfdir}/dbus-1/system.d/org.gnome.GConf.Defaults.conf
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
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
236 %dir %{_datadir}/GConf
237 %dir %{_datadir}/GConf/schema
238 %{_datadir}/sgml/gconf
240 %files libs -f %{name}.lang
241 %defattr(644,root,root,755)
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*
248 %defattr(644,root,root,755)
250 %attr(755,root,root) %{_libdir}/libgconf-2.so
251 %{_libdir}/libgconf-2.la
252 %{_includedir}/gconf2
253 %{_aclocaldir}/gconf-2.m4
254 %{_pkgconfigdir}/gconf-2.0.pc
256 %if %{with static_libs}
258 %defattr(644,root,root,755)
259 %{_libdir}/libgconf-2.a
263 %defattr(644,root,root,755)
267 %defattr(644,root,root,755)
268 %{_examplesdir}/%{name}-%{version}
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