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