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