]>
Commit | Line | Data |
---|---|---|
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 vala # do not build Vala API | |
8 | ||
9 | %define basever 3.10 | |
10 | %define apiver 1.2 | |
11 | %define apiver2 3.0 | |
12 | Summary: Evolution data server | |
13 | Summary(pl.UTF-8): Serwer danych Evolution | |
14 | Name: evolution-data-server | |
15 | Version: 3.10.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.10/%{name}-%{version}.tar.xz | |
20 | # Source0-md5: 53c396d9c287f9811f0b489c9ea7032b | |
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.34.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 | BuildRequires: libgdata-devel >= 0.10.0 | |
37 | BuildRequires: libgweather-devel >= 3.5.0 | |
38 | BuildRequires: libical-devel >= 0.43 | |
39 | BuildRequires: libsecret-devel >= 0.5 | |
40 | BuildRequires: libsoup-devel >= 2.40.3 | |
41 | BuildRequires: libstdc++-devel | |
42 | BuildRequires: libtool >= 2:2.2 | |
43 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
44 | BuildRequires: nspr-devel | |
45 | BuildRequires: nss-devel | |
46 | %{?with_ldap:BuildRequires: openldap-evolution-devel >= 2.4.6} | |
47 | BuildRequires: pkgconfig | |
48 | BuildRequires: rpmbuild(macros) >= 1.304 | |
49 | BuildRequires: sed >= 4.0 | |
50 | BuildRequires: sqlite3-devel >= 3.5 | |
51 | BuildRequires: tar >= 1:1.22 | |
52 | %{?with_vala:BuildRequires: vala >= 2:0.14.0} | |
53 | BuildRequires: xz | |
54 | BuildRequires: zlib-devel | |
55 | Requires(post,postun): glib2 >= 1:2.34.0 | |
56 | Requires: %{name}-libs = %{version}-%{release} | |
57 | # sr@Latn vs. sr@latin | |
58 | Conflicts: glibc-misc < 6:2.7 | |
59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
60 | ||
61 | %define schemadir /usr/share/openldap/schema | |
62 | ||
63 | %description | |
64 | The Evolution data server for the calendar and addressbook. | |
65 | ||
66 | %description -l pl.UTF-8 | |
67 | Serwer danych Evolution dla kalendarza i książki adresowej. | |
68 | ||
69 | %package -n openldap-schema-evolutionperson | |
70 | Summary: evolutionperson LDAP schema | |
71 | Summary(pl.UTF-8): Schemat LDAP evolutionperson | |
72 | Group: Networking/Daemons | |
73 | Requires(post,postun): sed >= 4.0 | |
74 | Requires: openldap-servers | |
75 | %if "%{_rpmversion}" >= "5" | |
76 | BuildArch: noarch | |
77 | %endif | |
78 | ||
79 | %description -n openldap-schema-evolutionperson | |
80 | This package contains evolutionperson.schema for openldap server. | |
81 | ||
82 | %description -n openldap-schema-evolutionperson -l pl.UTF-8 | |
83 | Ten pakiet zawiera evolutionperson.schema dla serwera openldap. | |
84 | ||
85 | %package libs | |
86 | Summary: Evolution Data Server library | |
87 | Summary(pl.UTF-8): Biblioteka Evolution Data Server | |
88 | Group: X11/Libraries | |
89 | Requires: libsoup >= 2.40.3 | |
90 | ||
91 | %description libs | |
92 | This package contains Evolution Data Server library. | |
93 | ||
94 | %description libs -l pl.UTF-8 | |
95 | Ten pakiet zawiera bibliotekę Evolution Data Server. | |
96 | ||
97 | %package devel | |
98 | Summary: Evolution data server development files | |
99 | Summary(pl.UTF-8): Pliki programistyczne serwera danych evolution | |
100 | Group: X11/Development/Libraries | |
101 | Requires: %{name}-libs = %{version}-%{release} | |
102 | Requires: glib2-devel >= 1:2.34.0 | |
103 | Requires: gtk+3-devel >= 3.2.0 | |
104 | %{?with_kerberos5:Requires: heimdal-devel} | |
105 | Requires: libgdata-devel >= 0.10.0 | |
106 | Requires: libical-devel >= 0.43 | |
107 | Requires: libsoup-devel >= 2.40.3 | |
108 | Requires: libxml2-devel >= 1:2.6.31 | |
109 | Requires: nspr-devel | |
110 | Requires: nss-devel | |
111 | Requires: sqlite3-devel | |
112 | ||
113 | %description devel | |
114 | This package contains the files necessary to develop applications | |
115 | using Evolution's data server libraries. | |
116 | ||
117 | %description devel -l pl.UTF-8 | |
118 | Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji | |
119 | korzystających z bibliotek serwera danych Evolution. | |
120 | ||
121 | %package static | |
122 | Summary: Evolution data server static libraries | |
123 | Summary(pl.UTF-8): Statyczne biblioteki serwera danych Evolution | |
124 | Group: X11/Development/Libraries | |
125 | Requires: %{name}-devel = %{version}-%{release} | |
126 | ||
127 | %description static | |
128 | Evolution data server static libraries. | |
129 | ||
130 | %description static -l pl.UTF-8 | |
131 | Statyczne biblioteki serwera danych Evolution. | |
132 | ||
133 | %package apidocs | |
134 | Summary: Evolution data server API documentation | |
135 | Summary(pl.UTF-8): Dokumentacja API serwera danych Evolution | |
136 | Group: Documentation | |
137 | Requires: gtk-doc-common | |
138 | ||
139 | %description apidocs | |
140 | Evolution data server API documentation. | |
141 | ||
142 | %description apidocs -l pl.UTF-8 | |
143 | Dokumentacja API serwera danych Evolution. | |
144 | ||
145 | %package -n vala-evolution-data-server | |
146 | Summary: Evolution data server API for Vala language | |
147 | Summary(pl.UTF-8): API serwera danych Evolution dla języka Vala | |
148 | Group: Development/Libraries | |
149 | Requires: %{name}-devel = %{version}-%{release} | |
150 | ||
151 | %description -n vala-evolution-data-server | |
152 | Evolution data server API for Vala language. | |
153 | ||
154 | %description -n vala-evolution-data-server -l pl.UTF-8 | |
155 | API serwera danych Evolution dla języka Vala. | |
156 | ||
157 | %prep | |
158 | %setup -q | |
159 | ||
160 | # kill -L$withval/lib | |
161 | %{__sed} -i -e 's/DB_LIBS="-L[^ "]* /DB_LIBS="/;s/ICONV_LIBS="[^ "]*/ICONV_LIBS="/' configure.ac | |
162 | ||
163 | %build | |
164 | %{__gtkdocize} | |
165 | %{__intltoolize} | |
166 | %{__libtoolize} | |
167 | %{__aclocal} -I m4 | |
168 | %{__autoheader} | |
169 | %{__autoconf} | |
170 | %{__automake} | |
171 | ||
172 | # Set LIBS so that configure will be able to link with static LDAP libraries, | |
173 | # which depend on Cyrus SASL and OpenSSL. | |
174 | if pkg-config openssl ; then | |
175 | LIBS="-lsasl2 `pkg-config --libs openssl`" | |
176 | else | |
177 | LIBS="-lsasl2 -lssl -lcrypto" | |
178 | fi | |
179 | export LIBS | |
180 | ||
181 | %configure \ | |
182 | %{?with_kerberos5:--with-krb5=%{_prefix} --with-krb5-libs=%{_libdir}} \ | |
183 | %{!?with_kerberos5:--with-krb5=no} \ | |
184 | %{?with_ldap:--with-openldap=%{_libdir}/evolution-openldap} \ | |
185 | %{?with_ldap:--with-static-ldap=yes} \ | |
186 | %{!?with_ldap:--with-openldap=no} \ | |
187 | --enable-smime \ | |
188 | --enable-ipv6 \ | |
189 | --enable-nntp \ | |
190 | %{__enable_disable apidocs gtk-doc} \ | |
191 | %{__enable_disable static_libs static} \ | |
192 | %{__enable_disable vala vala-bindings} \ | |
193 | --disable-uoa \ | |
194 | --with-libdb=%{_libdir} \ | |
195 | --with-html-dir=%{_gtkdocdir} \ | |
196 | --disable-silent-rules | |
197 | ||
198 | %{__make} | |
199 | ||
200 | %install | |
201 | rm -rf $RPM_BUILD_ROOT | |
202 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name}-%{basever} | |
203 | install -d $RPM_BUILD_ROOT%{schemadir} | |
204 | ||
205 | %{__make} install \ | |
206 | DESTDIR=$RPM_BUILD_ROOT \ | |
207 | HTML_DIR=%{_gtkdocdir} | |
208 | ||
209 | install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir} | |
210 | ||
211 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/{camel-providers,calendar-backends,addressbook-backends,registry-modules}/*.{la,a} | |
212 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
213 | ||
214 | %find_lang %{name} --all-name | |
215 | ||
216 | %clean | |
217 | rm -rf $RPM_BUILD_ROOT | |
218 | ||
219 | %post | |
220 | %glib_compile_schemas | |
221 | ||
222 | %postun | |
223 | %glib_compile_schemas | |
224 | ||
225 | %post libs -p /sbin/ldconfig | |
226 | %postun libs -p /sbin/ldconfig | |
227 | ||
228 | %post -n openldap-schema-evolutionperson | |
229 | %openldap_schema_register %{schemadir}/evolutionperson.schema | |
230 | %service -q ldap restart | |
231 | ||
232 | %postun -n openldap-schema-evolutionperson | |
233 | if [ "$1" = "0" ]; then | |
234 | %openldap_schema_unregister %{schemadir}/evolutionperson.schema | |
235 | %service -q ldap restart | |
236 | fi | |
237 | ||
238 | %files -f %{name}.lang | |
239 | %defattr(644,root,root,755) | |
240 | %doc AUTHORS ChangeLog NEWS* README | |
241 | %attr(755,root,root) %{_libdir}/camel-index-control-%{apiver} | |
242 | %attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver} | |
243 | %attr(755,root,root) %{_libdir}/evolution-addressbook-factory | |
244 | %attr(755,root,root) %{_libdir}/evolution-calendar-factory | |
245 | %attr(755,root,root) %{_libdir}/evolution-source-registry | |
246 | %attr(755,root,root) %{_libdir}/evolution-user-prompter | |
247 | %dir %{_libdir}/%{name} | |
248 | %dir %{_libdir}/%{name}/camel-providers | |
249 | %attr(755,root,root) %{_libdir}/%{name}/camel-providers/*.so | |
250 | %{_libdir}/%{name}/camel-providers/*.urls | |
251 | %dir %{_libdir}/%{name}/addressbook-backends | |
252 | %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/*.so | |
253 | %dir %{_libdir}/%{name}/calendar-backends | |
254 | %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/*.so | |
255 | %dir %{_libdir}/evolution-data-server/registry-modules | |
256 | %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/*.so | |
257 | ||
258 | %dir %{_libdir}/%{name}-%{basever} | |
259 | ||
260 | %if %{with ldap} | |
261 | %{_datadir}/%{name}/*.schema | |
262 | %endif | |
263 | ||
264 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.AddressBook.service | |
265 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Calendar.service | |
266 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Sources.service | |
267 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.UserPrompter.service | |
268 | ||
269 | %dir %{_datadir}/%{name} | |
270 | %{_pixmapsdir}/%{name} | |
271 | ||
272 | %{_datadir}/GConf/gsettings/evolution-data-server.convert | |
273 | %{_datadir}/GConf/gsettings/libedataserver.convert | |
274 | %{_datadir}/glib-2.0/schemas/org.gnome.evolution.eds-shell.gschema.xml | |
275 | %{_datadir}/glib-2.0/schemas/org.gnome.evolution.shell.network-config.gschema.xml | |
276 | %{_datadir}/glib-2.0/schemas/org.gnome.Evolution.DefaultSources.gschema.xml | |
277 | %{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.addressbook.gschema.xml | |
278 | %{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.calendar.gschema.xml | |
279 | ||
280 | %files -n openldap-schema-evolutionperson | |
281 | %defattr(644,root,root,755) | |
282 | %{schemadir}/evolutionperson.schema | |
283 | ||
284 | %files libs | |
285 | %defattr(644,root,root,755) | |
286 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so.*.*.* | |
287 | %attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.45 | |
288 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so.*.*.* | |
289 | %attr(755,root,root) %ghost %{_libdir}/libebackend-%{apiver}.so.7 | |
290 | %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.* | |
291 | %attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.14 | |
292 | %attr(755,root,root) %{_libdir}/libebook-contacts-%{apiver}.so.*.*.* | |
293 | %attr(755,root,root) %ghost %{_libdir}/libebook-contacts-%{apiver}.so.0 | |
294 | %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so.*.*.* | |
295 | %attr(755,root,root) %ghost %{_libdir}/libecal-%{apiver}.so.16 | |
296 | %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.* | |
297 | %attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.20 | |
298 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.* | |
299 | %attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.23 | |
300 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.* | |
301 | %attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.18 | |
302 | %{_libdir}/girepository-1.0/EBook-%{apiver}.typelib | |
303 | %{_libdir}/girepository-1.0/EBookContacts-%{apiver}.typelib | |
304 | %{_libdir}/girepository-1.0/EDataServer-%{apiver}.typelib | |
305 | ||
306 | %files devel | |
307 | %defattr(644,root,root,755) | |
308 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so | |
309 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so | |
310 | %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so | |
311 | %attr(755,root,root) %{_libdir}/libebook-contacts-%{apiver}.so | |
312 | %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so | |
313 | %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so | |
314 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so | |
315 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so | |
316 | %{_includedir}/evolution-data-server | |
317 | %{_pkgconfigdir}/camel-%{apiver}.pc | |
318 | %{_pkgconfigdir}/evolution-data-server-%{apiver}.pc | |
319 | %{_pkgconfigdir}/libebackend-%{apiver}.pc | |
320 | %{_pkgconfigdir}/libebook-%{apiver}.pc | |
321 | %{_pkgconfigdir}/libebook-contacts-%{apiver}.pc | |
322 | %{_pkgconfigdir}/libecal-%{apiver}.pc | |
323 | %{_pkgconfigdir}/libedata-book-%{apiver}.pc | |
324 | %{_pkgconfigdir}/libedata-cal-%{apiver}.pc | |
325 | %{_pkgconfigdir}/libedataserver-%{apiver}.pc | |
326 | %{_datadir}/gir-1.0/EBook-%{apiver}.gir | |
327 | %{_datadir}/gir-1.0/EBookContacts-%{apiver}.gir | |
328 | %{_datadir}/gir-1.0/EDataServer-%{apiver}.gir | |
329 | ||
330 | %if %{with static_libs} | |
331 | %files static | |
332 | %defattr(644,root,root,755) | |
333 | %{_libdir}/libcamel-%{apiver}.a | |
334 | %{_libdir}/libebackend-%{apiver}.a | |
335 | %{_libdir}/libebook-%{apiver}.a | |
336 | %{_libdir}/libebook-contacts-%{apiver}.a | |
337 | %{_libdir}/libecal-%{apiver}.a | |
338 | %{_libdir}/libedata-book-%{apiver}.a | |
339 | %{_libdir}/libedata-cal-%{apiver}.a | |
340 | %{_libdir}/libedataserver-%{apiver}.a | |
341 | %endif | |
342 | ||
343 | %if %{with apidocs} | |
344 | %files apidocs | |
345 | %defattr(644,root,root,755) | |
346 | %{_gtkdocdir}/camel | |
347 | %{_gtkdocdir}/libebackend | |
348 | %{_gtkdocdir}/libebook | |
349 | %{_gtkdocdir}/libebook-contacts | |
350 | %{_gtkdocdir}/libecal | |
351 | %{_gtkdocdir}/libedata-book | |
352 | %{_gtkdocdir}/libedata-cal | |
353 | %{_gtkdocdir}/libedataserver | |
354 | %endif | |
355 | ||
356 | %if %{with vala} | |
357 | %files -n vala-evolution-data-server | |
358 | %defattr(644,root,root,755) | |
359 | %{_datadir}/vala/vapi/libebook-%{apiver}.deps | |
360 | %{_datadir}/vala/vapi/libebook-%{apiver}.vapi | |
361 | %{_datadir}/vala/vapi/libebook-contacts-1.2.deps | |
362 | %{_datadir}/vala/vapi/libebook-contacts-1.2.vapi | |
363 | %{_datadir}/vala/vapi/libedataserver-1.2.deps | |
364 | %{_datadir}/vala/vapi/libedataserver-%{apiver}.vapi | |
365 | %endif |