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