]> git.pld-linux.org Git - packages/GConf2.git/blame - GConf2.spec
- drop .la file, release 6
[packages/GConf2.git] / GConf2.spec
CommitLineData
affeb290 1# TODO:
2# - update documentation to follow changes introduced in Patch0
3#
9589e6b3 4# Conditional build:
3c255572 5%bcond_without static_libs # don't build static libraries
a727db14 6
70ad426d 7Summary: GNOME2 configuration database system
eec5f56a
ER
8Summary(pl.UTF-8): System konfiguracyjnej bazy danych dla GNOME 2
9Summary(pt_BR.UTF-8): Sistema de Configuração do GNOME 2
10Summary(ru.UTF-8): Система конфигурации GNOME 2
70ad426d 11Name: GConf2
c37b81b7 12Version: 3.2.6
4cac91b5 13Release: 6
af8d9212 14License: LGPL v2+
70ad426d 15Group: X11/Applications
ef446241 16Source0: http://ftp.gnome.org/pub/GNOME/sources/GConf/3.2/GConf-%{version}.tar.xz
c37b81b7 17# Source0-md5: 2b16996d0e4b112856ee5c59130e822c
e00537d0 18Patch0: %{name}-NO_MAJOR_VERSION.patch
8d2881b0 19Patch1: %{name}-reload.patch
ded45b98 20Patch2: workaround-crash.patch
4cac91b5 21URL: https://projects-old.gnome.org/gconf/
6a75158a 22BuildRequires: ORBit2-devel >= 1:2.14.9
091dd01e 23BuildRequires: autoconf >= 2.60
9c0e1d9c 24BuildRequires: automake >= 1:1.9
9b37c783 25BuildRequires: dbus-devel >= 1.0.0
d2ac8ef7 26BuildRequires: dbus-glib-devel >= 0.74
60c4e8df 27BuildRequires: docbook-dtd412-xml
dc765e70 28BuildRequires: gettext-tools
149d70f3 29BuildRequires: glib2-devel >= 1:2.31.0
709c75ed 30BuildRequires: gobject-introspection-devel >= 0.10.0
ef446241 31BuildRequires: gtk+3-devel >= 3.0.0
8880401b 32BuildRequires: gtk-doc >= 1.8
8d2881b0 33BuildRequires: intltool >= 0.40.0
a948e6a1 34BuildRequires: libtool
6a75158a 35BuildRequires: libxml2-devel >= 1:2.6.30
507c7593 36BuildRequires: openldap-devel >= 2.4.6
b057dd54 37BuildRequires: perl-base
70ad426d 38BuildRequires: pkgconfig
091dd01e 39BuildRequires: polkit-devel >= 0.92
9a733d66 40BuildRequires: rpm-pythonprov
82fbd684 41BuildRequires: rpmbuild(macros) >= 1.197
2e5cc701
MB
42BuildRequires: tar >= 1:1.22
43BuildRequires: xz
46fa04c1 44Requires(post): findutils
337ea1da 45Requires(post,postun): glib2 >= 1:2.31.0
10040bca 46Requires: %{name}-libs = %{version}-%{release}
a727db14 47Requires: psmisc >= 20.1-2
af014341 48Obsoletes: GConf2-xinitrc
797e7b9f 49Obsoletes: libGConf2
1a67de6d 50# sr@Latn vs. sr@latin
51Conflicts: glibc-misc < 6:2.7
b057dd54 52BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
70ad426d 53
70ad426d 54%description
55GConf2 is a configuration database system, functionally similar to the
edd1571b
JB
56Windows registry but lots better. :-) It's being written for the
57GNOME2 desktop but does not require GNOME2; configure should notice if
58GNOME2 is not installed and compile the basic GConf2 library anyway.
70ad426d 59
41d5538c 60%description -l pl.UTF-8
70ad426d 61GConf2 jest systemem konfiguracyjnej bazy danych, funkcjonalnie
62podobnej do rejestru Windows, ale o wiele lepszej :-). Jest pisana dla
edd1571b 63desktopu GNOME2, ale nie wymaga GNOME2; skrypt configure powinien
41d5538c 64wykryć brak GNOME2 i skompilować tylko wersję podstawową GConf2.
70ad426d 65
41d5538c
JR
66%description -l pt_BR.UTF-8
67Gconf2 é o sistema de banco de dados de configuração do GNOME2.
70ad426d 68
10040bca
JB
69%package libs
70Summary: GConf2 shared library
71Summary(pl.UTF-8): Biblioteka współdzielona GConf2
72Group: Libraries
73Requires: ORBit2 >= 1:2.14.9
337ea1da 74Requires: glib2 >= 1:2.31.0
10040bca 75Conflicts: GConf2 < 2.24.0-2
e1a327be 76
10040bca
JB
77%description libs
78GConf2 shared library and gconftool utility (used both for
79configuration management and development purposes).
e1a327be 80
10040bca
JB
81%description libs -l pl.UTF-8
82Biblioteka współdzielona GConf2 oraz narzędzie gconftool (używane
83zarówno przy zarządzaniu konfiguracją, jak i tworzeniu
84oprogramowania).
e1a327be 85
70ad426d 86%package devel
10040bca
JB
87Summary: Header files for GConf2 library
88Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GConf2
eec5f56a 89Summary(pt_BR.UTF-8): Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
10040bca
JB
90Group: Development/Libraries
91Requires: %{name}-libs = %{version}-%{release}
6a75158a 92Requires: ORBit2-devel >= 1:2.14.9
8d2881b0 93Requires: dbus-devel >= 1.0.0
337ea1da 94Requires: glib2-devel >= 1:2.31.0
6a75158a 95Requires: libxml2-devel >= 1:2.6.30
797e7b9f 96Obsoletes: libGConf2-devel
70ad426d 97
98%description devel
10040bca 99Header files for GConf2 library.
70ad426d 100
41d5538c 101%description devel -l pl.UTF-8
10040bca 102Pliki nagłówkowe biblioteki GConf2.
70ad426d 103
41d5538c
JR
104%description devel -l pt_BR.UTF-8
105Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
70ad426d 106
107%package static
108Summary: GConf2 static libraries
eec5f56a
ER
109Summary(pl.UTF-8): Biblioteki statyczne GConf2
110Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com gconf2
10040bca 111Group: Development/Libraries
d7220fca 112Requires: %{name}-devel = %{version}-%{release}
70ad426d 113
114%description static
115GConf2 static libraries.
116
41d5538c 117%description static -l pl.UTF-8
70ad426d 118Biblioteki statyczne GConf2.
119
41d5538c
JR
120%description static -l pt_BR.UTF-8
121Bibliotecas estáticas para desenvolvimento com gconf
70ad426d 122
10040bca
JB
123%package apidocs
124Summary: GConf2 API documentation
125Summary(pl.UTF-8): Dokumentacja API GConf2
126Group: Documentation
127Requires: gtk-doc-common
ebc33e94
ER
128%if "%{_rpmversion}" >= "5"
129BuildArch: noarch
130%endif
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
70ad426d 178
179%build
114e3e03 180%{__gtkdocize}
82fbd684 181%{__glib_gettextize}
3cdb518c 182%{__intltoolize}
314d8d95 183%{__libtoolize}
43afe854 184%{__aclocal}
ad7fc529 185%{__autoheader}
ad7fc529 186%{__autoconf}
b057dd54 187%{__automake}
70ad426d 188%configure \
c37b81b7 189 --disable-silent-rules \
3c255572 190 %{!?with_static_libs:--disable-static} \
b21f9f89
JB
191 --enable-gtk-doc \
192 --with-html-dir=%{_gtkdocdir}
70ad426d 193
194%{__make}
195
196%install
197rm -rf $RPM_BUILD_ROOT
4b95bf2d 198install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}/gconf/{schemas,gconf.xml.system},%{_datadir}/GConf/gsettings}
70ad426d 199
200%{__make} install \
f116bc09
TP
201 DESTDIR=$RPM_BUILD_ROOT
202
6a75158a 203cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
9c0e1d9c 204cp examples/*.schemas $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
6a75158a 205
70ad426d 206%find_lang %{name}
207
9a1becbf 208# no *.{la,a} for modules - shut up check-files
4ce4c869 209%{__rm} $RPM_BUILD_ROOT%{_libdir}/{GConf2,gio/modules}/lib*.{la,a}
4cac91b5
JB
210# obsoleted by pkg-config
211%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgconf-2.la
9a1becbf 212
70ad426d 213%clean
214rm -rf $RPM_BUILD_ROOT
215
af014341 216%post
af014341 217umask 022
218for GCONF_DIR in %{_sysconfdir}/gconf/gconf.xml.mandatory %{_sysconfdir}/gconf/gconf.xml.defaults ;
219 do
220 GCONF_TREE=$GCONF_DIR/%gconf-tree.xml
221 if [ ! -f "$GCONF_TREE" ]; then
222 gconf-merge-tree "$GCONF_DIR"
223 chmod 644 "$GCONF_TREE"
224 find "$GCONF_DIR" -mindepth 1 -maxdepth 1 -type d -exec rm -rf \{\} \;
225 rm -f "$GCONF_DIR/%gconf.xml"
226 fi
227done
9c0e1d9c 228
d2ac8ef7
PZ
229%{_bindir}/gio-querymodules %{_libdir}/gio/modules
230
231%postun
232umask 022
233%{_bindir}/gio-querymodules %{_libdir}/gio/modules
234exit 0
235
10040bca
JB
236%post libs -p /sbin/ldconfig
237%postun libs -p /sbin/ldconfig
70ad426d 238
10040bca 239%files
70ad426d 240%defattr(644,root,root,755)
4cac91b5 241%doc AUTHORS ChangeLog NEWS README TODO
af8d9212 242%attr(755,root,root) %{_bindir}/gconf-merge-tree
d2ac8ef7
PZ
243%attr(755,root,root) %{_bindir}/gsettings-data-convert
244%attr(755,root,root) %{_bindir}/gsettings-schema-convert
891017f5 245%attr(755,root,root) %{_libexecdir}/gconf-defaults-mechanism
891017f5 246%attr(755,root,root) %{_libexecdir}/gconfd-2
e00537d0 247%dir %{_libdir}/GConf2
b21f9f89
JB
248%attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-oldxml.so
249%attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-xml.so
d2ac8ef7 250%attr(755,root,root) %{_libdir}/gio/modules/libgsettingsgconfbackend.so
a727db14 251/etc/dbus-1/system.d/org.gnome.GConf.Defaults.conf
d2ac8ef7 252%{_sysconfdir}/xdg/autostart/gsettings-data-convert.desktop
b21f9f89
JB
253%dir %{_sysconfdir}/gconf
254%dir %{_sysconfdir}/gconf/2
255%{_sysconfdir}/gconf/gconf.xml.*
256%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/path
257%dir %{_sysconfdir}/gconf/schemas
891017f5
MB
258%{_datadir}/dbus-1/services/org.gnome.GConf.service
259%{_datadir}/dbus-1/system-services/org.gnome.GConf.Defaults.service
091dd01e 260%{_datadir}/polkit-1/actions/org.gnome.gconf.defaults.policy
b21f9f89 261%dir %{_datadir}/GConf
4b95bf2d 262%dir %{_datadir}/GConf/gsettings
b21f9f89 263%dir %{_datadir}/GConf/schema
3033af1d 264%{_datadir}/sgml/gconf
d2ac8ef7
PZ
265%{_mandir}/man1/gsettings-data-convert.1*
266%{_mandir}/man1/gsettings-schema-convert.1*
70ad426d 267
10040bca 268%files libs -f %{name}.lang
e1a327be 269%defattr(644,root,root,755)
10040bca
JB
270%attr(755,root,root) %{_libdir}/libgconf-2.so.*.*.*
271%attr(755,root,root) %ghost %{_libdir}/libgconf-2.so.4
272%attr(755,root,root) %{_bindir}/gconftool-2
273%{_mandir}/man1/gconftool-2.1*
d2ac8ef7 274%{_libdir}/girepository-1.0/GConf-2.0.typelib
e1a327be 275
70ad426d 276%files devel
277%defattr(644,root,root,755)
af8d9212 278%attr(755,root,root) %{_libdir}/libgconf-2.so
e00537d0 279%{_includedir}/gconf2
af8d9212
JB
280%{_aclocaldir}/gconf-2.m4
281%{_pkgconfigdir}/gconf-2.0.pc
d2ac8ef7 282%{_datadir}/gir-1.0/GConf-2.0.gir
70ad426d 283
3c255572 284%if %{with static_libs}
70ad426d 285%files static
286%defattr(644,root,root,755)
af8d9212 287%{_libdir}/libgconf-2.a
23f0fa1e 288%endif
b21f9f89 289
10040bca
JB
290%files apidocs
291%defattr(644,root,root,755)
292%{_gtkdocdir}/gconf
293
6a75158a
MB
294%files examples
295%defattr(644,root,root,755)
296%{_examplesdir}/%{name}-%{version}
297
b21f9f89
JB
298%files backend-evoldap
299%defattr(644,root,root,755)
300%doc backends/README.evoldap
301%attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-evoldap.so
302%{_datadir}/GConf/schema/evoldap.schema
303%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/2/evoldap.conf
This page took 0.073766 seconds and 4 git commands to generate.