]> git.pld-linux.org Git - packages/GConf2.git/blame - GConf2.spec
- added -workaround-bug581880.patch
[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
1cc987eb 13Version: 2.26.1
93c13ec0 14Release: 2
af8d9212 15License: LGPL v2+
70ad426d 16Group: X11/Applications
8d2881b0 17Source0: http://ftp.gnome.org/pub/GNOME/sources/GConf/2.26/GConf-%{version}.tar.bz2
1cc987eb 18# Source0-md5: 1f35137836eec03fa7e901230200a34a
e00537d0 19Patch0: %{name}-NO_MAJOR_VERSION.patch
8d2881b0 20Patch1: %{name}-reload.patch
93c13ec0
MB
21# http://bugzilla.gnome.org/show_bug.cgi?id=581880
22Patch2: %{name}-workaround-bug581880.patch
70ad426d 23URL: http://www.gnome.org/
6a75158a 24BuildRequires: ORBit2-devel >= 1:2.14.9
90a43b00 25BuildRequires: PolicyKit-devel >= 0.9
a948e6a1 26BuildRequires: autoconf
9c0e1d9c 27BuildRequires: automake >= 1:1.9
410c58ef 28BuildRequires: gettext-devel
8d2881b0
PZ
29BuildRequires: dbus-glib-devel >= 0.74
30BuildRequires: glib2-devel >= 1:2.19.0
31BuildRequires: gtk+2-devel >= 2:2.15.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
82fbd684 39BuildRequires: rpmbuild(macros) >= 1.197
46fa04c1 40Requires(post): findutils
10040bca 41Requires: %{name}-libs = %{version}-%{release}
af014341 42Obsoletes: GConf2-xinitrc
797e7b9f 43Obsoletes: libGConf2
1a67de6d 44# sr@Latn vs. sr@latin
45Conflicts: glibc-misc < 6:2.7
b057dd54 46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
70ad426d 47
70ad426d 48%description
49GConf2 is a configuration database system, functionally similar to the
edd1571b
JB
50Windows registry but lots better. :-) It's being written for the
51GNOME2 desktop but does not require GNOME2; configure should notice if
52GNOME2 is not installed and compile the basic GConf2 library anyway.
70ad426d 53
41d5538c 54%description -l pl.UTF-8
70ad426d 55GConf2 jest systemem konfiguracyjnej bazy danych, funkcjonalnie
56podobnej do rejestru Windows, ale o wiele lepszej :-). Jest pisana dla
edd1571b 57desktopu GNOME2, ale nie wymaga GNOME2; skrypt configure powinien
41d5538c 58wykryć brak GNOME2 i skompilować tylko wersję podstawową GConf2.
70ad426d 59
41d5538c
JR
60%description -l pt_BR.UTF-8
61Gconf2 é o sistema de banco de dados de configuração do GNOME2.
70ad426d 62
10040bca
JB
63%package libs
64Summary: GConf2 shared library
65Summary(pl.UTF-8): Biblioteka współdzielona GConf2
66Group: Libraries
67Requires: ORBit2 >= 1:2.14.9
8d2881b0 68Requires: glib2 >= 1:2.19.0
10040bca 69Conflicts: GConf2 < 2.24.0-2
e1a327be 70
10040bca
JB
71%description libs
72GConf2 shared library and gconftool utility (used both for
73configuration management and development purposes).
e1a327be 74
10040bca
JB
75%description libs -l pl.UTF-8
76Biblioteka współdzielona GConf2 oraz narzędzie gconftool (używane
77zarówno przy zarządzaniu konfiguracją, jak i tworzeniu
78oprogramowania).
e1a327be 79
70ad426d 80%package devel
10040bca
JB
81Summary: Header files for GConf2 library
82Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GConf2
eec5f56a 83Summary(pt_BR.UTF-8): Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
10040bca
JB
84Group: Development/Libraries
85Requires: %{name}-libs = %{version}-%{release}
6a75158a 86Requires: ORBit2-devel >= 1:2.14.9
8d2881b0 87Requires: dbus-devel >= 1.0.0
6a75158a 88Requires: libxml2-devel >= 1:2.6.30
797e7b9f 89Obsoletes: libGConf2-devel
70ad426d 90
91%description devel
10040bca 92Header files for GConf2 library.
70ad426d 93
41d5538c 94%description devel -l pl.UTF-8
10040bca 95Pliki nagłówkowe biblioteki GConf2.
70ad426d 96
41d5538c
JR
97%description devel -l pt_BR.UTF-8
98Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
70ad426d 99
100%package static
101Summary: GConf2 static libraries
eec5f56a
ER
102Summary(pl.UTF-8): Biblioteki statyczne GConf2
103Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com gconf2
10040bca 104Group: Development/Libraries
d7220fca 105Requires: %{name}-devel = %{version}-%{release}
70ad426d 106
107%description static
108GConf2 static libraries.
109
41d5538c 110%description static -l pl.UTF-8
70ad426d 111Biblioteki statyczne GConf2.
112
41d5538c
JR
113%description static -l pt_BR.UTF-8
114Bibliotecas estáticas para desenvolvimento com gconf
70ad426d 115
10040bca
JB
116%package apidocs
117Summary: GConf2 API documentation
118Summary(pl.UTF-8): Dokumentacja API GConf2
119Group: Documentation
120Requires: gtk-doc-common
121
122%description apidocs
123GConf2 API documentation.
124
125%description apidocs -l pl.UTF-8
126Dokumentacja API GConf2.
127
6a75158a
MB
128%package examples
129Summary: GConf2 - example programs
130Summary(pl.UTF-8): GConf2 - przykładowe programy
10040bca 131Group: Development/Libraries
6a75158a
MB
132Requires: %{name}-devel = %{version}-%{release}
133
134%description examples
135GConf2 - example programs.
136
137%description examples -l pl.UTF-8
138GConf2 - przykładowe programy.
139
b21f9f89
JB
140%package backend-evoldap
141Summary: Evolution Data Sources LDAP backend for GConf
eec5f56a 142Summary(pl.UTF-8): Backend LDAP źródeł danych Evolution dla GConfa
b21f9f89
JB
143Group: Libraries
144Requires: %{name} = %{version}-%{release}
145
146%description backend-evoldap
147This is a special-purpose backend for GConf which enables default mail
148accounts, addressbooks and calendars for Evolution to be configured
149using each user's LDAP entry. By setting each user's mail address,
150incoming/outgoing mail server addresses and addressbook/calendar
151addresses in the user's LDAP entry, Evolution will be automatically
152configured to use these addresses.
153
41d5538c
JR
154%description backend-evoldap -l pl.UTF-8
155To jest backend GConfa specjalnego przeznaczenia, pozwalający na
156konfigurowanie domyślnych kont pocztowych, książek adresowych i
157kalendarzy dla Evolution przy użyciu wpisu LDAP dla każdego
158użytkownika. Poprzez ustawienie każdemu użytkownikowi adres pocztowy,
159adresy serwerów poczty przychodzącej/wychodzącej oraz adresy książki
b21f9f89 160adresowej i kalendarza w jego wpisie LDAP, Evolution zostanie
41d5538c 161automatycznie skonfigurowane do używania tych adresów.
b21f9f89 162
70ad426d 163%prep
affa5f14 164%setup -q -n GConf-%{version}
e00537d0 165%patch0 -p1
dfdd18a7 166%patch1 -p1
93c13ec0 167%patch2 -p1
70ad426d 168
169%build
114e3e03 170%{__gtkdocize}
82fbd684 171%{__glib_gettextize}
3cdb518c 172%{__intltoolize}
314d8d95 173%{__libtoolize}
43afe854 174%{__aclocal}
ad7fc529 175%{__autoheader}
ad7fc529 176%{__autoconf}
b057dd54 177%{__automake}
70ad426d 178%configure \
f6604249 179 POLKIT_POLICY_FILE_VALIDATE=/usr/bin/polkit-policy-file-validate \
3c255572 180 %{!?with_static_libs:--disable-static} \
b21f9f89
JB
181 --enable-gtk-doc \
182 --with-html-dir=%{_gtkdocdir}
70ad426d 183
184%{__make}
185
186%install
187rm -rf $RPM_BUILD_ROOT
8d2881b0 188install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}/gconf/{schemas,gconf.xml.system}}
70ad426d 189
190%{__make} install \
f116bc09
TP
191 DESTDIR=$RPM_BUILD_ROOT
192
6a75158a 193cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
9c0e1d9c 194cp examples/*.schemas $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
6a75158a 195
70ad426d 196%find_lang %{name}
197
9a1becbf
JB
198# no *.{la,a} for modules - shut up check-files
199rm -f $RPM_BUILD_ROOT%{_libdir}/GConf2/lib*.{la,a}
200
70ad426d 201%clean
202rm -rf $RPM_BUILD_ROOT
203
af014341 204%post
af014341 205umask 022
206for GCONF_DIR in %{_sysconfdir}/gconf/gconf.xml.mandatory %{_sysconfdir}/gconf/gconf.xml.defaults ;
207 do
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"
214 fi
215done
9c0e1d9c 216
10040bca
JB
217%post libs -p /sbin/ldconfig
218%postun libs -p /sbin/ldconfig
70ad426d 219
10040bca 220%files
70ad426d 221%defattr(644,root,root,755)
b057dd54 222%doc AUTHORS NEWS README
af8d9212 223%attr(755,root,root) %{_bindir}/gconf-merge-tree
891017f5
MB
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
e00537d0 227%dir %{_libdir}/GConf2
b21f9f89
JB
228%attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-oldxml.so
229%attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-xml.so
891017f5 230%{_sysconfdir}/dbus-1/system.d/org.gnome.GConf.Defaults.conf
b21f9f89
JB
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
891017f5
MB
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
b21f9f89
JB
239%dir %{_datadir}/GConf
240%dir %{_datadir}/GConf/schema
3033af1d 241%{_datadir}/sgml/gconf
70ad426d 242
10040bca 243%files libs -f %{name}.lang
e1a327be 244%defattr(644,root,root,755)
10040bca
JB
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*
e1a327be 249
70ad426d 250%files devel
251%defattr(644,root,root,755)
c81f7abe 252%doc ChangeLog TODO
af8d9212
JB
253%attr(755,root,root) %{_libdir}/libgconf-2.so
254%{_libdir}/libgconf-2.la
e00537d0 255%{_includedir}/gconf2
af8d9212
JB
256%{_aclocaldir}/gconf-2.m4
257%{_pkgconfigdir}/gconf-2.0.pc
70ad426d 258
3c255572 259%if %{with static_libs}
70ad426d 260%files static
261%defattr(644,root,root,755)
af8d9212 262%{_libdir}/libgconf-2.a
23f0fa1e 263%endif
b21f9f89 264
10040bca
JB
265%files apidocs
266%defattr(644,root,root,755)
267%{_gtkdocdir}/gconf
268
6a75158a
MB
269%files examples
270%defattr(644,root,root,755)
271%{_examplesdir}/%{name}-%{version}
272
b21f9f89
JB
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
This page took 0.11007 seconds and 4 git commands to generate.