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