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