]> git.pld-linux.org Git - packages/GConf2.git/blame - GConf2.spec
- updated to 2.20.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
8c82b1da 13Version: 2.20.1
6a75158a 14Release: 1
af8d9212 15License: LGPL v2+
70ad426d 16Group: X11/Applications
6a75158a 17Source0: http://ftp.gnome.org/pub/GNOME/sources/GConf/2.20/GConf-%{version}.tar.bz2
8c82b1da 18# Source0-md5: 646fc896c6282a8f103365af0fa2e303
e00537d0 19Patch0: %{name}-NO_MAJOR_VERSION.patch
84d9d910 20Patch1: %{name}-path.patch
fae26a1a 21Patch2: %{name}-reload.patch
70ad426d 22URL: http://www.gnome.org/
6a75158a 23BuildRequires: ORBit2-devel >= 1:2.14.9
a948e6a1 24BuildRequires: autoconf
e5f89731 25BuildRequires: automake >= 1:1.7
410c58ef 26BuildRequires: gettext-devel
6a75158a
MB
27BuildRequires: glib2-devel >= 1:2.14.1
28BuildRequires: gtk+2-devel >= 2:2.12.0
8880401b 29BuildRequires: gtk-doc >= 1.8
6a75158a 30BuildRequires: intltool >= 0.36.2
a948e6a1 31BuildRequires: libtool
6a75158a 32BuildRequires: libxml2-devel >= 1:2.6.30
a45d038c 33BuildRequires: openldap-devel
b057dd54 34BuildRequires: perl-base
70ad426d 35BuildRequires: pkgconfig
82fbd684 36BuildRequires: rpmbuild(macros) >= 1.197
46fa04c1 37Requires(post): findutils
6a75158a
MB
38Requires: ORBit2 >= 1:2.14.9
39Requires: glib2 >= 1:2.14.1
af014341 40Obsoletes: GConf2-xinitrc
797e7b9f 41Obsoletes: libGConf2
b057dd54 42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
70ad426d 43
70ad426d 44%description
45GConf2 is a configuration database system, functionally similar to the
edd1571b
JB
46Windows registry but lots better. :-) It's being written for the
47GNOME2 desktop but does not require GNOME2; configure should notice if
48GNOME2 is not installed and compile the basic GConf2 library anyway.
70ad426d 49
41d5538c 50%description -l pl.UTF-8
70ad426d 51GConf2 jest systemem konfiguracyjnej bazy danych, funkcjonalnie
52podobnej do rejestru Windows, ale o wiele lepszej :-). Jest pisana dla
edd1571b 53desktopu GNOME2, ale nie wymaga GNOME2; skrypt configure powinien
41d5538c 54wykryć brak GNOME2 i skompilować tylko wersję podstawową GConf2.
70ad426d 55
41d5538c
JR
56%description -l pt_BR.UTF-8
57Gconf2 é o sistema de banco de dados de configuração do GNOME2.
70ad426d 58
e1a327be
MB
59%package apidocs
60Summary: GConf2 API documentation
eec5f56a 61Summary(pl.UTF-8): Dokumentacja API GConf2
e1a327be
MB
62Group: Documentation
63Requires: gtk-doc-common
64
65%description apidocs
66GConf2 API documentation.
67
41d5538c 68%description apidocs -l pl.UTF-8
e1a327be
MB
69Dokumentacja API GConf2.
70
70ad426d 71%package devel
72Summary: GConf2 includes, etc
eec5f56a
ER
73Summary(pl.UTF-8): Pliki nagłówkowe GConf2
74Summary(pt_BR.UTF-8): Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
70ad426d 75Group: X11/Development/Libraries
d7220fca 76Requires: %{name} = %{version}-%{release}
6a75158a 77Requires: ORBit2-devel >= 1:2.14.9
6da41237 78Requires: gtk-doc-common
6a75158a 79Requires: libxml2-devel >= 1:2.6.30
797e7b9f 80Obsoletes: libGConf2-devel
70ad426d 81
82%description devel
83GConf2 includes etc.
84
41d5538c
JR
85%description devel -l pl.UTF-8
86Pliki nagłówkowe GConf2.
70ad426d 87
41d5538c
JR
88%description devel -l pt_BR.UTF-8
89Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
70ad426d 90
91%package static
92Summary: GConf2 static libraries
eec5f56a
ER
93Summary(pl.UTF-8): Biblioteki statyczne GConf2
94Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com gconf2
70ad426d 95Group: X11/Development/Libraries
d7220fca 96Requires: %{name}-devel = %{version}-%{release}
70ad426d 97
98%description static
99GConf2 static libraries.
100
41d5538c 101%description static -l pl.UTF-8
70ad426d 102Biblioteki statyczne GConf2.
103
41d5538c
JR
104%description static -l pt_BR.UTF-8
105Bibliotecas estáticas para desenvolvimento com gconf
70ad426d 106
6a75158a
MB
107%package examples
108Summary: GConf2 - example programs
109Summary(pl.UTF-8): GConf2 - przykładowe programy
110Group: X11/Development/Libraries
111Requires: %{name}-devel = %{version}-%{release}
112
113%description examples
114GConf2 - example programs.
115
116%description examples -l pl.UTF-8
117GConf2 - przykładowe programy.
118
b21f9f89
JB
119%package backend-evoldap
120Summary: Evolution Data Sources LDAP backend for GConf
eec5f56a 121Summary(pl.UTF-8): Backend LDAP źródeł danych Evolution dla GConfa
b21f9f89
JB
122Group: Libraries
123Requires: %{name} = %{version}-%{release}
124
125%description backend-evoldap
126This is a special-purpose backend for GConf which enables default mail
127accounts, addressbooks and calendars for Evolution to be configured
128using each user's LDAP entry. By setting each user's mail address,
129incoming/outgoing mail server addresses and addressbook/calendar
130addresses in the user's LDAP entry, Evolution will be automatically
131configured to use these addresses.
132
41d5538c
JR
133%description backend-evoldap -l pl.UTF-8
134To jest backend GConfa specjalnego przeznaczenia, pozwalający na
135konfigurowanie domyślnych kont pocztowych, książek adresowych i
136kalendarzy dla Evolution przy użyciu wpisu LDAP dla każdego
137użytkownika. Poprzez ustawienie każdemu użytkownikowi adres pocztowy,
138adresy serwerów poczty przychodzącej/wychodzącej oraz adresy książki
b21f9f89 139adresowej i kalendarza w jego wpisie LDAP, Evolution zostanie
41d5538c 140automatycznie skonfigurowane do używania tych adresów.
b21f9f89 141
70ad426d 142%prep
affa5f14 143%setup -q -n GConf-%{version}
e00537d0 144%patch0 -p1
dfdd18a7 145%patch1 -p1
fae26a1a 146%patch2 -p1
70ad426d 147
148%build
114e3e03 149%{__gtkdocize}
82fbd684 150%{__glib_gettextize}
3cdb518c 151%{__intltoolize}
314d8d95 152%{__libtoolize}
43afe854 153%{__aclocal}
ad7fc529 154%{__autoheader}
ad7fc529 155%{__autoconf}
b057dd54 156%{__automake}
70ad426d 157%configure \
3c255572 158 %{!?with_static_libs:--disable-static} \
b21f9f89
JB
159 --enable-gtk-doc \
160 --with-html-dir=%{_gtkdocdir}
70ad426d 161
162%{__make}
163
164%install
165rm -rf $RPM_BUILD_ROOT
6a75158a 166install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}/gconf/schemas}
70ad426d 167
168%{__make} install \
f116bc09
TP
169 DESTDIR=$RPM_BUILD_ROOT
170
6a75158a
MB
171cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
172
70ad426d 173%find_lang %{name}
174
9a1becbf
JB
175# no *.{la,a} for modules - shut up check-files
176rm -f $RPM_BUILD_ROOT%{_libdir}/GConf2/lib*.{la,a}
177
70ad426d 178%clean
179rm -rf $RPM_BUILD_ROOT
180
af014341 181%post
182/sbin/ldconfig
183umask 022
184for GCONF_DIR in %{_sysconfdir}/gconf/gconf.xml.mandatory %{_sysconfdir}/gconf/gconf.xml.defaults ;
185 do
186 GCONF_TREE=$GCONF_DIR/%gconf-tree.xml
187 if [ ! -f "$GCONF_TREE" ]; then
188 gconf-merge-tree "$GCONF_DIR"
189 chmod 644 "$GCONF_TREE"
190 find "$GCONF_DIR" -mindepth 1 -maxdepth 1 -type d -exec rm -rf \{\} \;
191 rm -f "$GCONF_DIR/%gconf.xml"
192 fi
193done
6a75158a 194
a286d3d8 195%postun -p /sbin/ldconfig
70ad426d 196
197%files -f %{name}.lang
198%defattr(644,root,root,755)
b057dd54 199%doc AUTHORS NEWS README
af8d9212
JB
200%attr(755,root,root) %{_bindir}/gconf-merge-tree
201%attr(755,root,root) %{_bindir}/gconftool-2
7d0a6d71 202%attr(755,root,root) %{_libdir}/gconf-sanity-check-2
203%attr(755,root,root) %{_libdir}/gconfd-2
af8d9212 204%attr(755,root,root) %{_libdir}/libgconf-2.so.*.*.*
e00537d0 205%dir %{_libdir}/GConf2
b21f9f89
JB
206%attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-oldxml.so
207%attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-xml.so
208%dir %{_sysconfdir}/gconf
209%dir %{_sysconfdir}/gconf/2
210%{_sysconfdir}/gconf/gconf.xml.*
211%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/path
212%dir %{_sysconfdir}/gconf/schemas
b21f9f89
JB
213%dir %{_datadir}/GConf
214%dir %{_datadir}/GConf/schema
3033af1d 215%{_datadir}/sgml/gconf
af8d9212 216%{_mandir}/man1/gconftool-2.1*
70ad426d 217
e1a327be
MB
218%files apidocs
219%defattr(644,root,root,755)
220%{_gtkdocdir}/gconf
221
70ad426d 222%files devel
223%defattr(644,root,root,755)
c81f7abe 224%doc ChangeLog TODO
af8d9212
JB
225%attr(755,root,root) %{_libdir}/libgconf-2.so
226%{_libdir}/libgconf-2.la
e00537d0 227%{_includedir}/gconf2
af8d9212
JB
228%{_aclocaldir}/gconf-2.m4
229%{_pkgconfigdir}/gconf-2.0.pc
70ad426d 230
3c255572 231%if %{with static_libs}
70ad426d 232%files static
233%defattr(644,root,root,755)
af8d9212 234%{_libdir}/libgconf-2.a
23f0fa1e 235%endif
b21f9f89 236
6a75158a
MB
237%files examples
238%defattr(644,root,root,755)
239%{_examplesdir}/%{name}-%{version}
240
b21f9f89
JB
241%files backend-evoldap
242%defattr(644,root,root,755)
243%doc backends/README.evoldap
244%attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-evoldap.so
245%{_datadir}/GConf/schema/evoldap.schema
246%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/2/evoldap.conf
This page took 0.084299 seconds and 4 git commands to generate.