]> git.pld-linux.org Git - packages/GConf2.git/blame - GConf2.spec
- fixed R: findutils -> R(post): findutils
[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
aa02385d 13Version: 2.18.0.1
7a1a44c6 14Release: 2
70ad426d 15License: LGPL
16Group: X11/Applications
d8ca3fee 17Source0: http://ftp.gnome.org/pub/gnome/sources/GConf/2.18/GConf-%{version}.tar.bz2
aa02385d 18# Source0-md5: aa0e0a0729fb021bab72b4166fd392f9
e00537d0 19Patch0: %{name}-NO_MAJOR_VERSION.patch
84d9d910 20Patch1: %{name}-path.patch
fae26a1a 21Patch2: %{name}-reload.patch
70ad426d 22URL: http://www.gnome.org/
8880401b 23BuildRequires: ORBit2-devel >= 1:2.14.7
a948e6a1 24BuildRequires: autoconf
e5f89731 25BuildRequires: automake >= 1:1.7
410c58ef 26BuildRequires: gettext-devel
8880401b
MB
27BuildRequires: glib2-devel >= 1:2.12.9
28BuildRequires: gtk+2-devel >= 2:2.10.9
29BuildRequires: gtk-doc >= 1.8
30BuildRequires: intltool >= 0.35.5
a948e6a1 31BuildRequires: libtool
8880401b 32BuildRequires: libxml2-devel >= 1:2.6.27
a45d038c 33BuildRequires: openldap-devel
b057dd54 34BuildRequires: perl-base
70ad426d 35BuildRequires: pkgconfig
82fbd684 36BuildRequires: rpmbuild(macros) >= 1.197
46fa04c1 37Requires(post): findutils
8880401b
MB
38Requires: ORBit2 >= 1:2.14.7
39Requires: glib2 >= 1:2.12.9
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}
8880401b 77Requires: ORBit2-devel >= 1:2.14.7
6da41237 78Requires: gtk-doc-common
8880401b 79Requires: libxml2-devel >= 1:2.6.27
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
b21f9f89
JB
107%package backend-evoldap
108Summary: Evolution Data Sources LDAP backend for GConf
eec5f56a 109Summary(pl.UTF-8): Backend LDAP źródeł danych Evolution dla GConfa
b21f9f89
JB
110Group: Libraries
111Requires: %{name} = %{version}-%{release}
112
113%description backend-evoldap
114This is a special-purpose backend for GConf which enables default mail
115accounts, addressbooks and calendars for Evolution to be configured
116using each user's LDAP entry. By setting each user's mail address,
117incoming/outgoing mail server addresses and addressbook/calendar
118addresses in the user's LDAP entry, Evolution will be automatically
119configured to use these addresses.
120
41d5538c
JR
121%description backend-evoldap -l pl.UTF-8
122To jest backend GConfa specjalnego przeznaczenia, pozwalający na
123konfigurowanie domyślnych kont pocztowych, książek adresowych i
124kalendarzy dla Evolution przy użyciu wpisu LDAP dla każdego
125użytkownika. Poprzez ustawienie każdemu użytkownikowi adres pocztowy,
126adresy serwerów poczty przychodzącej/wychodzącej oraz adresy książki
b21f9f89 127adresowej i kalendarza w jego wpisie LDAP, Evolution zostanie
41d5538c 128automatycznie skonfigurowane do używania tych adresów.
b21f9f89 129
70ad426d 130%prep
affa5f14 131%setup -q -n GConf-%{version}
e00537d0 132%patch0 -p1
dfdd18a7 133%patch1 -p1
fae26a1a 134%patch2 -p1
70ad426d 135
136%build
114e3e03 137%{__gtkdocize}
82fbd684 138%{__glib_gettextize}
3cdb518c 139%{__intltoolize}
314d8d95 140%{__libtoolize}
43afe854 141%{__aclocal}
ad7fc529 142%{__autoheader}
ad7fc529 143%{__autoconf}
b057dd54 144%{__automake}
70ad426d 145%configure \
3c255572 146 %{!?with_static_libs:--disable-static} \
b21f9f89
JB
147 --enable-gtk-doc \
148 --with-html-dir=%{_gtkdocdir}
70ad426d 149
150%{__make}
151
152%install
153rm -rf $RPM_BUILD_ROOT
af014341 154install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas
70ad426d 155
156%{__make} install \
f116bc09
TP
157 DESTDIR=$RPM_BUILD_ROOT
158
70ad426d 159%find_lang %{name}
160
9a1becbf
JB
161# no *.{la,a} for modules - shut up check-files
162rm -f $RPM_BUILD_ROOT%{_libdir}/GConf2/lib*.{la,a}
163
70ad426d 164%clean
165rm -rf $RPM_BUILD_ROOT
166
af014341 167%post
168/sbin/ldconfig
169umask 022
170for GCONF_DIR in %{_sysconfdir}/gconf/gconf.xml.mandatory %{_sysconfdir}/gconf/gconf.xml.defaults ;
171 do
172 GCONF_TREE=$GCONF_DIR/%gconf-tree.xml
173 if [ ! -f "$GCONF_TREE" ]; then
174 gconf-merge-tree "$GCONF_DIR"
175 chmod 644 "$GCONF_TREE"
176 find "$GCONF_DIR" -mindepth 1 -maxdepth 1 -type d -exec rm -rf \{\} \;
177 rm -f "$GCONF_DIR/%gconf.xml"
178 fi
179done
46fa04c1 180
a286d3d8 181%postun -p /sbin/ldconfig
70ad426d 182
183%files -f %{name}.lang
184%defattr(644,root,root,755)
b057dd54 185%doc AUTHORS NEWS README
a0a807a8 186%attr(755,root,root) %{_bindir}/gconf*
7d0a6d71 187%attr(755,root,root) %{_libdir}/gconf-sanity-check-2
188%attr(755,root,root) %{_libdir}/gconfd-2
70ad426d 189%attr(755,root,root) %{_libdir}/lib*.so.*.*
e00537d0 190%dir %{_libdir}/GConf2
b21f9f89
JB
191%attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-oldxml.so
192%attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-xml.so
193%dir %{_sysconfdir}/gconf
194%dir %{_sysconfdir}/gconf/2
195%{_sysconfdir}/gconf/gconf.xml.*
196%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/path
197%dir %{_sysconfdir}/gconf/schemas
b21f9f89
JB
198%dir %{_datadir}/GConf
199%dir %{_datadir}/GConf/schema
3033af1d 200%{_datadir}/sgml/gconf
2507fae1 201%{_mandir}/man1/*
70ad426d 202
e1a327be
MB
203%files apidocs
204%defattr(644,root,root,755)
205%{_gtkdocdir}/gconf
206
70ad426d 207%files devel
208%defattr(644,root,root,755)
c81f7abe 209%doc ChangeLog TODO
7afd2b97 210%attr(755,root,root) %{_libdir}/lib*.so
9a1becbf 211%{_libdir}/lib*.la
e00537d0 212%{_includedir}/gconf2
70ad426d 213%{_aclocaldir}/*.m4
214%{_pkgconfigdir}/*.pc
215
3c255572 216%if %{with static_libs}
70ad426d 217%files static
218%defattr(644,root,root,755)
70ad426d 219%{_libdir}/lib*.a
23f0fa1e 220%endif
b21f9f89
JB
221
222%files backend-evoldap
223%defattr(644,root,root,755)
224%doc backends/README.evoldap
225%attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-evoldap.so
226%{_datadir}/GConf/schema/evoldap.schema
227%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/2/evoldap.conf
This page took 0.089914 seconds and 4 git commands to generate.