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