]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | %bcond_without kerberos5 # build without kerberos5 support | |
5 | %bcond_without ldap # build without ldap support | |
6 | %bcond_without static_libs # do not build static libs | |
7 | %bcond_without vala # do not build Vala API | |
8 | ||
9 | %define basever 3.8 | |
10 | %define apiver 1.2 | |
11 | %define apiver2 3.0 | |
12 | Summary: Evolution data server | |
13 | Summary(pl.UTF-8): Serwer danych Evolution | |
14 | Name: evolution-data-server | |
15 | Version: 3.8.4 | |
16 | Release: 1 | |
17 | License: LGPL v2+ | |
18 | Group: X11/Libraries | |
19 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/3.8/%{name}-%{version}.tar.xz | |
20 | # Source0-md5: 49ce0f209a4d293099fb1c17001f7290 | |
21 | URL: http://www.gnome.org/projects/evolution/ | |
22 | BuildRequires: autoconf >= 2.62 | |
23 | BuildRequires: automake >= 1:1.11 | |
24 | BuildRequires: docbook-dtd412-xml | |
25 | BuildRequires: gcr-devel >= 3.4.0 | |
26 | BuildRequires: gettext-devel >= 0.18.1 | |
27 | BuildRequires: glib2-devel >= 1:2.34.0 | |
28 | BuildRequires: gnome-common >= 2.20.0 | |
29 | BuildRequires: gnome-online-accounts-devel >= 3.5.0 | |
30 | BuildRequires: gobject-introspection-devel >= 0.10.0 | |
31 | BuildRequires: gperf | |
32 | BuildRequires: gtk+3-devel >= 3.2.0 | |
33 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.14} | |
34 | %{?with_kerberos5:BuildRequires: heimdal-devel} | |
35 | BuildRequires: intltool >= 0.40.0 | |
36 | BuildRequires: libgdata-devel >= 0.10.0 | |
37 | BuildRequires: libgweather-devel >= 3.5.0 | |
38 | BuildRequires: libical-devel >= 0.43 | |
39 | BuildRequires: liboauth-devel >= 0.9.4 | |
40 | BuildRequires: libsecret-devel >= 0.5 | |
41 | BuildRequires: libsoup-devel >= 2.40.3 | |
42 | BuildRequires: libstdc++-devel | |
43 | BuildRequires: libtool >= 2:2.2 | |
44 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
45 | BuildRequires: nspr-devel | |
46 | BuildRequires: nss-devel | |
47 | %{?with_ldap:BuildRequires: openldap-evolution-devel >= 2.4.6} | |
48 | BuildRequires: openssl-devel | |
49 | BuildRequires: pkgconfig | |
50 | BuildRequires: rpmbuild(macros) >= 1.304 | |
51 | BuildRequires: sed >= 4.0 | |
52 | BuildRequires: sqlite3-devel >= 3.5 | |
53 | BuildRequires: tar >= 1:1.22 | |
54 | %{?with_vala:BuildRequires: vala >= 2:0.14.0} | |
55 | BuildRequires: xz | |
56 | BuildRequires: zlib-devel | |
57 | Requires(post,postun): glib2 >= 1:2.34.0 | |
58 | Requires: %{name}-libs = %{version}-%{release} | |
59 | # sr@Latn vs. sr@latin | |
60 | Conflicts: glibc-misc < 6:2.7 | |
61 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
62 | ||
63 | %define schemadir /usr/share/openldap/schema | |
64 | ||
65 | %description | |
66 | The Evolution data server for the calendar and addressbook. | |
67 | ||
68 | %description -l pl.UTF-8 | |
69 | Serwer danych Evolution dla kalendarza i książki adresowej. | |
70 | ||
71 | %package -n openldap-schema-evolutionperson | |
72 | Summary: evolutionperson LDAP schema | |
73 | Summary(pl.UTF-8): Schemat LDAP evolutionperson | |
74 | Group: Networking/Daemons | |
75 | Requires(post,postun): sed >= 4.0 | |
76 | Requires: openldap-servers | |
77 | %if "%{_rpmversion}" >= "5" | |
78 | BuildArch: noarch | |
79 | %endif | |
80 | ||
81 | %description -n openldap-schema-evolutionperson | |
82 | This package contains evolutionperson.schema for openldap server. | |
83 | ||
84 | %description -n openldap-schema-evolutionperson -l pl.UTF-8 | |
85 | Ten pakiet zawiera evolutionperson.schema dla serwera openldap. | |
86 | ||
87 | %package libs | |
88 | Summary: Evolution Data Server library | |
89 | Summary(pl.UTF-8): Biblioteka Evolution Data Server | |
90 | Group: X11/Libraries | |
91 | Requires: libsoup >= 2.40.3 | |
92 | ||
93 | %description libs | |
94 | This package contains Evolution Data Server library. | |
95 | ||
96 | %description libs -l pl.UTF-8 | |
97 | Ten pakiet zawiera bibliotekę Evolution Data Server. | |
98 | ||
99 | %package devel | |
100 | Summary: Evolution data server development files | |
101 | Summary(pl.UTF-8): Pliki programistyczne serwera danych evolution | |
102 | Group: X11/Development/Libraries | |
103 | Requires: %{name}-libs = %{version}-%{release} | |
104 | Requires: glib2-devel >= 1:2.34.0 | |
105 | Requires: gtk+3-devel >= 3.2.0 | |
106 | %{?with_kerberos5:Requires: heimdal-devel} | |
107 | Requires: libgdata-devel >= 0.10.0 | |
108 | Requires: libical-devel >= 0.43 | |
109 | Requires: libsoup-devel >= 2.40.3 | |
110 | Requires: libxml2-devel >= 1:2.6.31 | |
111 | Requires: nspr-devel | |
112 | Requires: nss-devel | |
113 | Requires: sqlite3-devel | |
114 | ||
115 | %description devel | |
116 | This package contains the files necessary to develop applications | |
117 | using Evolution's data server libraries. | |
118 | ||
119 | %description devel -l pl.UTF-8 | |
120 | Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji | |
121 | korzystających z bibliotek serwera danych Evolution. | |
122 | ||
123 | %package static | |
124 | Summary: Evolution data server static libraries | |
125 | Summary(pl.UTF-8): Statyczne biblioteki serwera danych Evolution | |
126 | Group: X11/Development/Libraries | |
127 | Requires: %{name}-devel = %{version}-%{release} | |
128 | ||
129 | %description static | |
130 | Evolution data server static libraries. | |
131 | ||
132 | %description static -l pl.UTF-8 | |
133 | Statyczne biblioteki serwera danych Evolution. | |
134 | ||
135 | %package apidocs | |
136 | Summary: Evolution data server API documentation | |
137 | Summary(pl.UTF-8): Dokumentacja API serwera danych Evolution | |
138 | Group: Documentation | |
139 | Requires: gtk-doc-common | |
140 | ||
141 | %description apidocs | |
142 | Evolution data server API documentation. | |
143 | ||
144 | %description apidocs -l pl.UTF-8 | |
145 | Dokumentacja API serwera danych Evolution. | |
146 | ||
147 | %package -n vala-evolution-data-server | |
148 | Summary: Evolution data server API for Vala language | |
149 | Summary(pl.UTF-8): API serwera danych Evolution dla języka Vala | |
150 | Group: Development/Libraries | |
151 | Requires: %{name}-devel = %{version}-%{release} | |
152 | ||
153 | %description -n vala-evolution-data-server | |
154 | Evolution data server API for Vala language. | |
155 | ||
156 | %description -n vala-evolution-data-server -l pl.UTF-8 | |
157 | API serwera danych Evolution dla języka Vala. | |
158 | ||
159 | %prep | |
160 | %setup -q | |
161 | ||
162 | # kill -L$withval/lib | |
163 | %{__sed} -i -e 's/DB_LIBS="-L[^ "]* /DB_LIBS="/;s/ICONV_LIBS="[^ "]*/ICONV_LIBS="/' configure.ac | |
164 | ||
165 | %build | |
166 | %{__gtkdocize} | |
167 | %{__intltoolize} | |
168 | %{__libtoolize} | |
169 | %{__aclocal} -I m4 | |
170 | %{__autoheader} | |
171 | %{__autoconf} | |
172 | %{__automake} | |
173 | ||
174 | # Set LIBS so that configure will be able to link with static LDAP libraries, | |
175 | # which depend on Cyrus SASL and OpenSSL. | |
176 | if pkg-config openssl ; then | |
177 | LIBS="-lsasl2 `pkg-config --libs openssl`" | |
178 | else | |
179 | LIBS="-lsasl2 -lssl -lcrypto" | |
180 | fi | |
181 | export LIBS | |
182 | ||
183 | %configure \ | |
184 | %{?with_kerberos5:--with-krb5=%{_prefix} --with-krb5-libs=%{_libdir}} \ | |
185 | %{!?with_kerberos5:--with-krb5=no} \ | |
186 | %{?with_ldap:--with-openldap=%{_libdir}/evolution-openldap} \ | |
187 | %{?with_ldap:--with-static-ldap=yes} \ | |
188 | %{!?with_ldap:--with-openldap=no} \ | |
189 | --enable-smime \ | |
190 | --enable-ipv6 \ | |
191 | --enable-nntp \ | |
192 | %{__enable_disable apidocs gtk-doc} \ | |
193 | %{__enable_disable static_libs static} \ | |
194 | %{__enable_disable vala vala-bindings} \ | |
195 | --disable-uoa \ | |
196 | --with-libdb=%{_libdir} \ | |
197 | --with-html-dir=%{_gtkdocdir} \ | |
198 | --disable-silent-rules | |
199 | ||
200 | %{__make} | |
201 | ||
202 | %install | |
203 | rm -rf $RPM_BUILD_ROOT | |
204 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name}-%{basever} | |
205 | install -d $RPM_BUILD_ROOT%{schemadir} | |
206 | ||
207 | %{__make} install \ | |
208 | DESTDIR=$RPM_BUILD_ROOT \ | |
209 | HTML_DIR=%{_gtkdocdir} | |
210 | ||
211 | install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir} | |
212 | ||
213 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/{camel-providers,calendar-backends,addressbook-backends,registry-modules}/*.{la,a} | |
214 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
215 | ||
216 | %find_lang %{name} --all-name | |
217 | ||
218 | %clean | |
219 | rm -rf $RPM_BUILD_ROOT | |
220 | ||
221 | %post | |
222 | %glib_compile_schemas | |
223 | ||
224 | %postun | |
225 | %glib_compile_schemas | |
226 | ||
227 | %post libs -p /sbin/ldconfig | |
228 | %postun libs -p /sbin/ldconfig | |
229 | ||
230 | %post -n openldap-schema-evolutionperson | |
231 | %openldap_schema_register %{schemadir}/evolutionperson.schema | |
232 | %service -q ldap restart | |
233 | ||
234 | %postun -n openldap-schema-evolutionperson | |
235 | if [ "$1" = "0" ]; then | |
236 | %openldap_schema_unregister %{schemadir}/evolutionperson.schema | |
237 | %service -q ldap restart | |
238 | fi | |
239 | ||
240 | %files -f %{name}.lang | |
241 | %defattr(644,root,root,755) | |
242 | %doc AUTHORS ChangeLog NEWS* README | |
243 | %attr(755,root,root) %{_libdir}/camel-index-control-%{apiver} | |
244 | %attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver} | |
245 | %attr(755,root,root) %{_libdir}/evolution-addressbook-factory | |
246 | %attr(755,root,root) %{_libdir}/evolution-calendar-factory | |
247 | %attr(755,root,root) %{_libdir}/evolution-source-registry | |
248 | %attr(755,root,root) %{_libdir}/evolution-user-prompter | |
249 | %dir %{_libdir}/%{name} | |
250 | %dir %{_libdir}/%{name}/camel-providers | |
251 | %attr(755,root,root) %{_libdir}/%{name}/camel-providers/*.so | |
252 | %{_libdir}/%{name}/camel-providers/*.urls | |
253 | %dir %{_libdir}/%{name}/addressbook-backends | |
254 | %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/*.so | |
255 | %dir %{_libdir}/%{name}/calendar-backends | |
256 | %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/*.so | |
257 | %dir %{_libdir}/evolution-data-server/registry-modules | |
258 | %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/*.so | |
259 | ||
260 | %dir %{_libdir}/%{name}-%{basever} | |
261 | ||
262 | %if %{with ldap} | |
263 | %{_datadir}/%{name}/*.schema | |
264 | %endif | |
265 | ||
266 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.AddressBook.service | |
267 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Calendar.service | |
268 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Sources.service | |
269 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.UserPrompter.service | |
270 | ||
271 | %dir %{_datadir}/%{name} | |
272 | %{_pixmapsdir}/%{name} | |
273 | ||
274 | %{_datadir}/GConf/gsettings/evolution-data-server.convert | |
275 | %{_datadir}/GConf/gsettings/libedataserver.convert | |
276 | %{_datadir}/glib-2.0/schemas/org.gnome.evolution.eds-shell.gschema.xml | |
277 | %{_datadir}/glib-2.0/schemas/org.gnome.evolution.shell.network-config.gschema.xml | |
278 | %{_datadir}/glib-2.0/schemas/org.gnome.Evolution.DefaultSources.gschema.xml | |
279 | %{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.addressbook.gschema.xml | |
280 | %{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.calendar.gschema.xml | |
281 | ||
282 | %files -n openldap-schema-evolutionperson | |
283 | %defattr(644,root,root,755) | |
284 | %{schemadir}/evolutionperson.schema | |
285 | ||
286 | %files libs | |
287 | %defattr(644,root,root,755) | |
288 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so.*.*.* | |
289 | %attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.43 | |
290 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so.*.*.* | |
291 | %attr(755,root,root) %ghost %{_libdir}/libebackend-%{apiver}.so.6 | |
292 | %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.* | |
293 | %attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.14 | |
294 | %attr(755,root,root) %{_libdir}/libebook-contacts-%{apiver}.so.*.*.* | |
295 | %attr(755,root,root) %ghost %{_libdir}/libebook-contacts-%{apiver}.so.0 | |
296 | %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so.*.*.* | |
297 | %attr(755,root,root) %ghost %{_libdir}/libecal-%{apiver}.so.15 | |
298 | %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.* | |
299 | %attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.17 | |
300 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.* | |
301 | %attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.20 | |
302 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.* | |
303 | %attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.17 | |
304 | %{_libdir}/girepository-1.0/EBook-%{apiver}.typelib | |
305 | %{_libdir}/girepository-1.0/EBookContacts-%{apiver}.typelib | |
306 | %{_libdir}/girepository-1.0/EDataServer-%{apiver}.typelib | |
307 | ||
308 | %files devel | |
309 | %defattr(644,root,root,755) | |
310 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so | |
311 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so | |
312 | %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so | |
313 | %attr(755,root,root) %{_libdir}/libebook-contacts-%{apiver}.so | |
314 | %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so | |
315 | %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so | |
316 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so | |
317 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so | |
318 | %{_includedir}/evolution-data-server | |
319 | %{_pkgconfigdir}/camel-%{apiver}.pc | |
320 | %{_pkgconfigdir}/evolution-data-server-%{apiver}.pc | |
321 | %{_pkgconfigdir}/libebackend-%{apiver}.pc | |
322 | %{_pkgconfigdir}/libebook-%{apiver}.pc | |
323 | %{_pkgconfigdir}/libebook-contacts-%{apiver}.pc | |
324 | %{_pkgconfigdir}/libecal-%{apiver}.pc | |
325 | %{_pkgconfigdir}/libedata-book-%{apiver}.pc | |
326 | %{_pkgconfigdir}/libedata-cal-%{apiver}.pc | |
327 | %{_pkgconfigdir}/libedataserver-%{apiver}.pc | |
328 | %{_datadir}/gir-1.0/EBook-%{apiver}.gir | |
329 | %{_datadir}/gir-1.0/EBookContacts-%{apiver}.gir | |
330 | %{_datadir}/gir-1.0/EDataServer-%{apiver}.gir | |
331 | ||
332 | %if %{with static_libs} | |
333 | %files static | |
334 | %defattr(644,root,root,755) | |
335 | %{_libdir}/libcamel-%{apiver}.a | |
336 | %{_libdir}/libebackend-%{apiver}.a | |
337 | %{_libdir}/libebook-%{apiver}.a | |
338 | %{_libdir}/libebook-contacts-%{apiver}.a | |
339 | %{_libdir}/libecal-%{apiver}.a | |
340 | %{_libdir}/libedata-book-%{apiver}.a | |
341 | %{_libdir}/libedata-cal-%{apiver}.a | |
342 | %{_libdir}/libedataserver-%{apiver}.a | |
343 | %endif | |
344 | ||
345 | %if %{with apidocs} | |
346 | %files apidocs | |
347 | %defattr(644,root,root,755) | |
348 | %{_gtkdocdir}/camel | |
349 | %{_gtkdocdir}/libebackend | |
350 | %{_gtkdocdir}/libebook | |
351 | %{_gtkdocdir}/libebook-contacts | |
352 | %{_gtkdocdir}/libecal | |
353 | %{_gtkdocdir}/libedata-book | |
354 | %{_gtkdocdir}/libedata-cal | |
355 | %{_gtkdocdir}/libedataserver | |
356 | %endif | |
357 | ||
358 | %if %{with vala} | |
359 | %files -n vala-evolution-data-server | |
360 | %defattr(644,root,root,755) | |
361 | %{_datadir}/vala/vapi/libebook-%{apiver}.deps | |
362 | %{_datadir}/vala/vapi/libebook-%{apiver}.vapi | |
363 | %{_datadir}/vala/vapi/libebook-contacts-1.2.deps | |
364 | %{_datadir}/vala/vapi/libebook-contacts-1.2.vapi | |
365 | %{_datadir}/vala/vapi/libedataserver-1.2.deps | |
366 | %{_datadir}/vala/vapi/libedataserver-%{apiver}.vapi | |
367 | %endif |