81ee3b456c3f0b973672867f1cddd2dc4a92bd5d
[packages/evolution-data-server.git] / evolution-data-server.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # API documentation
4 %bcond_without  kerberos5       # Kerberos5 support
5 %bcond_without  ldap            # LDAP support
6 %bcond_without  goa             # Gnome Online Accounts support
7 %bcond_without  vala            # Vala API
8
9 %define         basever         3.32
10 %define         apiver          1.2
11 Summary:        Evolution data server
12 Summary(pl.UTF-8):      Serwer danych Evolution
13 Name:           evolution-data-server
14 Version:        3.32.4
15 Release:        2
16 License:        LGPL v2+
17 Group:          X11/Libraries
18 Source0:        http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/3.32/%{name}-%{version}.tar.xz
19 # Source0-md5:  57820f3f88fc554e1a58665a52e12c05
20 Patch0:         %{name}-gtkdoc.patch
21 URL:            https://wiki.gnome.org/Apps/Evolution
22 BuildRequires:  cmake >= 3.1
23 BuildRequires:  db-devel
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.46.0
29 %{?with_goa: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.10.0
33 BuildRequires:  gtk-webkit4-devel >= 2.12.0
34 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.14}
35 %{?with_kerberos5:BuildRequires:        heimdal-devel}
36 BuildRequires:  intltool >= 0.40.0
37 BuildRequires:  json-glib-devel >= 1.0.4
38 BuildRequires:  libcanberra-gtk3-devel >= 0.25
39 BuildRequires:  libgdata-devel >= 0.15.1
40 BuildRequires:  libgweather-devel >= 3.10
41 BuildRequires:  libical-devel >= 2.0
42 BuildRequires:  libicu-devel
43 BuildRequires:  libsecret-devel >= 0.5
44 BuildRequires:  libsoup-devel >= 2.42.0
45 BuildRequires:  libstdc++-devel >= 6:5.0
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-devel >= 2.4.6}
51 BuildRequires:  pkgconfig
52 BuildRequires:  rpmbuild(macros) >= 1.742
53 BuildRequires:  sqlite3-devel >= 3.7.17
54 BuildRequires:  tar >= 1:1.22
55 %{?with_vala:BuildRequires:     vala >= 2:0.22.0}
56 BuildRequires:  xz
57 BuildRequires:  zlib-devel
58 Requires(post,postun):  glib2 >= 1:2.46.0
59 Requires:       %{name}-libs = %{version}-%{release}
60 %{?with_goa:Requires:   gnome-online-accounts-libs >= 3.8.0}
61 Requires:       gtk+3 >= 3.10.0
62 Requires:       libgdata >= 0.15.1
63 Requires:       libgweather >= 3.10
64 Obsoletes:      evolution-data-server-uoa < 3.32
65 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66
67 %define         schemadir       /usr/share/openldap/schema
68
69 %description
70 The Evolution data server for the calendar and addressbook.
71
72 %description -l pl.UTF-8
73 Serwer danych Evolution dla kalendarza i książki adresowej.
74
75 %package ldap
76 Summary:        LDAP support for Evolution data server
77 Summary(pl.UTF-8):      Obsługa LDAP dla serwera danych Evolution
78 Group:          Libraries
79 Requires:       %{name} = %{version}-%{release}
80
81 %description ldap
82 LDAP support for Evolution data server (address book backend module).
83
84 %description ldap -l pl.UTF-8
85 Obsługa LDAP dla serwera danych Evolution (moduł dla książki
86 adresowej).
87
88 %package -n openldap-schema-evolutionperson
89 Summary:        evolutionperson LDAP schema
90 Summary(pl.UTF-8):      Schemat LDAP evolutionperson
91 Group:          Networking/Daemons
92 Requires(post,postun):  sed >= 4.0
93 Requires:       openldap-servers
94 %if "%{_rpmversion}" >= "5"
95 BuildArch:      noarch
96 %endif
97
98 %description -n openldap-schema-evolutionperson
99 This package contains evolutionperson.schema for OpenLDAP server.
100
101 %description -n openldap-schema-evolutionperson -l pl.UTF-8
102 Ten pakiet zawiera evolutionperson.schema dla serwera OpenLDAP.
103
104 %package libs
105 Summary:        Evolution Data Server library
106 Summary(pl.UTF-8):      Biblioteka Evolution Data Server
107 Group:          X11/Libraries
108 Requires:       gcr-libs >= 3.4.0
109 Requires:       gcr-ui >= 3.4.0
110 Requires:       glib2 >= 1:2.46.0
111 Requires:       gtk-webkit4 >= 2.12.0
112 Requires:       json-glib >= 1.0.4
113 Requires:       libical >= 2.0
114 Requires:       libsecret >= 0.5
115 Requires:       libsoup >= 2.42.0
116 Requires:       libxml2 >= 1:2.6.31
117 Requires:       sqlite3 >= 3.7.17
118 Obsoletes:      evolution-data-server-static
119
120 %description libs
121 This package contains Evolution Data Server library.
122
123 %description libs -l pl.UTF-8
124 Ten pakiet zawiera bibliotekę Evolution Data Server.
125
126 %package devel
127 Summary:        Evolution data server development files
128 Summary(pl.UTF-8):      Pliki programistyczne serwera danych evolution
129 Group:          X11/Development/Libraries
130 Requires:       %{name}-libs = %{version}-%{release}
131 Requires:       gcr-devel >= 3.4.0
132 Requires:       gcr-ui-devel >= 3.4.0
133 Requires:       glib2-devel >= 1:2.46.0
134 %{?with_kerberos5:Requires:     heimdal-devel}
135 Requires:       libgdata-devel >= 0.15.1
136 Requires:       libical-devel >= 2.0
137 Requires:       libsecret-devel >= 0.5
138 Requires:       libsoup-devel >= 2.42.0
139 Requires:       libxml2-devel >= 1:2.6.31
140 Requires:       nspr-devel >= 4
141 Requires:       nss-devel >= 3
142 Requires:       sqlite3-devel >= 3.7.17
143
144 %description devel
145 This package contains the files necessary to develop applications
146 using Evolution's data server libraries.
147
148 %description devel -l pl.UTF-8
149 Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji
150 korzystających z bibliotek serwera danych Evolution.
151
152 %package static
153 Summary:        Evolution data server static libraries
154 Summary(pl.UTF-8):      Statyczne biblioteki serwera danych Evolution
155 Group:          X11/Development/Libraries
156 Requires:       %{name}-devel = %{version}-%{release}
157
158 %description static
159 Evolution data server static libraries.
160
161 %description static -l pl.UTF-8
162 Statyczne biblioteki serwera danych Evolution.
163
164 %package apidocs
165 Summary:        Evolution data server API documentation
166 Summary(pl.UTF-8):      Dokumentacja API serwera danych Evolution
167 Group:          Documentation
168 Requires:       gtk-doc-common
169 %if "%{_rpmversion}" >= "5"
170 BuildArch:      noarch
171 %endif
172
173 %description apidocs
174 Evolution data server API documentation.
175
176 %description apidocs -l pl.UTF-8
177 Dokumentacja API serwera danych Evolution.
178
179 %package -n vala-evolution-data-server
180 Summary:        Evolution data server API for Vala language
181 Summary(pl.UTF-8):      API serwera danych Evolution dla języka Vala
182 Group:          Development/Libraries
183 Requires:       %{name}-devel = %{version}-%{release}
184 Requires:       vala >= 2:0.22.0
185 %if "%{_rpmversion}" >= "5"
186 BuildArch:      noarch
187 %endif
188
189 %description -n vala-evolution-data-server
190 Evolution data server API for Vala language.
191
192 %description -n vala-evolution-data-server -l pl.UTF-8
193 API serwera danych Evolution dla języka Vala.
194
195 %prep
196 %setup -q
197 %patch0 -p1
198
199 %build
200 install -d build
201 cd build
202 %cmake .. \
203         -DLIBEXEC_INSTALL_DIR=%{_libexecdir} \
204         %{?with_kerberos5:-DWITH_KRB5=%{_prefix} -DWITH_KRB5_LIBS=%{_libdir}} \
205         %{cmake_on_off kerberos5 WITH_KRB5} \
206         %{cmake_on_off ldap WITH_OPENLDAP} \
207         %{cmake_on_off apidocs ENABLE_GTK_DOC} \
208         %{cmake_on_off vala ENABLE_VALA_BINDINGS} \
209         %{cmake_on_off goa ENABLE_GOA} \
210         -DENABLE_SCHEMAS_COMPILE=OFF \
211         -DENABLE_INTROSPECTION=ON
212
213 %{__make}
214
215 %install
216 rm -rf $RPM_BUILD_ROOT
217 install -d $RPM_BUILD_ROOT{%{_libdir}/%{name}-%{basever},%{schemadir}}
218
219 %{__make} -C build install \
220         DESTDIR=$RPM_BUILD_ROOT
221
222 cp -p src/addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir}
223
224 %find_lang %{name}
225
226 %clean
227 rm -rf $RPM_BUILD_ROOT
228
229 %post
230 %glib_compile_schemas
231
232 %postun
233 %glib_compile_schemas
234
235 %post   libs -p /sbin/ldconfig
236 %postun libs -p /sbin/ldconfig
237
238 %post -n openldap-schema-evolutionperson
239 %openldap_schema_register %{schemadir}/evolutionperson.schema
240 %service -q ldap restart
241
242 %postun -n openldap-schema-evolutionperson
243 if [ "$1" = "0" ]; then
244         %openldap_schema_unregister %{schemadir}/evolutionperson.schema
245         %service -q ldap restart
246 fi
247
248 %files -f %{name}.lang
249 %defattr(644,root,root,755)
250 %doc AUTHORS ChangeLog NEWS* README
251 %attr(755,root,root) %{_libexecdir}/camel-gpg-photo-saver
252 %attr(755,root,root) %{_libexecdir}/camel-index-control-%{apiver}
253 %attr(755,root,root) %{_libexecdir}/camel-lock-helper-%{apiver}
254 %attr(755,root,root) %{_libexecdir}/evolution-addressbook-factory-subprocess
255 %attr(755,root,root) %{_libexecdir}/evolution-addressbook-factory
256 %attr(755,root,root) %{_libexecdir}/evolution-calendar-factory-subprocess
257 %attr(755,root,root) %{_libexecdir}/evolution-calendar-factory
258 %attr(755,root,root) %{_libexecdir}/evolution-scan-gconf-tree-xml
259 %attr(755,root,root) %{_libexecdir}/evolution-source-registry
260 %attr(755,root,root) %{_libexecdir}/evolution-user-prompter
261 %if "%{_libexecdir}" != "%{_libdir}"
262 %dir %{_libexecdir}/%{name}
263 %endif
264 %attr(755,root,root) %{_libexecdir}/%{name}/addressbook-export
265 %attr(755,root,root) %{_libexecdir}/%{name}/csv2vcard
266 %attr(755,root,root) %{_libexecdir}/%{name}/evolution-alarm-notify
267 %attr(755,root,root) %{_libexecdir}/%{name}/list-sources
268 %dir %{_libdir}/%{name}
269 %attr(755,root,root) %{_libdir}/%{name}/libedbus-private.so
270 %dir %{_libdir}/%{name}/addressbook-backends
271 %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/libebookbackendfile.so
272 %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/libebookbackendgoogle.so
273 %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/libebookbackendcarddav.so
274 %dir %{_libdir}/%{name}/calendar-backends
275 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendcaldav.so
276 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendcontacts.so
277 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendfile.so
278 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendgtasks.so
279 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendhttp.so
280 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/libecalbackendweather.so
281 %dir %{_libdir}/%{name}/camel-providers
282 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamelimapx.so
283 %{_libdir}/%{name}/camel-providers/libcamelimapx.urls
284 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamellocal.so
285 %{_libdir}/%{name}/camel-providers/libcamellocal.urls
286 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamelnntp.so
287 %{_libdir}/%{name}/camel-providers/libcamelnntp.urls
288 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamelpop3.so
289 %{_libdir}/%{name}/camel-providers/libcamelpop3.urls
290 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamelsendmail.so
291 %{_libdir}/%{name}/camel-providers/libcamelsendmail.urls
292 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/libcamelsmtp.so
293 %{_libdir}/%{name}/camel-providers/libcamelsmtp.urls
294 %dir %{_libdir}/%{name}/credential-modules
295 %if %{with goa}
296 %attr(755,root,root) %{_libdir}/%{name}/credential-modules/module-credentials-goa.so
297 %endif
298 %dir %{_libdir}/evolution-data-server/registry-modules
299 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-cache-reaper.so
300 %if %{with goa}
301 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-gnome-online-accounts.so
302 %endif
303 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-google-backend.so
304 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-oauth2-services.so
305 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-outlook-backend.so
306 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-secret-monitor.so
307 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-trust-prompt.so
308 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-webdav-backend.so
309 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/module-yahoo-backend.so
310
311 %{systemduserunitdir}/evolution-addressbook-factory.service
312 %{systemduserunitdir}/evolution-calendar-factory.service
313 %{systemduserunitdir}/evolution-source-registry.service
314 %{systemduserunitdir}/evolution-user-prompter.service
315
316 %dir %{_libdir}/%{name}-%{basever}
317 %dir %{_datadir}/%{name}
318 %{_pixmapsdir}/%{name}
319
320 %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.AddressBook.service
321 %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Calendar.service
322 %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Sources.service
323 %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.UserPrompter.service
324
325 %{_datadir}/GConf/gsettings/evolution-data-server.convert
326 %{_datadir}/glib-2.0/schemas/org.gnome.evolution.eds-shell.gschema.xml
327 %{_datadir}/glib-2.0/schemas/org.gnome.evolution.shell.network-config.gschema.xml
328 %{_datadir}/glib-2.0/schemas/org.gnome.Evolution.DefaultSources.gschema.xml
329 %{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.addressbook.gschema.xml
330 %{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.calendar.gschema.xml
331 %{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.gschema.xml
332
333 %{_sysconfdir}/xdg/autostart/org.gnome.Evolution-alarm-notify.desktop
334 %{_desktopdir}/org.gnome.Evolution-alarm-notify.desktop
335
336 %if %{with ldap}
337 %files ldap
338 %defattr(644,root,root,755)
339 %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/libebookbackendldap.so
340 %{_datadir}/%{name}/evolutionperson.schema
341 %endif
342
343 %files -n openldap-schema-evolutionperson
344 %defattr(644,root,root,755)
345 %{schemadir}/evolutionperson.schema
346
347 %files libs
348 %defattr(644,root,root,755)
349 %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so.*.*.*
350 %attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.62
351 %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so.*.*.*
352 %attr(755,root,root) %ghost %{_libdir}/libebackend-%{apiver}.so.10
353 %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.*
354 %attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.19
355 %attr(755,root,root) %{_libdir}/libebook-contacts-%{apiver}.so.*.*.*
356 %attr(755,root,root) %ghost %{_libdir}/libebook-contacts-%{apiver}.so.2
357 %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so.*.*.*
358 %attr(755,root,root) %ghost %{_libdir}/libecal-%{apiver}.so.19
359 %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.*
360 %attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.25
361 %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.*
362 %attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.29
363 %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.*
364 %attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.24
365 %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so.*.*.*
366 %attr(755,root,root) %ghost %{_libdir}/libedataserverui-%{apiver}.so.2
367 %{_libdir}/girepository-1.0/Camel-1.2.typelib
368 %{_libdir}/girepository-1.0/EBook-%{apiver}.typelib
369 %{_libdir}/girepository-1.0/EBookContacts-%{apiver}.typelib
370 %{_libdir}/girepository-1.0/EDataServer-%{apiver}.typelib
371 %{_libdir}/girepository-1.0/EDataServerUI-1.2.typelib
372
373 %files devel
374 %defattr(644,root,root,755)
375 %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so
376 %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so
377 %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so
378 %attr(755,root,root) %{_libdir}/libebook-contacts-%{apiver}.so
379 %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so
380 %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so
381 %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so
382 %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so
383 %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so
384 %{_includedir}/evolution-data-server
385 %{_pkgconfigdir}/camel-%{apiver}.pc
386 %{_pkgconfigdir}/evolution-data-server-%{apiver}.pc
387 %{_pkgconfigdir}/libebackend-%{apiver}.pc
388 %{_pkgconfigdir}/libebook-%{apiver}.pc
389 %{_pkgconfigdir}/libebook-contacts-%{apiver}.pc
390 %{_pkgconfigdir}/libecal-%{apiver}.pc
391 %{_pkgconfigdir}/libedata-book-%{apiver}.pc
392 %{_pkgconfigdir}/libedata-cal-%{apiver}.pc
393 %{_pkgconfigdir}/libedataserver-%{apiver}.pc
394 %{_pkgconfigdir}/libedataserverui-%{apiver}.pc
395 %{_datadir}/gir-1.0/Camel-1.2.gir
396 %{_datadir}/gir-1.0/EBook-%{apiver}.gir
397 %{_datadir}/gir-1.0/EBookContacts-%{apiver}.gir
398 %{_datadir}/gir-1.0/EDataServer-%{apiver}.gir
399 %{_datadir}/gir-1.0/EDataServerUI-1.2.gir
400
401 %if %{with apidocs}
402 %files apidocs
403 %defattr(644,root,root,755)
404 %{_gtkdocdir}/camel
405 %{_gtkdocdir}/evolution-data-server
406 %endif
407
408 %if %{with vala}
409 %files -n vala-evolution-data-server
410 %defattr(644,root,root,755)
411 %{_datadir}/vala/vapi/camel-1.2.deps
412 %{_datadir}/vala/vapi/camel-1.2.vapi
413 %{_datadir}/vala/vapi/libebook-%{apiver}.deps
414 %{_datadir}/vala/vapi/libebook-%{apiver}.vapi
415 %{_datadir}/vala/vapi/libebook-contacts-%{apiver}.deps
416 %{_datadir}/vala/vapi/libebook-contacts-%{apiver}.vapi
417 %{_datadir}/vala/vapi/libedataserver-%{apiver}.deps
418 %{_datadir}/vala/vapi/libedataserver-%{apiver}.vapi
419 %{_datadir}/vala/vapi/libedataserverui-%{apiver}.deps
420 %{_datadir}/vala/vapi/libedataserverui-%{apiver}.vapi
421 %endif
This page took 0.094243 seconds and 2 git commands to generate.