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