]> git.pld-linux.org Git - packages/GConf2.git/blame - GConf2.spec
- updated to 3.2.0; merged from DEVEL
[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
ef446241 13Version: 3.2.0
a6c0ccc1 14Release: 1
af8d9212 15License: LGPL v2+
70ad426d 16Group: X11/Applications
ef446241
ŁK
17Source0: http://ftp.gnome.org/pub/GNOME/sources/GConf/3.2/GConf-%{version}.tar.xz
18# Source0-md5: 33bb4d86e67cd5aacba089eb752e3f3c
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
a6c0ccc1 28BuildRequires: glib2-devel >= 1:2.28.0
709c75ed 29BuildRequires: gobject-introspection-devel >= 0.10.0
ef446241 30BuildRequires: gtk+3-devel >= 3.0.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
9a733d66 39BuildRequires: rpm-pythonprov
82fbd684 40BuildRequires: rpmbuild(macros) >= 1.197
2e5cc701
MB
41BuildRequires: tar >= 1:1.22
42BuildRequires: xz
46fa04c1 43Requires(post): findutils
a6c0ccc1 44Requires(post,postun): glib2 >= 1:2.28.0
10040bca 45Requires: %{name}-libs = %{version}-%{release}
af014341 46Obsoletes: GConf2-xinitrc
797e7b9f 47Obsoletes: libGConf2
1a67de6d 48# sr@Latn vs. sr@latin
49Conflicts: glibc-misc < 6:2.7
b057dd54 50BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
70ad426d 51
70ad426d 52%description
53GConf2 is a configuration database system, functionally similar to the
edd1571b
JB
54Windows registry but lots better. :-) It's being written for the
55GNOME2 desktop but does not require GNOME2; configure should notice if
56GNOME2 is not installed and compile the basic GConf2 library anyway.
70ad426d 57
41d5538c 58%description -l pl.UTF-8
70ad426d 59GConf2 jest systemem konfiguracyjnej bazy danych, funkcjonalnie
60podobnej do rejestru Windows, ale o wiele lepszej :-). Jest pisana dla
edd1571b 61desktopu GNOME2, ale nie wymaga GNOME2; skrypt configure powinien
41d5538c 62wykryć brak GNOME2 i skompilować tylko wersję podstawową GConf2.
70ad426d 63
41d5538c
JR
64%description -l pt_BR.UTF-8
65Gconf2 é o sistema de banco de dados de configuração do GNOME2.
70ad426d 66
10040bca
JB
67%package libs
68Summary: GConf2 shared library
69Summary(pl.UTF-8): Biblioteka współdzielona GConf2
70Group: Libraries
71Requires: ORBit2 >= 1:2.14.9
a6c0ccc1 72Requires: glib2 >= 1:2.28.0
10040bca 73Conflicts: GConf2 < 2.24.0-2
e1a327be 74
10040bca
JB
75%description libs
76GConf2 shared library and gconftool utility (used both for
77configuration management and development purposes).
e1a327be 78
10040bca
JB
79%description libs -l pl.UTF-8
80Biblioteka współdzielona GConf2 oraz narzędzie gconftool (używane
81zarówno przy zarządzaniu konfiguracją, jak i tworzeniu
82oprogramowania).
e1a327be 83
70ad426d 84%package devel
10040bca
JB
85Summary: Header files for GConf2 library
86Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GConf2
eec5f56a 87Summary(pt_BR.UTF-8): Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
10040bca
JB
88Group: Development/Libraries
89Requires: %{name}-libs = %{version}-%{release}
6a75158a 90Requires: ORBit2-devel >= 1:2.14.9
8d2881b0 91Requires: dbus-devel >= 1.0.0
a6c0ccc1 92Requires: glib2-devel >= 1:2.28.0
6a75158a 93Requires: libxml2-devel >= 1:2.6.30
797e7b9f 94Obsoletes: libGConf2-devel
70ad426d 95
96%description devel
10040bca 97Header files for GConf2 library.
70ad426d 98
41d5538c 99%description devel -l pl.UTF-8
10040bca 100Pliki nagłówkowe biblioteki GConf2.
70ad426d 101
41d5538c
JR
102%description devel -l pt_BR.UTF-8
103Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
70ad426d 104
105%package static
106Summary: GConf2 static libraries
eec5f56a
ER
107Summary(pl.UTF-8): Biblioteki statyczne GConf2
108Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com gconf2
10040bca 109Group: Development/Libraries
d7220fca 110Requires: %{name}-devel = %{version}-%{release}
70ad426d 111
112%description static
113GConf2 static libraries.
114
41d5538c 115%description static -l pl.UTF-8
70ad426d 116Biblioteki statyczne GConf2.
117
41d5538c
JR
118%description static -l pt_BR.UTF-8
119Bibliotecas estáticas para desenvolvimento com gconf
70ad426d 120
10040bca
JB
121%package apidocs
122Summary: GConf2 API documentation
123Summary(pl.UTF-8): Dokumentacja API GConf2
124Group: Documentation
125Requires: gtk-doc-common
126
127%description apidocs
128GConf2 API documentation.
129
130%description apidocs -l pl.UTF-8
131Dokumentacja API GConf2.
132
6a75158a
MB
133%package examples
134Summary: GConf2 - example programs
135Summary(pl.UTF-8): GConf2 - przykładowe programy
10040bca 136Group: Development/Libraries
6a75158a
MB
137Requires: %{name}-devel = %{version}-%{release}
138
139%description examples
140GConf2 - example programs.
141
142%description examples -l pl.UTF-8
143GConf2 - przykładowe programy.
144
b21f9f89
JB
145%package backend-evoldap
146Summary: Evolution Data Sources LDAP backend for GConf
eec5f56a 147Summary(pl.UTF-8): Backend LDAP źródeł danych Evolution dla GConfa
b21f9f89
JB
148Group: Libraries
149Requires: %{name} = %{version}-%{release}
150
151%description backend-evoldap
152This is a special-purpose backend for GConf which enables default mail
153accounts, addressbooks and calendars for Evolution to be configured
154using each user's LDAP entry. By setting each user's mail address,
155incoming/outgoing mail server addresses and addressbook/calendar
156addresses in the user's LDAP entry, Evolution will be automatically
157configured to use these addresses.
158
41d5538c
JR
159%description backend-evoldap -l pl.UTF-8
160To jest backend GConfa specjalnego przeznaczenia, pozwalający na
161konfigurowanie domyślnych kont pocztowych, książek adresowych i
162kalendarzy dla Evolution przy użyciu wpisu LDAP dla każdego
163użytkownika. Poprzez ustawienie każdemu użytkownikowi adres pocztowy,
164adresy serwerów poczty przychodzącej/wychodzącej oraz adresy książki
b21f9f89 165adresowej i kalendarza w jego wpisie LDAP, Evolution zostanie
41d5538c 166automatycznie skonfigurowane do używania tych adresów.
b21f9f89 167
70ad426d 168%prep
affa5f14 169%setup -q -n GConf-%{version}
e00537d0 170%patch0 -p1
dfdd18a7 171%patch1 -p1
70ad426d 172
173%build
114e3e03 174%{__gtkdocize}
82fbd684 175%{__glib_gettextize}
3cdb518c 176%{__intltoolize}
314d8d95 177%{__libtoolize}
43afe854 178%{__aclocal}
ad7fc529 179%{__autoheader}
ad7fc529 180%{__autoconf}
b057dd54 181%{__automake}
70ad426d 182%configure \
3c255572 183 %{!?with_static_libs:--disable-static} \
b21f9f89
JB
184 --enable-gtk-doc \
185 --with-html-dir=%{_gtkdocdir}
70ad426d 186
187%{__make}
188
189%install
190rm -rf $RPM_BUILD_ROOT
4b95bf2d 191install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}/gconf/{schemas,gconf.xml.system},%{_datadir}/GConf/gsettings}
70ad426d 192
193%{__make} install \
f116bc09
TP
194 DESTDIR=$RPM_BUILD_ROOT
195
6a75158a 196cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
9c0e1d9c 197cp examples/*.schemas $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
6a75158a 198
70ad426d 199%find_lang %{name}
200
9a1becbf 201# no *.{la,a} for modules - shut up check-files
4ce4c869 202%{__rm} $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 253%dir %{_datadir}/GConf
4b95bf2d 254%dir %{_datadir}/GConf/gsettings
b21f9f89 255%dir %{_datadir}/GConf/schema
3033af1d 256%{_datadir}/sgml/gconf
d2ac8ef7
PZ
257%{_mandir}/man1/gsettings-data-convert.1*
258%{_mandir}/man1/gsettings-schema-convert.1*
70ad426d 259
10040bca 260%files libs -f %{name}.lang
e1a327be 261%defattr(644,root,root,755)
10040bca
JB
262%attr(755,root,root) %{_libdir}/libgconf-2.so.*.*.*
263%attr(755,root,root) %ghost %{_libdir}/libgconf-2.so.4
264%attr(755,root,root) %{_bindir}/gconftool-2
265%{_mandir}/man1/gconftool-2.1*
d2ac8ef7 266%{_libdir}/girepository-1.0/GConf-2.0.typelib
e1a327be 267
70ad426d 268%files devel
269%defattr(644,root,root,755)
c81f7abe 270%doc ChangeLog TODO
af8d9212
JB
271%attr(755,root,root) %{_libdir}/libgconf-2.so
272%{_libdir}/libgconf-2.la
e00537d0 273%{_includedir}/gconf2
af8d9212
JB
274%{_aclocaldir}/gconf-2.m4
275%{_pkgconfigdir}/gconf-2.0.pc
d2ac8ef7 276%{_datadir}/gir-1.0/GConf-2.0.gir
70ad426d 277
3c255572 278%if %{with static_libs}
70ad426d 279%files static
280%defattr(644,root,root,755)
af8d9212 281%{_libdir}/libgconf-2.a
23f0fa1e 282%endif
b21f9f89 283
10040bca
JB
284%files apidocs
285%defattr(644,root,root,755)
286%{_gtkdocdir}/gconf
287
6a75158a
MB
288%files examples
289%defattr(644,root,root,755)
290%{_examplesdir}/%{name}-%{version}
291
b21f9f89
JB
292%files backend-evoldap
293%defattr(644,root,root,755)
294%doc backends/README.evoldap
295%attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-evoldap.so
296%{_datadir}/GConf/schema/evoldap.schema
297%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/2/evoldap.conf
This page took 0.119492 seconds and 4 git commands to generate.