]> git.pld-linux.org Git - packages/GConf2.git/blob - GConf2.spec
- x32 rebuild
[packages/GConf2.git] / GConf2.spec
1 # TODO:
2 # - update documentation to follow changes introduced in Patch0
3 #
4 # Conditional build:
5 %bcond_without  static_libs     # don't build static libraries
6
7 Summary:        GNOME2 configuration database system
8 Summary(pl.UTF-8):      System konfiguracyjnej bazy danych dla GNOME 2
9 Summary(pt_BR.UTF-8):   Sistema de Configuração do GNOME 2
10 Summary(ru.UTF-8):      Система конфигурации GNOME 2
11 Name:           GConf2
12 Version:        3.2.6
13 Release:        3
14 License:        LGPL v2+
15 Group:          X11/Applications
16 Source0:        http://ftp.gnome.org/pub/GNOME/sources/GConf/3.2/GConf-%{version}.tar.xz
17 # Source0-md5:  2b16996d0e4b112856ee5c59130e822c
18 Patch0:         %{name}-NO_MAJOR_VERSION.patch
19 Patch1:         %{name}-reload.patch
20 Patch2:         workaround-crash.patch
21 URL:            http://www.gnome.org/
22 BuildRequires:  ORBit2-devel >= 1:2.14.9
23 BuildRequires:  autoconf >= 2.60
24 BuildRequires:  automake >= 1:1.9
25 BuildRequires:  dbus-devel >= 1.0.0
26 BuildRequires:  dbus-glib-devel >= 0.74
27 BuildRequires:  docbook-dtd412-xml
28 BuildRequires:  gettext-tools
29 BuildRequires:  glib2-devel >= 1:2.31.0
30 BuildRequires:  gobject-introspection-devel >= 0.10.0
31 BuildRequires:  gtk+3-devel >= 3.0.0
32 BuildRequires:  gtk-doc >= 1.8
33 BuildRequires:  intltool >= 0.40.0
34 BuildRequires:  libtool
35 BuildRequires:  libxml2-devel >= 1:2.6.30
36 BuildRequires:  openldap-devel >= 2.4.6
37 BuildRequires:  perl-base
38 BuildRequires:  pkgconfig
39 BuildRequires:  polkit-devel >= 0.92
40 BuildRequires:  rpm-pythonprov
41 BuildRequires:  rpmbuild(macros) >= 1.197
42 BuildRequires:  tar >= 1:1.22
43 BuildRequires:  xz
44 Requires(post): findutils
45 Requires(post,postun):  glib2 >= 1:2.31.0
46 Requires:       %{name}-libs = %{version}-%{release}
47 Requires:       psmisc >= 20.1-2
48 Obsoletes:      GConf2-xinitrc
49 Obsoletes:      libGConf2
50 # sr@Latn vs. sr@latin
51 Conflicts:      glibc-misc < 6:2.7
52 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53
54 %description
55 GConf2 is a configuration database system, functionally similar to the
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.
59
60 %description -l pl.UTF-8
61 GConf2 jest systemem konfiguracyjnej bazy danych, funkcjonalnie
62 podobnej do rejestru Windows, ale o wiele lepszej :-). Jest pisana dla
63 desktopu GNOME2, ale nie wymaga GNOME2; skrypt configure powinien
64 wykryć brak GNOME2 i skompilować tylko wersję podstawową GConf2.
65
66 %description -l pt_BR.UTF-8
67 Gconf2 é o sistema de banco de dados de configuração do GNOME2.
68
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
74 Requires:       glib2 >= 1:2.31.0
75 Conflicts:      GConf2 < 2.24.0-2
76
77 %description libs
78 GConf2 shared library and gconftool utility (used both for
79 configuration management and development purposes).
80
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).
85
86 %package devel
87 Summary:        Header files for GConf2 library
88 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki GConf2
89 Summary(pt_BR.UTF-8):   Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
90 Group:          Development/Libraries
91 Requires:       %{name}-libs = %{version}-%{release}
92 Requires:       ORBit2-devel >= 1:2.14.9
93 Requires:       dbus-devel >= 1.0.0
94 Requires:       glib2-devel >= 1:2.31.0
95 Requires:       libxml2-devel >= 1:2.6.30
96 Obsoletes:      libGConf2-devel
97
98 %description devel
99 Header files for GConf2 library.
100
101 %description devel -l pl.UTF-8
102 Pliki nagłówkowe biblioteki GConf2.
103
104 %description devel -l pt_BR.UTF-8
105 Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
106
107 %package static
108 Summary:        GConf2 static libraries
109 Summary(pl.UTF-8):      Biblioteki statyczne GConf2
110 Summary(pt_BR.UTF-8):   Bibliotecas estáticas para desenvolvimento com gconf2
111 Group:          Development/Libraries
112 Requires:       %{name}-devel = %{version}-%{release}
113
114 %description static
115 GConf2 static libraries.
116
117 %description static -l pl.UTF-8
118 Biblioteki statyczne GConf2.
119
120 %description static -l pt_BR.UTF-8
121 Bibliotecas estáticas para desenvolvimento com gconf
122
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
135 %package examples
136 Summary:        GConf2 - example programs
137 Summary(pl.UTF-8):      GConf2 - przykładowe programy
138 Group:          Development/Libraries
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
147 %package backend-evoldap
148 Summary:        Evolution Data Sources LDAP backend for GConf
149 Summary(pl.UTF-8):      Backend LDAP źródeł danych Evolution dla GConfa
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
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
167 adresowej i kalendarza w jego wpisie LDAP, Evolution zostanie
168 automatycznie skonfigurowane do używania tych adresów.
169
170 %prep
171 %setup -q -n GConf-%{version}
172 %patch0 -p1
173 %patch1 -p1
174 %patch2 -p1
175
176 %build
177 %{__gtkdocize}
178 %{__glib_gettextize}
179 %{__intltoolize}
180 %{__libtoolize}
181 %{__aclocal}
182 %{__autoheader}
183 %{__autoconf}
184 %{__automake}
185 %configure \
186         --disable-silent-rules \
187         %{!?with_static_libs:--disable-static} \
188         --enable-gtk-doc \
189         --with-html-dir=%{_gtkdocdir}
190
191 %{__make}
192
193 %install
194 rm -rf $RPM_BUILD_ROOT
195 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}/gconf/{schemas,gconf.xml.system},%{_datadir}/GConf/gsettings}
196
197 %{__make} install \
198         DESTDIR=$RPM_BUILD_ROOT
199
200 cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
201 cp examples/*.schemas $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
202
203 %find_lang %{name}
204
205 # no *.{la,a} for modules - shut up check-files
206 %{__rm} $RPM_BUILD_ROOT%{_libdir}/{GConf2,gio/modules}/lib*.{la,a}
207
208 %clean
209 rm -rf $RPM_BUILD_ROOT
210
211 %post
212 umask 022
213 for GCONF_DIR in %{_sysconfdir}/gconf/gconf.xml.mandatory %{_sysconfdir}/gconf/gconf.xml.defaults ;
214     do
215     GCONF_TREE=$GCONF_DIR/%gconf-tree.xml
216     if [ ! -f "$GCONF_TREE" ]; then
217         gconf-merge-tree "$GCONF_DIR"
218         chmod 644 "$GCONF_TREE"
219         find "$GCONF_DIR" -mindepth 1 -maxdepth 1 -type d -exec rm -rf \{\} \;
220         rm -f "$GCONF_DIR/%gconf.xml"
221     fi
222 done
223
224 %{_bindir}/gio-querymodules %{_libdir}/gio/modules
225
226 %postun
227 umask 022
228 %{_bindir}/gio-querymodules %{_libdir}/gio/modules
229 exit 0
230
231 %post   libs -p /sbin/ldconfig
232 %postun libs -p /sbin/ldconfig
233
234 %files
235 %defattr(644,root,root,755)
236 %doc AUTHORS NEWS README
237 %attr(755,root,root) %{_bindir}/gconf-merge-tree
238 %attr(755,root,root) %{_bindir}/gsettings-data-convert
239 %attr(755,root,root) %{_bindir}/gsettings-schema-convert
240 %attr(755,root,root) %{_libexecdir}/gconf-defaults-mechanism
241 %attr(755,root,root) %{_libexecdir}/gconfd-2
242 %dir %{_libdir}/GConf2
243 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-oldxml.so
244 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-xml.so
245 %attr(755,root,root) %{_libdir}/gio/modules/libgsettingsgconfbackend.so
246 /etc/dbus-1/system.d/org.gnome.GConf.Defaults.conf
247 %{_sysconfdir}/xdg/autostart/gsettings-data-convert.desktop
248 %dir %{_sysconfdir}/gconf
249 %dir %{_sysconfdir}/gconf/2
250 %{_sysconfdir}/gconf/gconf.xml.*
251 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/path
252 %dir %{_sysconfdir}/gconf/schemas
253 %{_datadir}/dbus-1/services/org.gnome.GConf.service
254 %{_datadir}/dbus-1/system-services/org.gnome.GConf.Defaults.service
255 %{_datadir}/polkit-1/actions/org.gnome.gconf.defaults.policy
256 %dir %{_datadir}/GConf
257 %dir %{_datadir}/GConf/gsettings
258 %dir %{_datadir}/GConf/schema
259 %{_datadir}/sgml/gconf
260 %{_mandir}/man1/gsettings-data-convert.1*
261 %{_mandir}/man1/gsettings-schema-convert.1*
262
263 %files libs -f %{name}.lang
264 %defattr(644,root,root,755)
265 %attr(755,root,root) %{_libdir}/libgconf-2.so.*.*.*
266 %attr(755,root,root) %ghost %{_libdir}/libgconf-2.so.4
267 %attr(755,root,root) %{_bindir}/gconftool-2
268 %{_mandir}/man1/gconftool-2.1*
269 %{_libdir}/girepository-1.0/GConf-2.0.typelib
270
271 %files devel
272 %defattr(644,root,root,755)
273 %doc ChangeLog TODO
274 %attr(755,root,root) %{_libdir}/libgconf-2.so
275 %{_libdir}/libgconf-2.la
276 %{_includedir}/gconf2
277 %{_aclocaldir}/gconf-2.m4
278 %{_pkgconfigdir}/gconf-2.0.pc
279 %{_datadir}/gir-1.0/GConf-2.0.gir
280
281 %if %{with static_libs}
282 %files static
283 %defattr(644,root,root,755)
284 %{_libdir}/libgconf-2.a
285 %endif
286
287 %files apidocs
288 %defattr(644,root,root,755)
289 %{_gtkdocdir}/gconf
290
291 %files examples
292 %defattr(644,root,root,755)
293 %{_examplesdir}/%{name}-%{version}
294
295 %files backend-evoldap
296 %defattr(644,root,root,755)
297 %doc backends/README.evoldap
298 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-evoldap.so
299 %{_datadir}/GConf/schema/evoldap.schema
300 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/2/evoldap.conf
This page took 6.005593 seconds and 3 git commands to generate.