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