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.18/GConf-%{version}.tar.bz2
18 # Source0-md5: aa0e0a0729fb021bab72b4166fd392f9
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.7
24 BuildRequires: autoconf
25 BuildRequires: automake >= 1:1.7
26 BuildRequires: gettext-devel
27 BuildRequires: glib2-devel >= 1:2.12.9
28 BuildRequires: gtk+2-devel >= 2:2.10.9
29 BuildRequires: gtk-doc >= 1.8
30 BuildRequires: intltool >= 0.35.5
31 BuildRequires: libtool
32 BuildRequires: libxml2-devel >= 1:2.6.27
33 BuildRequires: openldap-devel
34 BuildRequires: perl-base
35 BuildRequires: pkgconfig
36 BuildRequires: rpmbuild(macros) >= 1.197
37 Requires: ORBit2 >= 1:2.14.7
38 Requires: glib2 >= 1:2.12.9
39 Obsoletes: GConf2-xinitrc
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 GConf2 is a configuration database system, functionally similar to the
45 Windows registry but lots better. :-) It's being written for the
46 GNOME2 desktop but does not require GNOME2; configure should notice if
47 GNOME2 is not installed and compile the basic GConf2 library anyway.
49 %description -l pl.UTF-8
50 GConf2 jest systemem konfiguracyjnej bazy danych, funkcjonalnie
51 podobnej do rejestru Windows, ale o wiele lepszej :-). Jest pisana dla
52 desktopu GNOME2, ale nie wymaga GNOME2; skrypt configure powinien
53 wykryć brak GNOME2 i skompilować tylko wersję podstawową GConf2.
55 %description -l pt_BR.UTF-8
56 Gconf2 é o sistema de banco de dados de configuração do GNOME2.
59 Summary: GConf2 API documentation
60 Summary(pl.UTF-8): Dokumentacja API GConf2
62 Requires: gtk-doc-common
65 GConf2 API documentation.
67 %description apidocs -l pl.UTF-8
68 Dokumentacja API GConf2.
71 Summary: GConf2 includes, etc
72 Summary(pl.UTF-8): Pliki nagłówkowe GConf2
73 Summary(pt_BR.UTF-8): Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
74 Group: X11/Development/Libraries
75 Requires: %{name} = %{version}-%{release}
76 Requires: ORBit2-devel >= 1:2.14.7
77 Requires: gtk-doc-common
78 Requires: libxml2-devel >= 1:2.6.27
79 Obsoletes: libGConf2-devel
84 %description devel -l pl.UTF-8
85 Pliki nagłówkowe GConf2.
87 %description devel -l pt_BR.UTF-8
88 Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
91 Summary: GConf2 static libraries
92 Summary(pl.UTF-8): Biblioteki statyczne GConf2
93 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com gconf2
94 Group: X11/Development/Libraries
95 Requires: %{name}-devel = %{version}-%{release}
98 GConf2 static libraries.
100 %description static -l pl.UTF-8
101 Biblioteki statyczne GConf2.
103 %description static -l pt_BR.UTF-8
104 Bibliotecas estáticas para desenvolvimento com gconf
106 %package backend-evoldap
107 Summary: Evolution Data Sources LDAP backend for GConf
108 Summary(pl.UTF-8): Backend LDAP źródeł danych Evolution dla GConfa
110 Requires: %{name} = %{version}-%{release}
112 %description backend-evoldap
113 This is a special-purpose backend for GConf which enables default mail
114 accounts, addressbooks and calendars for Evolution to be configured
115 using each user's LDAP entry. By setting each user's mail address,
116 incoming/outgoing mail server addresses and addressbook/calendar
117 addresses in the user's LDAP entry, Evolution will be automatically
118 configured to use these addresses.
120 %description backend-evoldap -l pl.UTF-8
121 To jest backend GConfa specjalnego przeznaczenia, pozwalający na
122 konfigurowanie domyślnych kont pocztowych, książek adresowych i
123 kalendarzy dla Evolution przy użyciu wpisu LDAP dla każdego
124 użytkownika. Poprzez ustawienie każdemu użytkownikowi adres pocztowy,
125 adresy serwerów poczty przychodzącej/wychodzącej oraz adresy książki
126 adresowej i kalendarza w jego wpisie LDAP, Evolution zostanie
127 automatycznie skonfigurowane do używania tych adresów.
130 %setup -q -n GConf-%{version}
145 %{!?with_static_libs:--disable-static} \
147 --with-html-dir=%{_gtkdocdir}
152 rm -rf $RPM_BUILD_ROOT
153 install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas
156 DESTDIR=$RPM_BUILD_ROOT
160 # no *.{la,a} for modules - shut up check-files
161 rm -f $RPM_BUILD_ROOT%{_libdir}/GConf2/lib*.{la,a}
164 rm -rf $RPM_BUILD_ROOT
169 for GCONF_DIR in %{_sysconfdir}/gconf/gconf.xml.mandatory %{_sysconfdir}/gconf/gconf.xml.defaults ;
171 GCONF_TREE=$GCONF_DIR/%gconf-tree.xml
172 if [ ! -f "$GCONF_TREE" ]; then
173 gconf-merge-tree "$GCONF_DIR"
174 chmod 644 "$GCONF_TREE"
175 find "$GCONF_DIR" -mindepth 1 -maxdepth 1 -type d -exec rm -rf \{\} \;
176 rm -f "$GCONF_DIR/%gconf.xml"
180 %postun -p /sbin/ldconfig
182 %files -f %{name}.lang
183 %defattr(644,root,root,755)
184 %doc AUTHORS NEWS README
185 %attr(755,root,root) %{_bindir}/gconf*
186 %attr(755,root,root) %{_libdir}/gconf-sanity-check-2
187 %attr(755,root,root) %{_libdir}/gconfd-2
188 %attr(755,root,root) %{_libdir}/lib*.so.*.*
189 %dir %{_libdir}/GConf2
190 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-oldxml.so
191 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-xml.so
192 %dir %{_sysconfdir}/gconf
193 %dir %{_sysconfdir}/gconf/2
194 %{_sysconfdir}/gconf/gconf.xml.*
195 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/path
196 %dir %{_sysconfdir}/gconf/schemas
197 %dir %{_datadir}/GConf
198 %dir %{_datadir}/GConf/schema
199 %{_datadir}/sgml/gconf
203 %defattr(644,root,root,755)
207 %defattr(644,root,root,755)
209 %attr(755,root,root) %{_libdir}/lib*.so
211 %{_includedir}/gconf2
213 %{_pkgconfigdir}/*.pc
215 %if %{with static_libs}
217 %defattr(644,root,root,755)
221 %files backend-evoldap
222 %defattr(644,root,root,755)
223 %doc backends/README.evoldap
224 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-evoldap.so
225 %{_datadir}/GConf/schema/evoldap.schema
226 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/2/evoldap.conf