]> git.pld-linux.org Git - packages/GConf2.git/blame - GConf2.spec
- updated to 3.2.5
[packages/GConf2.git] / GConf2.spec
CommitLineData
cb3e3a5b 1#
affeb290 2# TODO:
3# - update documentation to follow changes introduced in Patch0
4#
9589e6b3 5# Conditional build:
3c255572 6%bcond_without static_libs # don't build static libraries
9589e6b3 7#
70ad426d 8Summary: GNOME2 configuration database system
eec5f56a
ER
9Summary(pl.UTF-8): System konfiguracyjnej bazy danych dla GNOME 2
10Summary(pt_BR.UTF-8): Sistema de Configuração do GNOME 2
11Summary(ru.UTF-8): Система конфигурации GNOME 2
70ad426d 12Name: GConf2
149d70f3 13Version: 3.2.5
a6c0ccc1 14Release: 1
af8d9212 15License: LGPL v2+
70ad426d 16Group: X11/Applications
ef446241 17Source0: http://ftp.gnome.org/pub/GNOME/sources/GConf/3.2/GConf-%{version}.tar.xz
149d70f3 18# Source0-md5: 1b803eb4f8576c572d072692cf40c9d8
e00537d0 19Patch0: %{name}-NO_MAJOR_VERSION.patch
8d2881b0 20Patch1: %{name}-reload.patch
70ad426d 21URL: http://www.gnome.org/
6a75158a 22BuildRequires: ORBit2-devel >= 1:2.14.9
091dd01e 23BuildRequires: autoconf >= 2.60
9c0e1d9c 24BuildRequires: automake >= 1:1.9
9b37c783 25BuildRequires: dbus-devel >= 1.0.0
d2ac8ef7 26BuildRequires: dbus-glib-devel >= 0.74
60c4e8df 27BuildRequires: docbook-dtd412-xml
410c58ef 28BuildRequires: gettext-devel
149d70f3 29BuildRequires: glib2-devel >= 1:2.31.0
709c75ed 30BuildRequires: gobject-introspection-devel >= 0.10.0
ef446241 31BuildRequires: gtk+3-devel >= 3.0.0
8880401b 32BuildRequires: gtk-doc >= 1.8
8d2881b0 33BuildRequires: intltool >= 0.40.0
a948e6a1 34BuildRequires: libtool
6a75158a 35BuildRequires: libxml2-devel >= 1:2.6.30
507c7593 36BuildRequires: openldap-devel >= 2.4.6
b057dd54 37BuildRequires: perl-base
70ad426d 38BuildRequires: pkgconfig
091dd01e 39BuildRequires: polkit-devel >= 0.92
9a733d66 40BuildRequires: rpm-pythonprov
82fbd684 41BuildRequires: rpmbuild(macros) >= 1.197
2e5cc701
MB
42BuildRequires: tar >= 1:1.22
43BuildRequires: xz
46fa04c1 44Requires(post): findutils
a6c0ccc1 45Requires(post,postun): glib2 >= 1:2.28.0
10040bca 46Requires: %{name}-libs = %{version}-%{release}
af014341 47Obsoletes: GConf2-xinitrc
797e7b9f 48Obsoletes: libGConf2
1a67de6d 49# sr@Latn vs. sr@latin
50Conflicts: glibc-misc < 6:2.7
b057dd54 51BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
70ad426d 52
70ad426d 53%description
54GConf2 is a configuration database system, functionally similar to the
edd1571b
JB
55Windows registry but lots better. :-) It's being written for the
56GNOME2 desktop but does not require GNOME2; configure should notice if
57GNOME2 is not installed and compile the basic GConf2 library anyway.
70ad426d 58
41d5538c 59%description -l pl.UTF-8
70ad426d 60GConf2 jest systemem konfiguracyjnej bazy danych, funkcjonalnie
61podobnej do rejestru Windows, ale o wiele lepszej :-). Jest pisana dla
edd1571b 62desktopu GNOME2, ale nie wymaga GNOME2; skrypt configure powinien
41d5538c 63wykryć brak GNOME2 i skompilować tylko wersję podstawową GConf2.
70ad426d 64
41d5538c
JR
65%description -l pt_BR.UTF-8
66Gconf2 é o sistema de banco de dados de configuração do GNOME2.
70ad426d 67
10040bca
JB
68%package libs
69Summary: GConf2 shared library
70Summary(pl.UTF-8): Biblioteka współdzielona GConf2
71Group: Libraries
72Requires: ORBit2 >= 1:2.14.9
a6c0ccc1 73Requires: glib2 >= 1:2.28.0
10040bca 74Conflicts: GConf2 < 2.24.0-2
e1a327be 75
10040bca
JB
76%description libs
77GConf2 shared library and gconftool utility (used both for
78configuration management and development purposes).
e1a327be 79
10040bca
JB
80%description libs -l pl.UTF-8
81Biblioteka współdzielona GConf2 oraz narzędzie gconftool (używane
82zarówno przy zarządzaniu konfiguracją, jak i tworzeniu
83oprogramowania).
e1a327be 84
70ad426d 85%package devel
10040bca
JB
86Summary: Header files for GConf2 library
87Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GConf2
eec5f56a 88Summary(pt_BR.UTF-8): Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
10040bca
JB
89Group: Development/Libraries
90Requires: %{name}-libs = %{version}-%{release}
6a75158a 91Requires: ORBit2-devel >= 1:2.14.9
8d2881b0 92Requires: dbus-devel >= 1.0.0
a6c0ccc1 93Requires: glib2-devel >= 1:2.28.0
6a75158a 94Requires: libxml2-devel >= 1:2.6.30
797e7b9f 95Obsoletes: libGConf2-devel
70ad426d 96
97%description devel
10040bca 98Header files for GConf2 library.
70ad426d 99
41d5538c 100%description devel -l pl.UTF-8
10040bca 101Pliki nagłówkowe biblioteki GConf2.
70ad426d 102
41d5538c
JR
103%description devel -l pt_BR.UTF-8
104Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
70ad426d 105
106%package static
107Summary: GConf2 static libraries
eec5f56a
ER
108Summary(pl.UTF-8): Biblioteki statyczne GConf2
109Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com gconf2
10040bca 110Group: Development/Libraries
d7220fca 111Requires: %{name}-devel = %{version}-%{release}
70ad426d 112
113%description static
114GConf2 static libraries.
115
41d5538c 116%description static -l pl.UTF-8
70ad426d 117Biblioteki statyczne GConf2.
118
41d5538c
JR
119%description static -l pt_BR.UTF-8
120Bibliotecas estáticas para desenvolvimento com gconf
70ad426d 121
10040bca
JB
122%package apidocs
123Summary: GConf2 API documentation
124Summary(pl.UTF-8): Dokumentacja API GConf2
125Group: Documentation
126Requires: gtk-doc-common
127
128%description apidocs
129GConf2 API documentation.
130
131%description apidocs -l pl.UTF-8
132Dokumentacja API GConf2.
133
6a75158a
MB
134%package examples
135Summary: GConf2 - example programs
136Summary(pl.UTF-8): GConf2 - przykładowe programy
10040bca 137Group: Development/Libraries
6a75158a
MB
138Requires: %{name}-devel = %{version}-%{release}
139
140%description examples
141GConf2 - example programs.
142
143%description examples -l pl.UTF-8
144GConf2 - przykładowe programy.
145
b21f9f89
JB
146%package backend-evoldap
147Summary: Evolution Data Sources LDAP backend for GConf
eec5f56a 148Summary(pl.UTF-8): Backend LDAP źródeł danych Evolution dla GConfa
b21f9f89
JB
149Group: Libraries
150Requires: %{name} = %{version}-%{release}
151
152%description backend-evoldap
153This is a special-purpose backend for GConf which enables default mail
154accounts, addressbooks and calendars for Evolution to be configured
155using each user's LDAP entry. By setting each user's mail address,
156incoming/outgoing mail server addresses and addressbook/calendar
157addresses in the user's LDAP entry, Evolution will be automatically
158configured to use these addresses.
159
41d5538c
JR
160%description backend-evoldap -l pl.UTF-8
161To jest backend GConfa specjalnego przeznaczenia, pozwalający na
162konfigurowanie domyślnych kont pocztowych, książek adresowych i
163kalendarzy dla Evolution przy użyciu wpisu LDAP dla każdego
164użytkownika. Poprzez ustawienie każdemu użytkownikowi adres pocztowy,
165adresy serwerów poczty przychodzącej/wychodzącej oraz adresy książki
b21f9f89 166adresowej i kalendarza w jego wpisie LDAP, Evolution zostanie
41d5538c 167automatycznie skonfigurowane do używania tych adresów.
b21f9f89 168
70ad426d 169%prep
affa5f14 170%setup -q -n GConf-%{version}
e00537d0 171%patch0 -p1
dfdd18a7 172%patch1 -p1
70ad426d 173
174%build
114e3e03 175%{__gtkdocize}
82fbd684 176%{__glib_gettextize}
3cdb518c 177%{__intltoolize}
314d8d95 178%{__libtoolize}
43afe854 179%{__aclocal}
ad7fc529 180%{__autoheader}
ad7fc529 181%{__autoconf}
b057dd54 182%{__automake}
70ad426d 183%configure \
3c255572 184 %{!?with_static_libs:--disable-static} \
b21f9f89
JB
185 --enable-gtk-doc \
186 --with-html-dir=%{_gtkdocdir}
70ad426d 187
188%{__make}
189
190%install
191rm -rf $RPM_BUILD_ROOT
4b95bf2d 192install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}/gconf/{schemas,gconf.xml.system},%{_datadir}/GConf/gsettings}
70ad426d 193
194%{__make} install \
f116bc09
TP
195 DESTDIR=$RPM_BUILD_ROOT
196
6a75158a 197cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
9c0e1d9c 198cp examples/*.schemas $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
6a75158a 199
70ad426d 200%find_lang %{name}
201
9a1becbf 202# no *.{la,a} for modules - shut up check-files
4ce4c869 203%{__rm} $RPM_BUILD_ROOT%{_libdir}/{GConf2,gio/modules}/lib*.{la,a}
9a1becbf 204
70ad426d 205%clean
206rm -rf $RPM_BUILD_ROOT
207
af014341 208%post
af014341 209umask 022
210for GCONF_DIR in %{_sysconfdir}/gconf/gconf.xml.mandatory %{_sysconfdir}/gconf/gconf.xml.defaults ;
211 do
212 GCONF_TREE=$GCONF_DIR/%gconf-tree.xml
213 if [ ! -f "$GCONF_TREE" ]; then
214 gconf-merge-tree "$GCONF_DIR"
215 chmod 644 "$GCONF_TREE"
216 find "$GCONF_DIR" -mindepth 1 -maxdepth 1 -type d -exec rm -rf \{\} \;
217 rm -f "$GCONF_DIR/%gconf.xml"
218 fi
219done
9c0e1d9c 220
d2ac8ef7
PZ
221%{_bindir}/gio-querymodules %{_libdir}/gio/modules
222
223%postun
224umask 022
225%{_bindir}/gio-querymodules %{_libdir}/gio/modules
226exit 0
227
10040bca
JB
228%post libs -p /sbin/ldconfig
229%postun libs -p /sbin/ldconfig
70ad426d 230
10040bca 231%files
70ad426d 232%defattr(644,root,root,755)
b057dd54 233%doc AUTHORS NEWS README
af8d9212 234%attr(755,root,root) %{_bindir}/gconf-merge-tree
d2ac8ef7
PZ
235%attr(755,root,root) %{_bindir}/gsettings-data-convert
236%attr(755,root,root) %{_bindir}/gsettings-schema-convert
891017f5
MB
237%attr(755,root,root) %{_libexecdir}/gconf-defaults-mechanism
238%attr(755,root,root) %{_libexecdir}/gconf-sanity-check-2
239%attr(755,root,root) %{_libexecdir}/gconfd-2
e00537d0 240%dir %{_libdir}/GConf2
b21f9f89
JB
241%attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-oldxml.so
242%attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-xml.so
d2ac8ef7 243%attr(755,root,root) %{_libdir}/gio/modules/libgsettingsgconfbackend.so
891017f5 244%{_sysconfdir}/dbus-1/system.d/org.gnome.GConf.Defaults.conf
d2ac8ef7 245%{_sysconfdir}/xdg/autostart/gsettings-data-convert.desktop
b21f9f89
JB
246%dir %{_sysconfdir}/gconf
247%dir %{_sysconfdir}/gconf/2
248%{_sysconfdir}/gconf/gconf.xml.*
249%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/path
250%dir %{_sysconfdir}/gconf/schemas
891017f5
MB
251%{_datadir}/dbus-1/services/org.gnome.GConf.service
252%{_datadir}/dbus-1/system-services/org.gnome.GConf.Defaults.service
091dd01e 253%{_datadir}/polkit-1/actions/org.gnome.gconf.defaults.policy
b21f9f89 254%dir %{_datadir}/GConf
4b95bf2d 255%dir %{_datadir}/GConf/gsettings
b21f9f89 256%dir %{_datadir}/GConf/schema
3033af1d 257%{_datadir}/sgml/gconf
d2ac8ef7
PZ
258%{_mandir}/man1/gsettings-data-convert.1*
259%{_mandir}/man1/gsettings-schema-convert.1*
70ad426d 260
10040bca 261%files libs -f %{name}.lang
e1a327be 262%defattr(644,root,root,755)
10040bca
JB
263%attr(755,root,root) %{_libdir}/libgconf-2.so.*.*.*
264%attr(755,root,root) %ghost %{_libdir}/libgconf-2.so.4
265%attr(755,root,root) %{_bindir}/gconftool-2
266%{_mandir}/man1/gconftool-2.1*
d2ac8ef7 267%{_libdir}/girepository-1.0/GConf-2.0.typelib
e1a327be 268
70ad426d 269%files devel
270%defattr(644,root,root,755)
c81f7abe 271%doc ChangeLog TODO
af8d9212
JB
272%attr(755,root,root) %{_libdir}/libgconf-2.so
273%{_libdir}/libgconf-2.la
e00537d0 274%{_includedir}/gconf2
af8d9212
JB
275%{_aclocaldir}/gconf-2.m4
276%{_pkgconfigdir}/gconf-2.0.pc
d2ac8ef7 277%{_datadir}/gir-1.0/GConf-2.0.gir
70ad426d 278
3c255572 279%if %{with static_libs}
70ad426d 280%files static
281%defattr(644,root,root,755)
af8d9212 282%{_libdir}/libgconf-2.a
23f0fa1e 283%endif
b21f9f89 284
10040bca
JB
285%files apidocs
286%defattr(644,root,root,755)
287%{_gtkdocdir}/gconf
288
6a75158a
MB
289%files examples
290%defattr(644,root,root,755)
291%{_examplesdir}/%{name}-%{version}
292
b21f9f89
JB
293%files backend-evoldap
294%defattr(644,root,root,755)
295%doc backends/README.evoldap
296%attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-evoldap.so
297%{_datadir}/GConf/schema/evoldap.schema
298%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/2/evoldap.conf
This page took 0.141361 seconds and 4 git commands to generate.