]> git.pld-linux.org Git - packages/GConf2.git/blame - GConf2.spec
- updated to 2.28.1
[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
feee92f1 13Version: 2.28.1
b376aad6 14Release: 1
af8d9212 15License: LGPL v2+
70ad426d 16Group: X11/Applications
091dd01e 17Source0: http://ftp.gnome.org/pub/GNOME/sources/GConf/2.28/GConf-%{version}.tar.bz2
feee92f1 18# Source0-md5: 27663faf0af4f6a6d534de9270f6d24a
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
60c4e8df 25BuildRequires: docbook-dtd412-xml
410c58ef 26BuildRequires: gettext-devel
8d2881b0 27BuildRequires: dbus-glib-devel >= 0.74
091dd01e
MB
28BuildRequires: glib2-devel >= 1:2.20.0
29BuildRequires: gtk+2-devel >= 2:2.16.0
8880401b 30BuildRequires: gtk-doc >= 1.8
8d2881b0 31BuildRequires: intltool >= 0.40.0
a948e6a1 32BuildRequires: libtool
6a75158a 33BuildRequires: libxml2-devel >= 1:2.6.30
507c7593 34BuildRequires: openldap-devel >= 2.4.6
b057dd54 35BuildRequires: perl-base
70ad426d 36BuildRequires: pkgconfig
091dd01e 37BuildRequires: polkit-devel >= 0.92
82fbd684 38BuildRequires: rpmbuild(macros) >= 1.197
46fa04c1 39Requires(post): findutils
10040bca 40Requires: %{name}-libs = %{version}-%{release}
af014341 41Obsoletes: GConf2-xinitrc
797e7b9f 42Obsoletes: libGConf2
1a67de6d 43# sr@Latn vs. sr@latin
44Conflicts: glibc-misc < 6:2.7
b057dd54 45BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
70ad426d 46
70ad426d 47%description
48GConf2 is a configuration database system, functionally similar to the
edd1571b
JB
49Windows registry but lots better. :-) It's being written for the
50GNOME2 desktop but does not require GNOME2; configure should notice if
51GNOME2 is not installed and compile the basic GConf2 library anyway.
70ad426d 52
41d5538c 53%description -l pl.UTF-8
70ad426d 54GConf2 jest systemem konfiguracyjnej bazy danych, funkcjonalnie
55podobnej do rejestru Windows, ale o wiele lepszej :-). Jest pisana dla
edd1571b 56desktopu GNOME2, ale nie wymaga GNOME2; skrypt configure powinien
41d5538c 57wykryć brak GNOME2 i skompilować tylko wersję podstawową GConf2.
70ad426d 58
41d5538c
JR
59%description -l pt_BR.UTF-8
60Gconf2 é o sistema de banco de dados de configuração do GNOME2.
70ad426d 61
10040bca
JB
62%package libs
63Summary: GConf2 shared library
64Summary(pl.UTF-8): Biblioteka współdzielona GConf2
65Group: Libraries
66Requires: ORBit2 >= 1:2.14.9
091dd01e 67Requires: glib2 >= 1:2.20.0
10040bca 68Conflicts: GConf2 < 2.24.0-2
e1a327be 69
10040bca
JB
70%description libs
71GConf2 shared library and gconftool utility (used both for
72configuration management and development purposes).
e1a327be 73
10040bca
JB
74%description libs -l pl.UTF-8
75Biblioteka współdzielona GConf2 oraz narzędzie gconftool (używane
76zarówno przy zarządzaniu konfiguracją, jak i tworzeniu
77oprogramowania).
e1a327be 78
70ad426d 79%package devel
10040bca
JB
80Summary: Header files for GConf2 library
81Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GConf2
eec5f56a 82Summary(pt_BR.UTF-8): Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
10040bca
JB
83Group: Development/Libraries
84Requires: %{name}-libs = %{version}-%{release}
6a75158a 85Requires: ORBit2-devel >= 1:2.14.9
8d2881b0 86Requires: dbus-devel >= 1.0.0
6a75158a 87Requires: libxml2-devel >= 1:2.6.30
797e7b9f 88Obsoletes: libGConf2-devel
70ad426d 89
90%description devel
10040bca 91Header files for GConf2 library.
70ad426d 92
41d5538c 93%description devel -l pl.UTF-8
10040bca 94Pliki nagłówkowe biblioteki GConf2.
70ad426d 95
41d5538c
JR
96%description devel -l pt_BR.UTF-8
97Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
70ad426d 98
99%package static
100Summary: GConf2 static libraries
eec5f56a
ER
101Summary(pl.UTF-8): Biblioteki statyczne GConf2
102Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com gconf2
10040bca 103Group: Development/Libraries
d7220fca 104Requires: %{name}-devel = %{version}-%{release}
70ad426d 105
106%description static
107GConf2 static libraries.
108
41d5538c 109%description static -l pl.UTF-8
70ad426d 110Biblioteki statyczne GConf2.
111
41d5538c
JR
112%description static -l pt_BR.UTF-8
113Bibliotecas estáticas para desenvolvimento com gconf
70ad426d 114
10040bca
JB
115%package apidocs
116Summary: GConf2 API documentation
117Summary(pl.UTF-8): Dokumentacja API GConf2
118Group: Documentation
119Requires: gtk-doc-common
120
121%description apidocs
122GConf2 API documentation.
123
124%description apidocs -l pl.UTF-8
125Dokumentacja API GConf2.
126
6a75158a
MB
127%package examples
128Summary: GConf2 - example programs
129Summary(pl.UTF-8): GConf2 - przykładowe programy
10040bca 130Group: Development/Libraries
6a75158a
MB
131Requires: %{name}-devel = %{version}-%{release}
132
133%description examples
134GConf2 - example programs.
135
136%description examples -l pl.UTF-8
137GConf2 - przykładowe programy.
138
b21f9f89
JB
139%package backend-evoldap
140Summary: Evolution Data Sources LDAP backend for GConf
eec5f56a 141Summary(pl.UTF-8): Backend LDAP źródeł danych Evolution dla GConfa
b21f9f89
JB
142Group: Libraries
143Requires: %{name} = %{version}-%{release}
144
145%description backend-evoldap
146This is a special-purpose backend for GConf which enables default mail
147accounts, addressbooks and calendars for Evolution to be configured
148using each user's LDAP entry. By setting each user's mail address,
149incoming/outgoing mail server addresses and addressbook/calendar
150addresses in the user's LDAP entry, Evolution will be automatically
151configured to use these addresses.
152
41d5538c
JR
153%description backend-evoldap -l pl.UTF-8
154To jest backend GConfa specjalnego przeznaczenia, pozwalający na
155konfigurowanie domyślnych kont pocztowych, książek adresowych i
156kalendarzy dla Evolution przy użyciu wpisu LDAP dla każdego
157użytkownika. Poprzez ustawienie każdemu użytkownikowi adres pocztowy,
158adresy serwerów poczty przychodzącej/wychodzącej oraz adresy książki
b21f9f89 159adresowej i kalendarza w jego wpisie LDAP, Evolution zostanie
41d5538c 160automatycznie skonfigurowane do używania tych adresów.
b21f9f89 161
70ad426d 162%prep
affa5f14 163%setup -q -n GConf-%{version}
e00537d0 164%patch0 -p1
dfdd18a7 165%patch1 -p1
70ad426d 166
167%build
114e3e03 168%{__gtkdocize}
82fbd684 169%{__glib_gettextize}
3cdb518c 170%{__intltoolize}
314d8d95 171%{__libtoolize}
43afe854 172%{__aclocal}
ad7fc529 173%{__autoheader}
ad7fc529 174%{__autoconf}
b057dd54 175%{__automake}
70ad426d 176%configure \
f6604249 177 POLKIT_POLICY_FILE_VALIDATE=/usr/bin/polkit-policy-file-validate \
3c255572 178 %{!?with_static_libs:--disable-static} \
b21f9f89
JB
179 --enable-gtk-doc \
180 --with-html-dir=%{_gtkdocdir}
70ad426d 181
182%{__make}
183
184%install
185rm -rf $RPM_BUILD_ROOT
8d2881b0 186install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}/gconf/{schemas,gconf.xml.system}}
70ad426d 187
188%{__make} install \
f116bc09
TP
189 DESTDIR=$RPM_BUILD_ROOT
190
6a75158a 191cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
9c0e1d9c 192cp examples/*.schemas $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
6a75158a 193
feee92f1 194rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/en@shaw
091dd01e 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}/dbus-1/services/org.gnome.GConf.service
237%{_datadir}/dbus-1/system-services/org.gnome.GConf.Defaults.service
091dd01e 238%{_datadir}/polkit-1/actions/org.gnome.gconf.defaults.policy
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.130964 seconds and 4 git commands to generate.