4 %define with_introspection 1
8 %define enable_gdata no
9 %define enable_weather no
10 %define enable_email no
12 # should match configure.ac
13 %define so_edataserver 17
15 %define so_edata_cal 20
16 %define so_edata_book 17
20 %define _evo_version 3.11
23 Name: evolution-data-server
26 Summary: Evolution Data Server
28 Group: Development/Libraries
29 Url: http://www.gnome.org
30 Source0: http://download.gnome.org/sources/evolution-data-server/%{baseline}/%{name}-%{version}.tar.xz
31 Source98: baselibs.conf
32 BuildRequires: db4-devel
34 BuildRequires: gcc-c++
35 BuildRequires: gettext-tools
36 BuildRequires: glibc-locale
37 BuildRequires: gnome-common
39 BuildRequires: gtk-doc
40 BuildRequires: intltool
42 BuildRequires: pkgconfig(icu-i18n)
43 BuildRequires: pkgconfig(gcr-base-3) >= 3.4
44 %if %{?enable_goa} != no
45 BuildRequires: pkgconfig(goa-1.0) >= 3.2
47 BuildRequires: pkgconfig(gobject-introspection-1.0)
48 %if %{?enable_gtk} != no
49 BuildRequires: pkgconfig(gtk+-3.0)
51 %if %{?enable_weather} != no
52 BuildRequires: pkgconfig(gweather-3.0) >= 3.5.0
54 # Not sure what this is for. Not checked by current configure.ac?
55 # BuildRequires: pkgconfig(libIDL-2.0)
56 %if %{?enable_gdata} != no
57 BuildRequires: pkgconfig(libgdata) >= 0.10
58 BuildRequires: pkgconfig(oauth)
60 BuildRequires: pkgconfig(libical) >= 0.43
61 BuildRequires: pkgconfig(libsecret-unstable) >= 0.5
62 BuildRequires: pkgconfig(libsoup-2.4) >= 2.40.3
63 BuildRequires: pkgconfig(nss)
64 BuildRequires: pkgconfig(python-2.7)
65 BuildRequires: pkgconfig(sqlite3) >= 3.5
67 Recommends: %{name}-locale = %{version}
69 Obsoletes: evolution-data-server-32bit
71 Requires(post): glib2-tools
72 Requires(postun): glib2-tools
75 Evolution Data Server provides a central location for your address book
76 and calendar in the GNOME Desktop.
80 Summary: Evolution Data Server - Messaging Library
81 Group: System/Libraries
83 %description -n libcamel
84 Evolution Data Server provides a central location for your address book
85 and calendar in the GNOME Desktop.
87 This package contains a shared system library for messaging.
90 %package -n libebackend
91 Summary: Evolution Data Server - Backend Utilities Library
92 Group: System/Libraries
94 %description -n libebackend
95 Evolution Data Server provides a central location for your address book
96 and calendar in the GNOME Desktop.
98 This package contains a shared system library for backends.
102 Summary: Evolution Data Server - Address Book Client Library
103 Group: System/Libraries
105 %description -n libebook
106 Evolution Data Server provides a central location for your address book
107 and calendar in the GNOME Desktop.
109 This package contains a shared system library to access address books.
112 %package -n libebook-contacts
113 Summary: Evolution Data Server - Address Book Client Library
114 Group: System/Libraries
116 %description -n libebook-contacts
117 Evolution Data Server provides a central location for your address book
118 and calendar in the GNOME Desktop.
120 This package contains a shared system library to access address books.
123 %if %{?with_introspection}
125 %package -n typelib-EBookContacts
126 Summary: Evolution Data Server - Address Book Backend Library, Introspection bindings
127 Group: System/Libraries
129 %description -n typelib-EBookContacts
130 Evolution Data Server provides a central location for your address book
131 and calendar in the GNOME Desktop.
133 This package provides the GObject Introspection bindings for the library
134 for address book contacts.
139 Summary: Evolution Data Server - Calendar Client Library
140 Group: System/Libraries
142 %description -n libecal
143 Evolution Data Server provides a central location for your address book
144 and calendar in the GNOME Desktop.
146 This package contains a shared system library to access calendars.
148 %package -n libedata-book
149 Summary: Evolution Data Server - Address Book Backend Library
150 Group: System/Libraries
152 %description -n libedata-book
153 Evolution Data Server provides a central location for your address book
154 and calendar in the GNOME Desktop.
156 This package contains a shared system library for address book backends.
159 %if %{?with_introspection}
161 %package -n typelib-EBook
162 Summary: Evolution Data Server - Address Book Backend Library, Introspection bindings
163 Group: System/Libraries
165 %description -n typelib-EBook
166 Evolution Data Server provides a central location for your address book
167 and calendar in the GNOME Desktop.
169 This package provides the GObject Introspection bindings for the library
170 for address book backends.
174 %package -n libedata-cal
175 Summary: Evolution Data Server - Calendar Backend Library
176 Group: System/Libraries
178 %description -n libedata-cal
179 Evolution Data Server provides a central location for your address book
180 and calendar in the GNOME Desktop.
182 This package contains a shared system library for calendar backends.
185 %package -n libedataserver
186 Summary: Evolution Data Server - Utilities Library
187 Group: System/Libraries
189 %description -n libedataserver
190 Evolution Data Server provides a central location for your address book
191 and calendar in the GNOME Desktop.
193 This package contains a shared system library.
196 %if %{?with_introspection}
198 %package -n typelib-EDataServer
199 Summary: Evolution Data Server - Utilities Library, Introspection bindings
200 Group: System/Libraries
202 %description -n typelib-EDataServer
203 Evolution Data Server provides a central location for your address book
204 and calendar in the GNOME Desktop.
206 This package provides the GObject Introspection bindings for the
207 libedataserver library.
213 Summary: Evolution Data Server - Development Files
214 Group: Development/Libraries
215 Requires: evolution-data-server = %{?epoch:}%{version}
216 Requires: libcamel = %{version}
217 Requires: libebackend = %{version}
218 Requires: libebook = %{version}
219 Requires: libecal = %{version}
220 Requires: libedata-book = %{version}
221 Requires: libedata-cal = %{version}
222 Requires: libedataserver = %{version}
223 %if %{?with_introspection}
224 Requires: typelib-EBook = %{version}
225 Requires: typelib-EDataServer = %{version}
227 Requires(post): /sbin/ldconfig
228 Requires(postun): /sbin/ldconfig
231 The Evolution Data Server development files provide the necessary
232 libraries, headers, and other files for developing applications which
233 use the Evolution Data Server for storing contact and calendar
238 Summary: Evolution Data Server - Developer Documentation
240 Requires: %{name} = %{version}
243 Evolution Data Server provides a central location for your address book
244 and calendar in the GNOME Desktop.
246 This package contains developer documentation.
253 # "maintainer mode" depends on GTK and is not needed
254 # for packaging, so disable it.
257 --libexecdir=%{_libexecdir}/evolution-data-server \
258 --disable-maintainer-mode \
259 --enable-ipv6=%{?enable_ipv6} \
260 --enable-smime=%{?enable_smime} \
261 --enable-nntp=%{?enable_nntp} \
264 --enable-goa=%{?enable_goa} \
265 --enable-weather=%{?enable_weather} \
266 --enable-gtk=%{?enable_gtk} \
267 --enable-google=%{?enable_gdata} \
268 %if %{?with_introspection}
269 --enable-vala-bindings \
270 --enable-introspection \
272 --disable-vala-bindings \
273 --disable-introspection \
276 # end of configure line
278 make %{?_smp_mflags} V=1
282 mkdir -p %{buildroot}/%{_datadir}/help
283 %find_lang evolution-data-server-%{_evo_version}
284 mv evolution-data-server-%{_evo_version}.lang evolution-data-server.lang
290 %glib2_gsettings_schema_post
293 %glib2_gsettings_schema_postun
295 %post -n libcamel -p /sbin/ldconfig
297 %postun -n libcamel -p /sbin/ldconfig
299 %post -n libebackend -p /sbin/ldconfig
301 %postun -n libebackend -p /sbin/ldconfig
303 %post -n libebook -p /sbin/ldconfig
305 %postun -n libebook -p /sbin/ldconfig
307 %post -n libebook-contacts -p /sbin/ldconfig
309 %postun -n libebook-contacts -p /sbin/ldconfig
311 %post -n libecal -p /sbin/ldconfig
313 %postun -n libecal -p /sbin/ldconfig
315 %post -n libedata-book -p /sbin/ldconfig
317 %postun -n libedata-book -p /sbin/ldconfig
319 %post -n libedata-cal -p /sbin/ldconfig
321 %postun -n libedata-cal -p /sbin/ldconfig
323 %post -n libedataserver -p /sbin/ldconfig
325 %postun -n libedataserver -p /sbin/ldconfig
329 %defattr(-,root,root)
331 %{_datadir}/GConf/gsettings/evolution-data-server.convert
332 %{_datadir}/GConf/gsettings/libedataserver.convert
333 %{_datadir}/glib-2.0/schemas/org.gnome.Evolution.DefaultSources.gschema.xml
334 %{_datadir}/glib-2.0/schemas/org.gnome.evolution.eds-shell.gschema.xml
335 %{_datadir}/glib-2.0/schemas/org.gnome.evolution.shell.network-config.gschema.xml
336 %{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.addressbook.gschema.xml
337 %{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.calendar.gschema.xml
338 %{_datadir}/pixmaps/evolution-data-server/
339 %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.*.service
340 %{_libdir}/evolution-data-server/
341 %if "%{_libdir}" != "%{_libexecdir}"
342 %{_libexecdir}/evolution-data-server/
347 %defattr(-, root, root)
348 %{_libdir}/libcamel-1.2.so.%{so_camel}*
351 %files -n libebackend
352 %defattr(-, root, root)
353 %{_libdir}/libebackend-1.2.so.%{so_ebackend}*
357 %defattr(-, root, root)
358 %{_libdir}/libebook-1.2.so.%{so_ebook}*
361 %if %{?with_introspection}
362 %files -n typelib-EBook
363 %defattr(-, root, root)
364 %{_libdir}/girepository-1.0/EBook-1.2.typelib
368 %files -n libebook-contacts
369 %defattr(-, root, root)
370 %{_libdir}/libebook-contacts-1.2.so.0*
373 %if %{?with_introspection}
374 %files -n typelib-EBookContacts
375 %defattr(-, root, root)
376 %{_libdir}/girepository-1.0/EBookContacts-1.2.typelib
381 %defattr(-, root, root)
382 %{_libdir}/libecal-1.2.so.%{so_ecal}*
385 %files -n libedata-book
386 %defattr(-, root, root)
387 %{_libdir}/libedata-book-1.2.so.%{so_edata_book}*
390 %files -n libedata-cal
391 %defattr(-, root, root)
392 %{_libdir}/libedata-cal-1.2.so.%{so_edata_cal}*
395 %files -n libedataserver
396 %defattr(-, root, root)
397 %{_libdir}/libedataserver-1.2.so.%{so_edataserver}*
400 %if %{?with_introspection}
401 %files -n typelib-EDataServer
402 %defattr(-, root, root)
403 %{_libdir}/girepository-1.0/EDataServer-1.2.typelib
408 %defattr(-, root, root)
409 %{_includedir}/evolution-data-server/
411 %{_libdir}/pkgconfig/*.pc
412 %if %{?with_introspection}
413 %{_datadir}/gir-1.0/*.gir
414 %dir %{_datadir}/vala
415 %dir %{_datadir}/vala/vapi
416 %{_datadir}/vala/vapi/*.deps
417 %{_datadir}/vala/vapi/*.vapi