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