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