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