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