]>
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 |
9c0e1d9c MB |
13 | Version: 2.22.0 |
14 | Release: 1 | |
af8d9212 | 15 | License: LGPL v2+ |
70ad426d | 16 | Group: X11/Applications |
9c0e1d9c MB |
17 | Source0: http://ftp.gnome.org/pub/GNOME/sources/GConf/2.22/GConf-%{version}.tar.bz2 |
18 | # Source0-md5: a56c043afeb1052abaf45407409b0331 | |
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/ |
6a75158a | 23 | BuildRequires: ORBit2-devel >= 1:2.14.9 |
a948e6a1 | 24 | BuildRequires: autoconf |
9c0e1d9c | 25 | BuildRequires: automake >= 1:1.9 |
410c58ef | 26 | BuildRequires: gettext-devel |
9c0e1d9c MB |
27 | BuildRequires: glib2-devel >= 1:2.15.6 |
28 | BuildRequires: gtk+2-devel >= 2:2.12.8 | |
8880401b | 29 | BuildRequires: gtk-doc >= 1.8 |
6a75158a | 30 | BuildRequires: intltool >= 0.36.2 |
a948e6a1 | 31 | BuildRequires: libtool |
6a75158a | 32 | BuildRequires: libxml2-devel >= 1:2.6.30 |
507c7593 | 33 | BuildRequires: openldap-devel >= 2.4.6 |
b057dd54 | 34 | BuildRequires: perl-base |
70ad426d | 35 | BuildRequires: pkgconfig |
82fbd684 | 36 | BuildRequires: rpmbuild(macros) >= 1.197 |
46fa04c1 | 37 | Requires(post): findutils |
6a75158a | 38 | Requires: ORBit2 >= 1:2.14.9 |
9c0e1d9c | 39 | Requires: glib2 >= 1:2.15.6 |
af014341 | 40 | Obsoletes: GConf2-xinitrc |
797e7b9f | 41 | Obsoletes: libGConf2 |
1a67de6d | 42 | # sr@Latn vs. sr@latin |
43 | Conflicts: glibc-misc < 6:2.7 | |
b057dd54 | 44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
70ad426d | 45 | |
70ad426d | 46 | %description |
47 | GConf2 is a configuration database system, functionally similar to the | |
edd1571b JB |
48 | Windows registry but lots better. :-) It's being written for the |
49 | GNOME2 desktop but does not require GNOME2; configure should notice if | |
50 | GNOME2 is not installed and compile the basic GConf2 library anyway. | |
70ad426d | 51 | |
41d5538c | 52 | %description -l pl.UTF-8 |
70ad426d | 53 | GConf2 jest systemem konfiguracyjnej bazy danych, funkcjonalnie |
54 | podobnej do rejestru Windows, ale o wiele lepszej :-). Jest pisana dla | |
edd1571b | 55 | desktopu GNOME2, ale nie wymaga GNOME2; skrypt configure powinien |
41d5538c | 56 | wykryć brak GNOME2 i skompilować tylko wersję podstawową GConf2. |
70ad426d | 57 | |
41d5538c JR |
58 | %description -l pt_BR.UTF-8 |
59 | Gconf2 é o sistema de banco de dados de configuração do GNOME2. | |
70ad426d | 60 | |
e1a327be MB |
61 | %package apidocs |
62 | Summary: GConf2 API documentation | |
eec5f56a | 63 | Summary(pl.UTF-8): Dokumentacja API GConf2 |
e1a327be MB |
64 | Group: Documentation |
65 | Requires: gtk-doc-common | |
66 | ||
67 | %description apidocs | |
68 | GConf2 API documentation. | |
69 | ||
41d5538c | 70 | %description apidocs -l pl.UTF-8 |
e1a327be MB |
71 | Dokumentacja API GConf2. |
72 | ||
70ad426d | 73 | %package devel |
74 | Summary: GConf2 includes, etc | |
eec5f56a ER |
75 | Summary(pl.UTF-8): Pliki nagłówkowe GConf2 |
76 | Summary(pt_BR.UTF-8): Sistema de Configuração do GNOME2 - arquivos para desenvolvimento | |
70ad426d | 77 | Group: X11/Development/Libraries |
d7220fca | 78 | Requires: %{name} = %{version}-%{release} |
6a75158a | 79 | Requires: ORBit2-devel >= 1:2.14.9 |
6a75158a | 80 | Requires: libxml2-devel >= 1:2.6.30 |
797e7b9f | 81 | Obsoletes: libGConf2-devel |
70ad426d | 82 | |
83 | %description devel | |
84 | GConf2 includes etc. | |
85 | ||
41d5538c JR |
86 | %description devel -l pl.UTF-8 |
87 | Pliki nagłówkowe GConf2. | |
70ad426d | 88 | |
41d5538c JR |
89 | %description devel -l pt_BR.UTF-8 |
90 | Sistema de Configuração do GNOME2 - arquivos para desenvolvimento. | |
70ad426d | 91 | |
92 | %package static | |
93 | Summary: GConf2 static libraries | |
eec5f56a ER |
94 | Summary(pl.UTF-8): Biblioteki statyczne GConf2 |
95 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com gconf2 | |
70ad426d | 96 | Group: X11/Development/Libraries |
d7220fca | 97 | Requires: %{name}-devel = %{version}-%{release} |
70ad426d | 98 | |
99 | %description static | |
100 | GConf2 static libraries. | |
101 | ||
41d5538c | 102 | %description static -l pl.UTF-8 |
70ad426d | 103 | Biblioteki statyczne GConf2. |
104 | ||
41d5538c JR |
105 | %description static -l pt_BR.UTF-8 |
106 | Bibliotecas estáticas para desenvolvimento com gconf | |
70ad426d | 107 | |
6a75158a MB |
108 | %package examples |
109 | Summary: GConf2 - example programs | |
110 | Summary(pl.UTF-8): GConf2 - przykładowe programy | |
111 | Group: X11/Development/Libraries | |
112 | Requires: %{name}-devel = %{version}-%{release} | |
113 | ||
114 | %description examples | |
115 | GConf2 - example programs. | |
116 | ||
117 | %description examples -l pl.UTF-8 | |
118 | GConf2 - przykładowe programy. | |
119 | ||
b21f9f89 JB |
120 | %package backend-evoldap |
121 | Summary: Evolution Data Sources LDAP backend for GConf | |
eec5f56a | 122 | Summary(pl.UTF-8): Backend LDAP źródeł danych Evolution dla GConfa |
b21f9f89 JB |
123 | Group: Libraries |
124 | Requires: %{name} = %{version}-%{release} | |
125 | ||
126 | %description backend-evoldap | |
127 | This is a special-purpose backend for GConf which enables default mail | |
128 | accounts, addressbooks and calendars for Evolution to be configured | |
129 | using each user's LDAP entry. By setting each user's mail address, | |
130 | incoming/outgoing mail server addresses and addressbook/calendar | |
131 | addresses in the user's LDAP entry, Evolution will be automatically | |
132 | configured to use these addresses. | |
133 | ||
41d5538c JR |
134 | %description backend-evoldap -l pl.UTF-8 |
135 | To jest backend GConfa specjalnego przeznaczenia, pozwalający na | |
136 | konfigurowanie domyślnych kont pocztowych, książek adresowych i | |
137 | kalendarzy dla Evolution przy użyciu wpisu LDAP dla każdego | |
138 | użytkownika. Poprzez ustawienie każdemu użytkownikowi adres pocztowy, | |
139 | adresy serwerów poczty przychodzącej/wychodzącej oraz adresy książki | |
b21f9f89 | 140 | adresowej i kalendarza w jego wpisie LDAP, Evolution zostanie |
41d5538c | 141 | automatycznie 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 | |
166 | rm -rf $RPM_BUILD_ROOT | |
6a75158a | 167 | install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}/gconf/schemas} |
70ad426d | 168 | |
169 | %{__make} install \ | |
f116bc09 TP |
170 | DESTDIR=$RPM_BUILD_ROOT |
171 | ||
6a75158a | 172 | cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
9c0e1d9c | 173 | cp 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 |
180 | rm -f $RPM_BUILD_ROOT%{_libdir}/GConf2/lib*.{la,a} | |
181 | ||
70ad426d | 182 | %clean |
183 | rm -rf $RPM_BUILD_ROOT | |
184 | ||
af014341 | 185 | %post |
186 | /sbin/ldconfig | |
187 | umask 022 | |
188 | for 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 | |
197 | done | |
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 |