- updated to 3.12.7.1
[packages/evolution-data-server.git] / evolution-data-server.spec
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  uoa             # single sign-on (aka Ubuntu Online Accounts)
8 %bcond_without  vala            # do not build Vala API
9
10 %define         basever         3.12
11 %define         apiver          1.2
12 Summary:        Evolution data server
13 Summary(pl.UTF-8):      Serwer danych Evolution
14 Name:           evolution-data-server
15 Version:        3.12.7.1
16 Release:        1
17 License:        LGPL v2+
18 Group:          X11/Libraries
19 Source0:        http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/3.12/%{name}-%{version}.tar.xz
20 # Source0-md5:  cf78e9e77e753cdc3e4f8d1a7e844b17
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.36.0
28 BuildRequires:  gnome-common >= 2.20.0
29 BuildRequires:  gnome-online-accounts-devel >= 3.8.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 %{?with_uoa:BuildRequires:      json-glib-devel}
37 %{?with_uoa:BuildRequires:      libaccounts-glib-devel >= 1.4}
38 BuildRequires:  libgdata-devel >= 0.15.1
39 BuildRequires:  libgweather-devel >= 3.8
40 BuildRequires:  libical-devel >= 0.43
41 BuildRequires:  libicu-devel
42 BuildRequires:  libsecret-devel >= 0.5
43 %{?with_uoa:BuildRequires:      libsignon-glib-devel >= 1.8}
44 BuildRequires:  libsoup-devel >= 2.42.0
45 BuildRequires:  libstdc++-devel
46 BuildRequires:  libtool >= 2:2.2
47 BuildRequires:  libxml2-devel >= 1:2.6.31
48 BuildRequires:  nspr-devel >= 4
49 BuildRequires:  nss-devel >= 3
50 %{?with_ldap:BuildRequires:     openldap-evolution-devel >= 2.4.6}
51 BuildRequires:  pkgconfig
52 %{?with_uoa:BuildRequires:      rest-devel >= 0.7}
53 BuildRequires:  rpmbuild(macros) >= 1.304
54 BuildRequires:  sed >= 4.0
55 BuildRequires:  sqlite3-devel >= 3.5
56 BuildRequires:  tar >= 1:1.22
57 %{?with_vala:BuildRequires:     vala >= 2:0.14.0}
58 BuildRequires:  xz
59 BuildRequires:  zlib-devel
60 Requires(post,postun):  glib2 >= 1:2.34.0
61 Requires:       %{name}-libs = %{version}-%{release}
62 Requires:       gnome-online-accounts-libs >= 3.8.0
63 Requires:       gtk+3 >= 3.2.0
64 Requires:       libgdata >= 0.15.1
65 Requires:       libgweather >= 3.8
66 # sr@Latn vs. sr@latin
67 Conflicts:      glibc-misc < 6:2.7
68 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
69
70 %define         schemadir       /usr/share/openldap/schema
71
72 %description
73 The Evolution data server for the calendar and addressbook.
74
75 %description -l pl.UTF-8
76 Serwer danych Evolution dla kalendarza i książki adresowej.
77
78 %package ldap
79 Summary:        LDAP support for Evolution data server
80 Summary(pl.UTF-8):      Obsługa LDAP dla serwera danych Evolution
81 Group:          Libraries
82 Requires:       %{name} = %{version}-%{release}
83
84 %description ldap
85 LDAP support for Evolution data server (address book backend module).
86
87 %description ldap -l pl.UTF-8
88 Obsługa LDAP dla serwera danych Evolution (moduł dla książki
89 adresowej).
90
91 %package uoa
92 Summary:        Ubuntu Online Accounts support for Evolution data server
93 Summary(pl.UTF-8):      Obsługa Ubuntu Online Accounts dla serwera danych Evolution
94 Group:          Libraries
95 Requires:       %{name} = %{version}-%{release}
96 Requires:       libaccounts-glib >= 1.4
97 Requires:       libsignon-glib >= 1.8
98 Requires:       rest >= 0.7
99
100 %description uoa
101 Ubuntu Online Accounts (single sign-on) support for Evolution data
102 server.
103
104 %description uoa -l pl.UTF-8
105 Obsługa Ubuntu Online Accounts (pojedynczego logowania) dla serwera
106 danych Evolution.
107
108 %package -n openldap-schema-evolutionperson
109 Summary:        evolutionperson LDAP schema
110 Summary(pl.UTF-8):      Schemat LDAP evolutionperson
111 Group:          Networking/Daemons
112 Requires(post,postun):  sed >= 4.0
113 Requires:       openldap-servers
114 %if "%{_rpmversion}" >= "5"
115 BuildArch:      noarch
116 %endif
117
118 %description -n openldap-schema-evolutionperson
119 This package contains evolutionperson.schema for OpenLDAP server.
120
121 %description -n openldap-schema-evolutionperson -l pl.UTF-8
122 Ten pakiet zawiera evolutionperson.schema dla serwera OpenLDAP.
123
124 %package libs
125 Summary:        Evolution Data Server library
126 Summary(pl.UTF-8):      Biblioteka Evolution Data Server
127 Group:          X11/Libraries
128 Requires:       gcr-libs >= 3.4.0
129 Requires:       glib2 >= 1:2.36.0
130 Requires:       libical >= 0.43
131 Requires:       libsecret >= 0.5
132 Requires:       libsoup >= 2.42.0
133 Requires:       libxml2 >= 1:2.6.31
134 Requires:       sqlite3 >= 3.5
135
136 %description libs
137 This package contains Evolution Data Server library.
138
139 %description libs -l pl.UTF-8
140 Ten pakiet zawiera bibliotekę Evolution Data Server.
141
142 %package devel
143 Summary:        Evolution data server development files
144 Summary(pl.UTF-8):      Pliki programistyczne serwera danych evolution
145 Group:          X11/Development/Libraries
146 Requires:       %{name}-libs = %{version}-%{release}
147 Requires:       gcr-devel >= 3.4.0
148 Requires:       glib2-devel >= 1:2.36.0
149 %{?with_kerberos5:Requires:     heimdal-devel}
150 Requires:       libgdata-devel >= 0.15.1
151 Requires:       libical-devel >= 0.43
152 Requires:       libsecret-devel >= 0.5
153 Requires:       libsoup-devel >= 2.42.0
154 Requires:       libxml2-devel >= 1:2.6.31
155 Requires:       nspr-devel >= 4
156 Requires:       nss-devel >= 3
157 Requires:       sqlite3-devel >= 3.5
158
159 %description devel
160 This package contains the files necessary to develop applications
161 using Evolution's data server libraries.
162
163 %description devel -l pl.UTF-8
164 Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji
165 korzystających z bibliotek serwera danych Evolution.
166
167 %package static
168 Summary:        Evolution data server static libraries
169 Summary(pl.UTF-8):      Statyczne biblioteki serwera danych Evolution
170 Group:          X11/Development/Libraries
171 Requires:       %{name}-devel = %{version}-%{release}
172
173 %description static
174 Evolution data server static libraries.
175
176 %description static -l pl.UTF-8
177 Statyczne biblioteki serwera danych Evolution.
178
179 %package apidocs
180 Summary:        Evolution data server API documentation
181 Summary(pl.UTF-8):      Dokumentacja API serwera danych Evolution
182 Group:          Documentation
183 Requires:       gtk-doc-common
184
185 %description apidocs
186 Evolution data server API documentation.
187
188 %description apidocs -l pl.UTF-8
189 Dokumentacja API serwera danych Evolution.
190
191 %package -n vala-evolution-data-server
192 Summary:        Evolution data server API for Vala language
193 Summary(pl.UTF-8):      API serwera danych Evolution dla języka Vala
194 Group:          Development/Libraries
195 Requires:       %{name}-devel = %{version}-%{release}
196 Requires:       vala >= 2:0.14.0
197
198 %description -n vala-evolution-data-server
199 Evolution data server API for Vala language.
200
201 %description -n vala-evolution-data-server -l pl.UTF-8
202 API serwera danych Evolution dla języka Vala.
203
204 %prep
205 %setup -q
206
207 # kill -L$withval/lib
208 %{__sed} -i -e 's/DB_LIBS="-L[^ "]* /DB_LIBS="/;s/ICONV_LIBS="[^ "]*/ICONV_LIBS="/' configure.ac
209
210 %build
211 %{__gtkdocize}
212 %{__intltoolize}
213 %{__libtoolize}
214 %{__aclocal} -I m4
215 %{__autoheader}
216 %{__autoconf}
217 %{__automake}
218
219 # Set LIBS so that configure will be able to link with static LDAP libraries,
220 # which depend on Cyrus SASL and OpenSSL.
221 if pkg-config openssl ; then
222         LIBS="-lsasl2 `pkg-config --libs openssl`"
223 else
224         LIBS="-lsasl2 -lssl -lcrypto"
225 fi
226 export LIBS
227
228 %configure \
229         %{?with_kerberos5:--with-krb5=%{_prefix} --with-krb5-libs=%{_libdir}} \
230         %{!?with_kerberos5:--with-krb5=no} \
231         %{?with_ldap:--with-openldap=%{_libdir}/evolution-openldap} \
232         %{?with_ldap:--with-static-ldap=yes} \
233         %{!?with_ldap:--with-openldap=no} \
234         --enable-smime \
235         --enable-ipv6 \
236         %{__enable_disable apidocs gtk-doc} \
237         %{__enable_disable static_libs static} \
238         %{__enable_disable vala vala-bindings} \
239         %{!?with_uoa:--disable-uoa} \
240         --with-libdb=%{_libdir} \
241         --with-html-dir=%{_gtkdocdir} \
242         --disable-silent-rules
243
244 %{__make}
245
246 %install
247 rm -rf $RPM_BUILD_ROOT
248 install -d $RPM_BUILD_ROOT%{_libdir}/%{name}-%{basever}
249 install -d $RPM_BUILD_ROOT%{schemadir}
250
251 %{__make} install \
252         DESTDIR=$RPM_BUILD_ROOT \
253         HTML_DIR=%{_gtkdocdir}
254
255 cp -p addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir}
256
257 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/{camel-providers,calendar-backends,addressbook-backends,registry-modules}/*.{la,a}
258 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
259
260 %find_lang %{name}-%{basever}
261
262 %clean
263 rm -rf $RPM_BUILD_ROOT
264
265 %post
266 %glib_compile_schemas
267
268 %postun
269 %glib_compile_schemas
270
271 %post   libs -p /sbin/ldconfig
272 %postun libs -p /sbin/ldconfig
273
274 %post -n openldap-schema-evolutionperson
275 %openldap_schema_register %{schemadir}/evolutionperson.schema
276 %service -q ldap restart
277
278 %postun -n openldap-schema-evolutionperson
279 if [ "$1" = "0" ]; then
280         %openldap_schema_unregister %{schemadir}/evolutionperson.schema
281         %service -q ldap restart
282 fi
283
284 %files -f %{name}-%{basever}.lang
285 %defattr(644,root,root,755)
286 %doc AUTHORS ChangeLog NEWS* README
287 %attr(755,root,root) %{_libexecdir}/camel-index-control-%{apiver}
288 %attr(755,root,root) %{_libexecdir}/camel-lock-helper-%{apiver}
289 %attr(755,root,root) %{_libexecdir}/evolution-addressbook-factory
290 %attr(755,root,root) %{_libexecdir}/evolution-calendar-factory
291 %attr(755,root,root) %{_libexecdir}/evolution-scan-gconf-tree-xml
292 %attr(755,root,root) %{_libexecdir}/evolution-source-registry
293 %attr(755,root,root) %{_libexecdir}/evolution-user-prompter
294 %dir %{_libdir}/%{name}
295 %dir %{_libdir}/%{name}/addressbook-backends
296 %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/libebookbackendfile.so
297 %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/libebookbackendgoogle.so
298 %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/libebookbackendwebdav.so
299 %dir %{_libdir}/%{name}/calendar-backends
300 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendcaldav.so
301 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendcontacts.so
302 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendfile.so
303 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendgtasks.so
304 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendhttp.so
305 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendweather.so
306 %dir %{_libdir}/%{name}/camel-providers
307 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamelimapx.so
308 %{_libdir}/%{name}/camel-providers/libcamelimapx.urls
309 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamellocal.so
310 %{_libdir}/%{name}/camel-providers/libcamellocal.urls
311 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamelnntp.so
312 %{_libdir}/%{name}/camel-providers/libcamelnntp.urls
313 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamelpop3.so
314 %{_libdir}/%{name}/camel-providers/libcamelpop3.urls
315 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamelsendmail.so
316 %{_libdir}/%{name}/camel-providers/libcamelsendmail.urls
317 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamelsmtp.so
318 %{_libdir}/%{name}/camel-providers/libcamelsmtp.urls
319 %dir %{_libdir}/evolution-data-server/registry-modules
320 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-cache-reaper.so
321 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-gnome-online-accounts.so
322 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-google-backend.so
323 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-outlook-backend.so
324 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-owncloud-backend.so
325 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-secret-monitor.so
326 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-trust-prompt.so
327 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-yahoo-backend.so
328
329 %dir %{_libdir}/%{name}-%{basever}
330 %dir %{_datadir}/%{name}
331 %{_pixmapsdir}/%{name}
332
333 %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.AddressBook.service
334 %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Calendar.service
335 %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Sources.service
336 %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.UserPrompter.service
337
338 %{_datadir}/GConf/gsettings/evolution-data-server.convert
339 %{_datadir}/glib-2.0/schemas/org.gnome.evolution.eds-shell.gschema.xml
340 %{_datadir}/glib-2.0/schemas/org.gnome.evolution.shell.network-config.gschema.xml
341 %{_datadir}/glib-2.0/schemas/org.gnome.Evolution.DefaultSources.gschema.xml
342 %{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.addressbook.gschema.xml
343 %{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.calendar.gschema.xml
344
345 %if %{with ldap}
346 %files ldap
347 %defattr(644,root,root,755)
348 %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/libebookbackendldap.so
349 %{_datadir}/%{name}/evolutionperson.schema
350 %endif
351
352 %if %{with uoa}
353 %files uoa
354 %defattr(644,root,root,755)
355 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-ubuntu-online-accounts.so
356 %{_desktopdir}/evolution-data-server-uoa.desktop
357 # XXX: which package should own these dirs?
358 %dir %{_datadir}/accounts
359 %dir %{_datadir}/accounts/applications
360 %{_datadir}/accounts/applications/evolution-data-server.application
361 %dir %{_datadir}/accounts/service_types
362 %{_datadir}/accounts/service_types/calendar.service-type
363 %{_datadir}/accounts/service_types/contacts.service-type
364 %{_datadir}/accounts/service_types/mail.service-type
365 %dir %{_datadir}/accounts/services
366 %{_datadir}/accounts/services/google-calendar.service
367 %{_datadir}/accounts/services/google-contacts.service
368 %{_datadir}/accounts/services/google-gmail.service
369 %{_datadir}/accounts/services/windows-live-mail.service
370 %{_datadir}/accounts/services/yahoo-calendar.service
371 %{_datadir}/accounts/services/yahoo-mail.service
372 %endif
373
374 %files -n openldap-schema-evolutionperson
375 %defattr(644,root,root,755)
376 %{schemadir}/evolutionperson.schema
377
378 %files libs
379 %defattr(644,root,root,755)
380 %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so.*.*.*
381 %attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.49
382 %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so.*.*.*
383 %attr(755,root,root) %ghost %{_libdir}/libebackend-%{apiver}.so.7
384 %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.*
385 %attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.14
386 %attr(755,root,root) %{_libdir}/libebook-contacts-%{apiver}.so.*.*.*
387 %attr(755,root,root) %ghost %{_libdir}/libebook-contacts-%{apiver}.so.0
388 %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so.*.*.*
389 %attr(755,root,root) %ghost %{_libdir}/libecal-%{apiver}.so.16
390 %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.*
391 %attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.20
392 %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.*
393 %attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.23
394 %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.*
395 %attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.18
396 %{_libdir}/girepository-1.0/EBook-%{apiver}.typelib
397 %{_libdir}/girepository-1.0/EBookContacts-%{apiver}.typelib
398 %{_libdir}/girepository-1.0/EDataServer-%{apiver}.typelib
399
400 %files devel
401 %defattr(644,root,root,755)
402 %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so
403 %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so
404 %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so
405 %attr(755,root,root) %{_libdir}/libebook-contacts-%{apiver}.so
406 %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so
407 %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so
408 %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so
409 %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so
410 %{_includedir}/evolution-data-server
411 %{_pkgconfigdir}/camel-%{apiver}.pc
412 %{_pkgconfigdir}/evolution-data-server-%{apiver}.pc
413 %{_pkgconfigdir}/libebackend-%{apiver}.pc
414 %{_pkgconfigdir}/libebook-%{apiver}.pc
415 %{_pkgconfigdir}/libebook-contacts-%{apiver}.pc
416 %{_pkgconfigdir}/libecal-%{apiver}.pc
417 %{_pkgconfigdir}/libedata-book-%{apiver}.pc
418 %{_pkgconfigdir}/libedata-cal-%{apiver}.pc
419 %{_pkgconfigdir}/libedataserver-%{apiver}.pc
420 %{_datadir}/gir-1.0/EBook-%{apiver}.gir
421 %{_datadir}/gir-1.0/EBookContacts-%{apiver}.gir
422 %{_datadir}/gir-1.0/EDataServer-%{apiver}.gir
423
424 %if %{with static_libs}
425 %files static
426 %defattr(644,root,root,755)
427 %{_libdir}/libcamel-%{apiver}.a
428 %{_libdir}/libebackend-%{apiver}.a
429 %{_libdir}/libebook-%{apiver}.a
430 %{_libdir}/libebook-contacts-%{apiver}.a
431 %{_libdir}/libecal-%{apiver}.a
432 %{_libdir}/libedata-book-%{apiver}.a
433 %{_libdir}/libedata-cal-%{apiver}.a
434 %{_libdir}/libedataserver-%{apiver}.a
435 %endif
436
437 %if %{with apidocs}
438 %files apidocs
439 %defattr(644,root,root,755)
440 %{_gtkdocdir}/camel
441 %{_gtkdocdir}/eds
442 %endif
443
444 %if %{with vala}
445 %files -n vala-evolution-data-server
446 %defattr(644,root,root,755)
447 %{_datadir}/vala/vapi/libebook-%{apiver}.deps
448 %{_datadir}/vala/vapi/libebook-%{apiver}.vapi
449 %{_datadir}/vala/vapi/libebook-contacts-%{apiver}.deps
450 %{_datadir}/vala/vapi/libebook-contacts-%{apiver}.vapi
451 %{_datadir}/vala/vapi/libedataserver-%{apiver}.deps
452 %{_datadir}/vala/vapi/libedataserver-%{apiver}.vapi
453 %endif
This page took 0.133967 seconds and 3 git commands to generate.