]> git.pld-linux.org Git - packages/GConf2.git/blob - GConf2.spec
- updated to 3.2.6
[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:        3.2.6
14 Release:        1
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 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-devel
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 Obsoletes:      GConf2-xinitrc
48 Obsoletes:      libGConf2
49 # sr@Latn vs. sr@latin
50 Conflicts:      glibc-misc < 6:2.7
51 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52
53 %description
54 GConf2 is a configuration database system, functionally similar to the
55 Windows registry but lots better. :-) It's being written for the
56 GNOME2 desktop but does not require GNOME2; configure should notice if
57 GNOME2 is not installed and compile the basic GConf2 library anyway.
58
59 %description -l pl.UTF-8
60 GConf2 jest systemem konfiguracyjnej bazy danych, funkcjonalnie
61 podobnej do rejestru Windows, ale o wiele lepszej :-). Jest pisana dla
62 desktopu GNOME2, ale nie wymaga GNOME2; skrypt configure powinien
63 wykryć brak GNOME2 i skompilować tylko wersję podstawową GConf2.
64
65 %description -l pt_BR.UTF-8
66 Gconf2 é o sistema de banco de dados de configuração do GNOME2.
67
68 %package libs
69 Summary:        GConf2 shared library
70 Summary(pl.UTF-8):      Biblioteka współdzielona GConf2
71 Group:          Libraries
72 Requires:       ORBit2 >= 1:2.14.9
73 Requires:       glib2 >= 1:2.31.0
74 Conflicts:      GConf2 < 2.24.0-2
75
76 %description libs
77 GConf2 shared library and gconftool utility (used both for
78 configuration management and development purposes).
79
80 %description libs -l pl.UTF-8
81 Biblioteka współdzielona GConf2 oraz narzędzie gconftool (używane
82 zarówno przy zarządzaniu konfiguracją, jak i tworzeniu
83 oprogramowania).
84
85 %package devel
86 Summary:        Header files for GConf2 library
87 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki GConf2
88 Summary(pt_BR.UTF-8):   Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
89 Group:          Development/Libraries
90 Requires:       %{name}-libs = %{version}-%{release}
91 Requires:       ORBit2-devel >= 1:2.14.9
92 Requires:       dbus-devel >= 1.0.0
93 Requires:       glib2-devel >= 1:2.31.0
94 Requires:       libxml2-devel >= 1:2.6.30
95 Obsoletes:      libGConf2-devel
96
97 %description devel
98 Header files for GConf2 library.
99
100 %description devel -l pl.UTF-8
101 Pliki nagłówkowe biblioteki GConf2.
102
103 %description devel -l pt_BR.UTF-8
104 Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
105
106 %package static
107 Summary:        GConf2 static libraries
108 Summary(pl.UTF-8):      Biblioteki statyczne GConf2
109 Summary(pt_BR.UTF-8):   Bibliotecas estáticas para desenvolvimento com gconf2
110 Group:          Development/Libraries
111 Requires:       %{name}-devel = %{version}-%{release}
112
113 %description static
114 GConf2 static libraries.
115
116 %description static -l pl.UTF-8
117 Biblioteki statyczne GConf2.
118
119 %description static -l pt_BR.UTF-8
120 Bibliotecas estáticas para desenvolvimento com gconf
121
122 %package apidocs
123 Summary:        GConf2 API documentation
124 Summary(pl.UTF-8):      Dokumentacja API GConf2
125 Group:          Documentation
126 Requires:       gtk-doc-common
127
128 %description apidocs
129 GConf2 API documentation.
130
131 %description apidocs -l pl.UTF-8
132 Dokumentacja API GConf2.
133
134 %package examples
135 Summary:        GConf2 - example programs
136 Summary(pl.UTF-8):      GConf2 - przykładowe programy
137 Group:          Development/Libraries
138 Requires:       %{name}-devel = %{version}-%{release}
139
140 %description examples
141 GConf2 - example programs.
142
143 %description examples -l pl.UTF-8
144 GConf2 - przykładowe programy.
145
146 %package backend-evoldap
147 Summary:        Evolution Data Sources LDAP backend for GConf
148 Summary(pl.UTF-8):      Backend LDAP źródeł danych Evolution dla GConfa
149 Group:          Libraries
150 Requires:       %{name} = %{version}-%{release}
151
152 %description backend-evoldap
153 This is a special-purpose backend for GConf which enables default mail
154 accounts, addressbooks and calendars for Evolution to be configured
155 using each user's LDAP entry. By setting each user's mail address,
156 incoming/outgoing mail server addresses and addressbook/calendar
157 addresses in the user's LDAP entry, Evolution will be automatically
158 configured to use these addresses.
159
160 %description backend-evoldap -l pl.UTF-8
161 To jest backend GConfa specjalnego przeznaczenia, pozwalający na
162 konfigurowanie domyślnych kont pocztowych, książek adresowych i
163 kalendarzy dla Evolution przy użyciu wpisu LDAP dla każdego
164 użytkownika. Poprzez ustawienie każdemu użytkownikowi adres pocztowy,
165 adresy serwerów poczty przychodzącej/wychodzącej oraz adresy książki
166 adresowej i kalendarza w jego wpisie LDAP, Evolution zostanie
167 automatycznie skonfigurowane do używania tych adresów.
168
169 %prep
170 %setup -q -n GConf-%{version}
171 %patch0 -p1
172 %patch1 -p1
173
174 %build
175 %{__gtkdocize}
176 %{__glib_gettextize}
177 %{__intltoolize}
178 %{__libtoolize}
179 %{__aclocal}
180 %{__autoheader}
181 %{__autoconf}
182 %{__automake}
183 %configure \
184         --disable-silent-rules \
185         %{!?with_static_libs:--disable-static} \
186         --enable-gtk-doc \
187         --with-html-dir=%{_gtkdocdir}
188
189 %{__make}
190
191 %install
192 rm -rf $RPM_BUILD_ROOT
193 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}/gconf/{schemas,gconf.xml.system},%{_datadir}/GConf/gsettings}
194
195 %{__make} install \
196         DESTDIR=$RPM_BUILD_ROOT
197
198 cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
199 cp examples/*.schemas $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
200
201 %find_lang %{name}
202
203 # no *.{la,a} for modules - shut up check-files
204 %{__rm} $RPM_BUILD_ROOT%{_libdir}/{GConf2,gio/modules}/lib*.{la,a}
205
206 %clean
207 rm -rf $RPM_BUILD_ROOT
208
209 %post
210 umask 022
211 for GCONF_DIR in %{_sysconfdir}/gconf/gconf.xml.mandatory %{_sysconfdir}/gconf/gconf.xml.defaults ;
212     do
213     GCONF_TREE=$GCONF_DIR/%gconf-tree.xml
214     if [ ! -f "$GCONF_TREE" ]; then
215         gconf-merge-tree "$GCONF_DIR"
216         chmod 644 "$GCONF_TREE"
217         find "$GCONF_DIR" -mindepth 1 -maxdepth 1 -type d -exec rm -rf \{\} \;
218         rm -f "$GCONF_DIR/%gconf.xml"
219     fi
220 done
221
222 %{_bindir}/gio-querymodules %{_libdir}/gio/modules
223
224 %postun
225 umask 022
226 %{_bindir}/gio-querymodules %{_libdir}/gio/modules
227 exit 0
228
229 %post   libs -p /sbin/ldconfig
230 %postun libs -p /sbin/ldconfig
231
232 %files
233 %defattr(644,root,root,755)
234 %doc AUTHORS NEWS README
235 %attr(755,root,root) %{_bindir}/gconf-merge-tree
236 %attr(755,root,root) %{_bindir}/gsettings-data-convert
237 %attr(755,root,root) %{_bindir}/gsettings-schema-convert
238 %attr(755,root,root) %{_libexecdir}/gconf-defaults-mechanism
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.092658 seconds and 4 git commands to generate.