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.20/GConf-%{version}.tar.bz2
18 # Source0-md5: 646fc896c6282a8f103365af0fa2e303
19 Patch0: %{name}-NO_MAJOR_VERSION.patch
20 Patch1: %{name}-path.patch
21 Patch2: %{name}-reload.patch
22 URL: http://www.gnome.org/
23 BuildRequires: ORBit2-devel >= 1:2.14.9
24 BuildRequires: autoconf
25 BuildRequires: automake >= 1:1.7
26 BuildRequires: gettext-devel
27 BuildRequires: glib2-devel >= 1:2.14.1
28 BuildRequires: gtk+2-devel >= 2:2.12.0
29 BuildRequires: gtk-doc >= 1.8
30 BuildRequires: intltool >= 0.36.2
31 BuildRequires: libtool
32 BuildRequires: libxml2-devel >= 1:2.6.30
33 BuildRequires: openldap-devel >= 2.4.6
34 BuildRequires: perl-base
35 BuildRequires: pkgconfig
36 BuildRequires: rpmbuild(macros) >= 1.197
37 Requires(post): findutils
38 Requires: ORBit2 >= 1:2.14.9
39 Requires: glib2 >= 1:2.14.1
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 API documentation
63 Summary(pl.UTF-8): Dokumentacja API GConf2
65 Requires: gtk-doc-common
68 GConf2 API documentation.
70 %description apidocs -l pl.UTF-8
71 Dokumentacja API GConf2.
74 Summary: GConf2 includes, etc
75 Summary(pl.UTF-8): Pliki nagłówkowe GConf2
76 Summary(pt_BR.UTF-8): Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
77 Group: X11/Development/Libraries
78 Requires: %{name} = %{version}-%{release}
79 Requires: ORBit2-devel >= 1:2.14.9
80 Requires: gtk-doc-common
81 Requires: libxml2-devel >= 1:2.6.30
82 Obsoletes: libGConf2-devel
87 %description devel -l pl.UTF-8
88 Pliki nagłówkowe GConf2.
90 %description devel -l pt_BR.UTF-8
91 Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
94 Summary: GConf2 static libraries
95 Summary(pl.UTF-8): Biblioteki statyczne GConf2
96 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com gconf2
97 Group: X11/Development/Libraries
98 Requires: %{name}-devel = %{version}-%{release}
101 GConf2 static libraries.
103 %description static -l pl.UTF-8
104 Biblioteki statyczne GConf2.
106 %description static -l pt_BR.UTF-8
107 Bibliotecas estáticas para desenvolvimento com gconf
110 Summary: GConf2 - example programs
111 Summary(pl.UTF-8): GConf2 - przykładowe programy
112 Group: X11/Development/Libraries
113 Requires: %{name}-devel = %{version}-%{release}
115 %description examples
116 GConf2 - example programs.
118 %description examples -l pl.UTF-8
119 GConf2 - przykładowe programy.
121 %package backend-evoldap
122 Summary: Evolution Data Sources LDAP backend for GConf
123 Summary(pl.UTF-8): Backend LDAP źródeł danych Evolution dla GConfa
125 Requires: %{name} = %{version}-%{release}
127 %description backend-evoldap
128 This is a special-purpose backend for GConf which enables default mail
129 accounts, addressbooks and calendars for Evolution to be configured
130 using each user's LDAP entry. By setting each user's mail address,
131 incoming/outgoing mail server addresses and addressbook/calendar
132 addresses in the user's LDAP entry, Evolution will be automatically
133 configured to use these addresses.
135 %description backend-evoldap -l pl.UTF-8
136 To jest backend GConfa specjalnego przeznaczenia, pozwalający na
137 konfigurowanie domyślnych kont pocztowych, książek adresowych i
138 kalendarzy dla Evolution przy użyciu wpisu LDAP dla każdego
139 użytkownika. Poprzez ustawienie każdemu użytkownikowi adres pocztowy,
140 adresy serwerów poczty przychodzącej/wychodzącej oraz adresy książki
141 adresowej i kalendarza w jego wpisie LDAP, Evolution zostanie
142 automatycznie skonfigurowane do używania tych adresów.
145 %setup -q -n GConf-%{version}
160 %{!?with_static_libs:--disable-static} \
162 --with-html-dir=%{_gtkdocdir}
167 rm -rf $RPM_BUILD_ROOT
168 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}/gconf/schemas}
171 DESTDIR=$RPM_BUILD_ROOT
173 cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
175 [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \
176 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin}
179 # no *.{la,a} for modules - shut up check-files
180 rm -f $RPM_BUILD_ROOT%{_libdir}/GConf2/lib*.{la,a}
183 rm -rf $RPM_BUILD_ROOT
188 for GCONF_DIR in %{_sysconfdir}/gconf/gconf.xml.mandatory %{_sysconfdir}/gconf/gconf.xml.defaults ;
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"
199 %postun -p /sbin/ldconfig
201 %files -f %{name}.lang
202 %defattr(644,root,root,755)
203 %doc AUTHORS NEWS README
204 %attr(755,root,root) %{_bindir}/gconf-merge-tree
205 %attr(755,root,root) %{_bindir}/gconftool-2
206 %attr(755,root,root) %{_libdir}/gconf-sanity-check-2
207 %attr(755,root,root) %{_libdir}/gconfd-2
208 %attr(755,root,root) %{_libdir}/libgconf-2.so.*.*.*
209 %dir %{_libdir}/GConf2
210 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-oldxml.so
211 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-xml.so
212 %dir %{_sysconfdir}/gconf
213 %dir %{_sysconfdir}/gconf/2
214 %{_sysconfdir}/gconf/gconf.xml.*
215 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/path
216 %dir %{_sysconfdir}/gconf/schemas
217 %dir %{_datadir}/GConf
218 %dir %{_datadir}/GConf/schema
219 %{_datadir}/sgml/gconf
220 %{_mandir}/man1/gconftool-2.1*
223 %defattr(644,root,root,755)
227 %defattr(644,root,root,755)
229 %attr(755,root,root) %{_libdir}/libgconf-2.so
230 %{_libdir}/libgconf-2.la
231 %{_includedir}/gconf2
232 %{_aclocaldir}/gconf-2.m4
233 %{_pkgconfigdir}/gconf-2.0.pc
235 %if %{with static_libs}
237 %defattr(644,root,root,755)
238 %{_libdir}/libgconf-2.a
242 %defattr(644,root,root,755)
243 %{_examplesdir}/%{name}-%{version}
245 %files backend-evoldap
246 %defattr(644,root,root,755)
247 %doc backends/README.evoldap
248 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-evoldap.so
249 %{_datadir}/GConf/schema/evoldap.schema
250 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/2/evoldap.conf