- updated to 3.18.4
[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.18
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.18.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.18/%{name}-%{version}.tar.xz
20 # Source0-md5:  829751ac0b8a0fe6c8eec2acb446169d
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:  gcr-ui-devel >= 3.4.0
27 BuildRequires:  gettext-tools >= 0.18.1
28 BuildRequires:  glib2-devel >= 1:2.40.0
29 BuildRequires:  gnome-common >= 2.20.0
30 BuildRequires:  gnome-online-accounts-devel >= 3.8.0
31 BuildRequires:  gobject-introspection-devel >= 0.10.0
32 BuildRequires:  gperf
33 BuildRequires:  gtk+3-devel >= 3.10.0
34 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.14}
35 %{?with_kerberos5:BuildRequires:        heimdal-devel}
36 BuildRequires:  intltool >= 0.40.0
37 %{?with_uoa:BuildRequires:      json-glib-devel}
38 %{?with_uoa:BuildRequires:      libaccounts-glib-devel >= 1.4}
39 BuildRequires:  libgdata-devel >= 0.15.1
40 BuildRequires:  libgweather-devel >= 3.8
41 BuildRequires:  libical-devel >= 0.43
42 BuildRequires:  libicu-devel
43 BuildRequires:  libsecret-devel >= 0.5
44 %{?with_uoa:BuildRequires:      libsignon-glib-devel >= 1.8}
45 BuildRequires:  libsoup-devel >= 2.42.0
46 BuildRequires:  libstdc++-devel
47 BuildRequires:  libtool >= 2:2.2
48 BuildRequires:  libxml2-devel >= 1:2.6.31
49 BuildRequires:  nspr-devel >= 4
50 BuildRequires:  nss-devel >= 3
51 %{?with_ldap:BuildRequires:     openldap-devel >= 2.4.6}
52 BuildRequires:  pkgconfig
53 %{?with_uoa:BuildRequires:      rest-devel >= 0.7}
54 BuildRequires:  rpmbuild(macros) >= 1.304
55 BuildRequires:  sqlite3-devel >= 3.7.17
56 BuildRequires:  tar >= 1:1.22
57 %{?with_vala:BuildRequires:     vala >= 2:0.22.0}
58 BuildRequires:  xz
59 BuildRequires:  zlib-devel
60 Requires(post,postun):  glib2 >= 1:2.40.0
61 Requires:       %{name}-libs = %{version}-%{release}
62 Requires:       gnome-online-accounts-libs >= 3.8.0
63 Requires:       gtk+3 >= 3.10.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:       gcr-ui >= 3.4.0
130 Requires:       glib2 >= 1:2.40.0
131 Requires:       libical >= 0.43
132 Requires:       libsecret >= 0.5
133 Requires:       libsoup >= 2.42.0
134 Requires:       libxml2 >= 1:2.6.31
135 Requires:       sqlite3 >= 3.7.17
136
137 %description libs
138 This package contains Evolution Data Server library.
139
140 %description libs -l pl.UTF-8
141 Ten pakiet zawiera bibliotekę Evolution Data Server.
142
143 %package devel
144 Summary:        Evolution data server development files
145 Summary(pl.UTF-8):      Pliki programistyczne serwera danych evolution
146 Group:          X11/Development/Libraries
147 Requires:       %{name}-libs = %{version}-%{release}
148 Requires:       gcr-devel >= 3.4.0
149 Requires:       gcr-ui-devel >= 3.4.0
150 Requires:       glib2-devel >= 1:2.40.0
151 %{?with_kerberos5:Requires:     heimdal-devel}
152 Requires:       libgdata-devel >= 0.15.1
153 Requires:       libical-devel >= 0.43
154 Requires:       libsecret-devel >= 0.5
155 Requires:       libsoup-devel >= 2.42.0
156 Requires:       libxml2-devel >= 1:2.6.31
157 Requires:       nspr-devel >= 4
158 Requires:       nss-devel >= 3
159 Requires:       sqlite3-devel >= 3.7.17
160
161 %description devel
162 This package contains the files necessary to develop applications
163 using Evolution's data server libraries.
164
165 %description devel -l pl.UTF-8
166 Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji
167 korzystających z bibliotek serwera danych Evolution.
168
169 %package static
170 Summary:        Evolution data server static libraries
171 Summary(pl.UTF-8):      Statyczne biblioteki serwera danych Evolution
172 Group:          X11/Development/Libraries
173 Requires:       %{name}-devel = %{version}-%{release}
174
175 %description static
176 Evolution data server static libraries.
177
178 %description static -l pl.UTF-8
179 Statyczne biblioteki serwera danych Evolution.
180
181 %package apidocs
182 Summary:        Evolution data server API documentation
183 Summary(pl.UTF-8):      Dokumentacja API serwera danych Evolution
184 Group:          Documentation
185 Requires:       gtk-doc-common
186 %if "%{_rpmversion}" >= "5"
187 BuildArch:      noarch
188 %endif
189
190 %description apidocs
191 Evolution data server API documentation.
192
193 %description apidocs -l pl.UTF-8
194 Dokumentacja API serwera danych Evolution.
195
196 %package -n vala-evolution-data-server
197 Summary:        Evolution data server API for Vala language
198 Summary(pl.UTF-8):      API serwera danych Evolution dla języka Vala
199 Group:          Development/Libraries
200 Requires:       %{name}-devel = %{version}-%{release}
201 Requires:       vala >= 2:0.22.0
202
203 %description -n vala-evolution-data-server
204 Evolution data server API for Vala language.
205
206 %description -n vala-evolution-data-server -l pl.UTF-8
207 API serwera danych Evolution dla języka Vala.
208
209 %prep
210 %setup -q
211
212 %build
213 %{__gtkdocize}
214 %{__intltoolize}
215 %{__libtoolize}
216 %{__aclocal} -I m4
217 %{__autoheader}
218 %{__autoconf}
219 %{__automake}
220
221 %configure \
222         DB_LIBS="-ldb" \
223         ac_cv_libiconv=no \
224         %{?with_kerberos5:--with-krb5=%{_prefix} --with-krb5-libs=%{_libdir}} \
225         %{!?with_kerberos5:--with-krb5=no} \
226         --with-openldap%{!?with_ldap:=no} \
227         --enable-smime \
228         --enable-ipv6 \
229         %{__enable_disable apidocs gtk-doc} \
230         %{__enable_disable static_libs static} \
231         %{__enable_disable vala vala-bindings} \
232         %{!?with_uoa:--disable-uoa} \
233         --with-html-dir=%{_gtkdocdir} \
234         --disable-silent-rules
235
236 %{__make}
237
238 %install
239 rm -rf $RPM_BUILD_ROOT
240 install -d $RPM_BUILD_ROOT%{_libdir}/%{name}-%{basever}
241 install -d $RPM_BUILD_ROOT%{schemadir}
242
243 %{__make} install \
244         DESTDIR=$RPM_BUILD_ROOT \
245         HTML_DIR=%{_gtkdocdir}
246
247 cp -p addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir}
248
249 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/{camel-providers,calendar-backends,addressbook-backends,credential-modules,registry-modules}/*.{la,a}
250 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.{a,la}
251 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
252
253 %find_lang %{name}-%{basever}
254
255 %clean
256 rm -rf $RPM_BUILD_ROOT
257
258 %post
259 %glib_compile_schemas
260
261 %postun
262 %glib_compile_schemas
263
264 %post   libs -p /sbin/ldconfig
265 %postun libs -p /sbin/ldconfig
266
267 %post -n openldap-schema-evolutionperson
268 %openldap_schema_register %{schemadir}/evolutionperson.schema
269 %service -q ldap restart
270
271 %postun -n openldap-schema-evolutionperson
272 if [ "$1" = "0" ]; then
273         %openldap_schema_unregister %{schemadir}/evolutionperson.schema
274         %service -q ldap restart
275 fi
276
277 %files -f %{name}-%{basever}.lang
278 %defattr(644,root,root,755)
279 %doc AUTHORS ChangeLog NEWS* README
280 %attr(755,root,root) %{_libexecdir}/camel-index-control-%{apiver}
281 %attr(755,root,root) %{_libexecdir}/camel-lock-helper-%{apiver}
282 %attr(755,root,root) %{_libexecdir}/evolution-addressbook-factory-subprocess
283 %attr(755,root,root) %{_libexecdir}/evolution-addressbook-factory
284 %attr(755,root,root) %{_libexecdir}/evolution-calendar-factory-subprocess
285 %attr(755,root,root) %{_libexecdir}/evolution-calendar-factory
286 %attr(755,root,root) %{_libexecdir}/evolution-scan-gconf-tree-xml
287 %attr(755,root,root) %{_libexecdir}/evolution-source-registry
288 %attr(755,root,root) %{_libexecdir}/evolution-user-prompter
289 %dir %{_libdir}/%{name}
290 %attr(755,root,root) %{_libdir}/%{name}/libedbus-private.so
291 %dir %{_libdir}/%{name}/addressbook-backends
292 %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/libebookbackendfile.so
293 %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/libebookbackendgoogle.so
294 %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/libebookbackendwebdav.so
295 %dir %{_libdir}/%{name}/calendar-backends
296 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendcaldav.so
297 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendcontacts.so
298 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendfile.so
299 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendgtasks.so
300 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendhttp.so
301 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendweather.so
302 %dir %{_libdir}/%{name}/camel-providers
303 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamelimapx.so
304 %{_libdir}/%{name}/camel-providers/libcamelimapx.urls
305 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamellocal.so
306 %{_libdir}/%{name}/camel-providers/libcamellocal.urls
307 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamelnntp.so
308 %{_libdir}/%{name}/camel-providers/libcamelnntp.urls
309 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamelpop3.so
310 %{_libdir}/%{name}/camel-providers/libcamelpop3.urls
311 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamelsendmail.so
312 %{_libdir}/%{name}/camel-providers/libcamelsendmail.urls
313 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamelsmtp.so
314 %{_libdir}/%{name}/camel-providers/libcamelsmtp.urls
315 %dir %{_libdir}/%{name}/credential-modules
316 %attr(755,root,root) %{_libdir}/%{name}/credential-modules/module-credentials-goa.so
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 %{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.gschema.xml
343
344 %if %{with ldap}
345 %files ldap
346 %defattr(644,root,root,755)
347 %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/libebookbackendldap.so
348 %{_datadir}/%{name}/evolutionperson.schema
349 %endif
350
351 %if %{with uoa}
352 %files uoa
353 %defattr(644,root,root,755)
354 %attr(755,root,root) %{_libdir}/evolution-data-server/credential-modules/module-credentials-uoa.so
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.54
382 %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so.*.*.*
383 %attr(755,root,root) %ghost %{_libdir}/libebackend-%{apiver}.so.10
384 %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.*
385 %attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.16
386 %attr(755,root,root) %{_libdir}/libebook-contacts-%{apiver}.so.*.*.*
387 %attr(755,root,root) %ghost %{_libdir}/libebook-contacts-%{apiver}.so.2
388 %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so.*.*.*
389 %attr(755,root,root) %ghost %{_libdir}/libecal-%{apiver}.so.19
390 %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.*
391 %attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.25
392 %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.*
393 %attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.28
394 %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.*
395 %attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.21
396 %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so.*.*.*
397 %attr(755,root,root) %ghost %{_libdir}/libedataserverui-%{apiver}.so.1
398 %{_libdir}/girepository-1.0/EBook-%{apiver}.typelib
399 %{_libdir}/girepository-1.0/EBookContacts-%{apiver}.typelib
400 %{_libdir}/girepository-1.0/EDataServer-%{apiver}.typelib
401
402 %files devel
403 %defattr(644,root,root,755)
404 %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so
405 %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so
406 %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so
407 %attr(755,root,root) %{_libdir}/libebook-contacts-%{apiver}.so
408 %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so
409 %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so
410 %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so
411 %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so
412 %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so
413 %{_includedir}/evolution-data-server
414 %{_pkgconfigdir}/camel-%{apiver}.pc
415 %{_pkgconfigdir}/evolution-data-server-%{apiver}.pc
416 %{_pkgconfigdir}/libebackend-%{apiver}.pc
417 %{_pkgconfigdir}/libebook-%{apiver}.pc
418 %{_pkgconfigdir}/libebook-contacts-%{apiver}.pc
419 %{_pkgconfigdir}/libecal-%{apiver}.pc
420 %{_pkgconfigdir}/libedata-book-%{apiver}.pc
421 %{_pkgconfigdir}/libedata-cal-%{apiver}.pc
422 %{_pkgconfigdir}/libedataserver-%{apiver}.pc
423 %{_pkgconfigdir}/libedataserverui-%{apiver}.pc
424 %{_datadir}/gir-1.0/EBook-%{apiver}.gir
425 %{_datadir}/gir-1.0/EBookContacts-%{apiver}.gir
426 %{_datadir}/gir-1.0/EDataServer-%{apiver}.gir
427
428 %if %{with static_libs}
429 %files static
430 %defattr(644,root,root,755)
431 %{_libdir}/libcamel-%{apiver}.a
432 %{_libdir}/libebackend-%{apiver}.a
433 %{_libdir}/libebook-%{apiver}.a
434 %{_libdir}/libebook-contacts-%{apiver}.a
435 %{_libdir}/libecal-%{apiver}.a
436 %{_libdir}/libedata-book-%{apiver}.a
437 %{_libdir}/libedata-cal-%{apiver}.a
438 %{_libdir}/libedataserver-%{apiver}.a
439 %{_libdir}/libedataserverui-%{apiver}.a
440 %endif
441
442 %if %{with apidocs}
443 %files apidocs
444 %defattr(644,root,root,755)
445 %{_gtkdocdir}/camel
446 %{_gtkdocdir}/eds
447 %endif
448
449 %if %{with vala}
450 %files -n vala-evolution-data-server
451 %defattr(644,root,root,755)
452 %{_datadir}/vala/vapi/libebook-%{apiver}.deps
453 %{_datadir}/vala/vapi/libebook-%{apiver}.vapi
454 %{_datadir}/vala/vapi/libebook-contacts-%{apiver}.deps
455 %{_datadir}/vala/vapi/libebook-contacts-%{apiver}.vapi
456 %{_datadir}/vala/vapi/libedataserver-%{apiver}.deps
457 %{_datadir}/vala/vapi/libedataserver-%{apiver}.vapi
458 %endif
This page took 0.082888 seconds and 3 git commands to generate.