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