]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without kerberos5 # build without kerberos5 support | |
4 | %bcond_without ldap # build without ldap support | |
5 | # | |
6 | %define basever 3.4 | |
7 | %define apiver 1.2 | |
8 | %define apiver2 3.0 | |
9 | # | |
10 | Summary: Evolution data server | |
11 | Summary(pl.UTF-8): Serwer danych Evolution | |
12 | Name: evolution-data-server | |
13 | Version: 3.4.3 | |
14 | Release: 1 | |
15 | License: LGPL v2+ | |
16 | Group: X11/Libraries | |
17 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/3.4/%{name}-%{version}.tar.xz | |
18 | # Source0-md5: 1e423c57891603207bd5950b706d0202 | |
19 | Patch0: %{name}-am-Werror.patch | |
20 | URL: http://www.gnome.org/projects/evolution/ | |
21 | BuildRequires: GConf2-devel >= 2.26.0 | |
22 | BuildRequires: autoconf >= 2.62 | |
23 | BuildRequires: automake >= 1:1.11 | |
24 | BuildRequires: bison | |
25 | BuildRequires: dbus-glib-devel | |
26 | BuildRequires: docbook-dtd412-xml | |
27 | BuildRequires: gettext-devel >= 0.18.1 | |
28 | BuildRequires: glib2-devel >= 1:2.30.0 | |
29 | BuildRequires: gnome-common >= 2.20.0 | |
30 | BuildRequires: gnome-online-accounts-devel >= 3.2.0 | |
31 | BuildRequires: gobject-introspection-devel >= 0.10.0 | |
32 | BuildRequires: gperf | |
33 | BuildRequires: gtk+3-devel >= 3.2.0 | |
34 | BuildRequires: gtk-doc >= 1.14 | |
35 | %{?with_kerberos5:BuildRequires: heimdal-devel} | |
36 | BuildRequires: intltool >= 0.40.0 | |
37 | BuildRequires: libgdata-devel >= 0.10.0 | |
38 | BuildRequires: libgnome-keyring-devel >= 2.26.0 | |
39 | BuildRequires: libgweather-devel >= 3.0.0 | |
40 | BuildRequires: libical-devel >= 0.43 | |
41 | BuildRequires: liboauth-devel >= 0.9.4 | |
42 | BuildRequires: libsoup-devel >= 2.32.0 | |
43 | BuildRequires: libstdc++-devel | |
44 | BuildRequires: libtool >= 2:2.2 | |
45 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
46 | BuildRequires: nspr-devel | |
47 | BuildRequires: nss-devel | |
48 | %{?with_ldap:BuildRequires: openldap-evolution-devel >= 2.4.6} | |
49 | BuildRequires: openssl-devel | |
50 | BuildRequires: pkgconfig | |
51 | BuildRequires: rpmbuild(macros) >= 1.304 | |
52 | BuildRequires: sed >= 4.0 | |
53 | BuildRequires: sqlite3-devel >= 3.5 | |
54 | BuildRequires: tar >= 1:1.22 | |
55 | BuildRequires: vala >= 2:0.14.0 | |
56 | BuildRequires: xz | |
57 | BuildRequires: zlib-devel | |
58 | Requires(post,postun): glib2 >= 1:2.26.0 | |
59 | Requires: %{name}-libs = %{version}-%{release} | |
60 | # sr@Latn vs. sr@latin | |
61 | Conflicts: glibc-misc < 6:2.7 | |
62 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
63 | ||
64 | %define schemadir /usr/share/openldap/schema | |
65 | ||
66 | %description | |
67 | The Evolution data server for the calendar and addressbook. | |
68 | ||
69 | %description -l pl.UTF-8 | |
70 | Serwer danych Evolution dla kalendarza i książki adresowej. | |
71 | ||
72 | %package -n openldap-schema-evolutionperson | |
73 | Summary: evolutionperson LDAP schema | |
74 | Summary(pl.UTF-8): Schemat LDAP evolutionperson | |
75 | Group: Networking/Daemons | |
76 | Requires(post,postun): sed >= 4.0 | |
77 | Requires: openldap-servers | |
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.32.0 | |
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: GConf2-devel >= 2.26.0 | |
103 | Requires: glib2-devel >= 1:2.30.0 | |
104 | Requires: gtk+3-devel >= 3.2.0 | |
105 | %{?with_kerberos5:Requires: heimdal-devel} | |
106 | Requires: libgdata-devel >= 0.10.0 | |
107 | Requires: libical-devel >= 0.43 | |
108 | Requires: libsoup-devel >= 2.32.0 | |
109 | Requires: libxml2-devel >= 1:2.6.31 | |
110 | Requires: nspr-devel | |
111 | Requires: nss-devel | |
112 | Requires: sqlite3-devel | |
113 | ||
114 | %description devel | |
115 | This package contains the files necessary to develop applications | |
116 | using Evolution's data server libraries. | |
117 | ||
118 | %description devel -l pl.UTF-8 | |
119 | Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji | |
120 | korzystających z bibliotek serwera danych Evolution. | |
121 | ||
122 | %package static | |
123 | Summary: Evolution data server static libraries | |
124 | Summary(pl.UTF-8): Statyczne biblioteki serwera danych Evolution | |
125 | Group: X11/Development/Libraries | |
126 | Requires: %{name}-devel = %{version}-%{release} | |
127 | ||
128 | %description static | |
129 | Evolution data server static libraries. | |
130 | ||
131 | %description static -l pl.UTF-8 | |
132 | Statyczne biblioteki serwera danych Evolution. | |
133 | ||
134 | %package apidocs | |
135 | Summary: Evolution data server API documentation | |
136 | Summary(pl.UTF-8): Dokumentacja API serwera danych Evolution | |
137 | Group: Documentation | |
138 | Requires: gtk-doc-common | |
139 | ||
140 | %description apidocs | |
141 | Evolution data server API documentation. | |
142 | ||
143 | %description apidocs -l pl.UTF-8 | |
144 | Dokumentacja API serwera danych Evolution. | |
145 | ||
146 | %prep | |
147 | %setup -q | |
148 | %patch0 -p1 | |
149 | ||
150 | # kill -L$withval/lib | |
151 | %{__sed} -i -e 's/DB_LIBS="-L[^ "]* /DB_LIBS="/;s/ICONV_LIBS="[^ "]*/ICONV_LIBS="/' configure.ac | |
152 | ||
153 | %build | |
154 | %{__gtkdocize} | |
155 | %{__gettextize} | |
156 | %{__intltoolize} | |
157 | %{__libtoolize} | |
158 | %{__aclocal} -I m4 | |
159 | %{__autoheader} | |
160 | %{__autoconf} | |
161 | %{__automake} | |
162 | ||
163 | # Set LIBS so that configure will be able to link with static LDAP libraries, | |
164 | # which depend on Cyrus SASL and OpenSSL. | |
165 | if pkg-config openssl ; then | |
166 | LIBS="-lsasl2 `pkg-config --libs openssl`" | |
167 | else | |
168 | LIBS="-lsasl2 -lssl -lcrypto" | |
169 | fi | |
170 | export LIBS | |
171 | ||
172 | %configure \ | |
173 | %{?with_kerberos5:--with-krb5=%{_prefix} --with-krb5-libs=%{_libdir}} \ | |
174 | %{!?with_kerberos5:--with-krb5=no} \ | |
175 | %{?with_ldap:--with-openldap=%{_libdir}/evolution-openldap} \ | |
176 | %{?with_ldap:--with-static-ldap=yes} \ | |
177 | %{!?with_ldap:--with-openldap=no} \ | |
178 | --enable-smime \ | |
179 | --enable-ipv6 \ | |
180 | --enable-nntp \ | |
181 | --enable-gtk-doc \ | |
182 | --enable-static \ | |
183 | --enable-vala-bindings \ | |
184 | --with-libdb=%{_libdir} \ | |
185 | --with-html-dir=%{_gtkdocdir} \ | |
186 | --disable-silent-rules | |
187 | ||
188 | %{__make} | |
189 | ||
190 | %install | |
191 | rm -rf $RPM_BUILD_ROOT | |
192 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name}-%{basever} | |
193 | install -d $RPM_BUILD_ROOT%{schemadir} | |
194 | ||
195 | %{__make} install \ | |
196 | DESTDIR=$RPM_BUILD_ROOT \ | |
197 | HTML_DIR=%{_gtkdocdir} | |
198 | ||
199 | install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir} | |
200 | ||
201 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/{camel-providers,calendar-backends,addressbook-backends}/*.{la,a} | |
202 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
203 | ||
204 | %find_lang %{name} --all-name | |
205 | ||
206 | %clean | |
207 | rm -rf $RPM_BUILD_ROOT | |
208 | ||
209 | %post | |
210 | %glib_compile_schemas | |
211 | ||
212 | %postun | |
213 | %glib_compile_schemas | |
214 | ||
215 | %post libs -p /sbin/ldconfig | |
216 | %postun libs -p /sbin/ldconfig | |
217 | ||
218 | %post -n openldap-schema-evolutionperson | |
219 | %openldap_schema_register %{schemadir}/evolutionperson.schema | |
220 | %service -q ldap restart | |
221 | ||
222 | %postun -n openldap-schema-evolutionperson | |
223 | if [ "$1" = "0" ]; then | |
224 | %openldap_schema_unregister %{schemadir}/evolutionperson.schema | |
225 | %service -q ldap restart | |
226 | fi | |
227 | ||
228 | %files -f %{name}.lang | |
229 | %defattr(644,root,root,755) | |
230 | %doc AUTHORS ChangeLog NEWS* README | |
231 | %attr(755,root,root) %{_libdir}/camel-index-control-%{apiver} | |
232 | %attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver} | |
233 | %attr(755,root,root) %{_libdir}/evolution-addressbook-factory | |
234 | %attr(755,root,root) %{_libdir}/evolution-calendar-factory | |
235 | %dir %{_libdir}/%{name} | |
236 | %dir %{_libdir}/%{name}/camel-providers | |
237 | %attr(755,root,root) %{_libdir}/%{name}/camel-providers/*.so | |
238 | %{_libdir}/%{name}/camel-providers/*.urls | |
239 | %dir %{_libdir}/%{name}/addressbook-backends | |
240 | %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/*.so | |
241 | %dir %{_libdir}/%{name}/calendar-backends | |
242 | %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/*.so | |
243 | ||
244 | %dir %{_libdir}/%{name}-%{basever} | |
245 | ||
246 | %if %{with ldap} | |
247 | %{_datadir}/%{name}-%{basever}/*.schema | |
248 | %endif | |
249 | ||
250 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.AddressBook.service | |
251 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Calendar.service | |
252 | ||
253 | %dir %{_datadir}/%{name}-%{basever} | |
254 | %{_pixmapsdir}/%{name} | |
255 | ||
256 | %{_datadir}/GConf/gsettings/libedataserver.convert | |
257 | %{_datadir}/glib-2.0/schemas/org.gnome.evolution.eds-shell.gschema.xml | |
258 | %{_datadir}/glib-2.0/schemas/org.gnome.evolution.shell.network-config.gschema.xml | |
259 | ||
260 | %files -n openldap-schema-evolutionperson | |
261 | %defattr(644,root,root,755) | |
262 | %{schemadir}/evolutionperson.schema | |
263 | ||
264 | %files libs | |
265 | %defattr(644,root,root,755) | |
266 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so.*.*.* | |
267 | %attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.33 | |
268 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so.*.*.* | |
269 | %attr(755,root,root) %ghost %{_libdir}/libebackend-%{apiver}.so.2 | |
270 | %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.* | |
271 | %attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.13 | |
272 | %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so.*.*.* | |
273 | %attr(755,root,root) %ghost %{_libdir}/libecal-%{apiver}.so.11 | |
274 | %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.* | |
275 | %attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.13 | |
276 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.* | |
277 | %attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.15 | |
278 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.* | |
279 | %attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.16 | |
280 | %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver2}.so.*.*.* | |
281 | %attr(755,root,root) %ghost %{_libdir}/libedataserverui-%{apiver2}.so.1 | |
282 | %{_libdir}/girepository-1.0/EBook-1.2.typelib | |
283 | %{_libdir}/girepository-1.0/ECalendar-1.2.typelib | |
284 | %{_libdir}/girepository-1.0/EDataServer-1.2.typelib | |
285 | ||
286 | %files devel | |
287 | %defattr(644,root,root,755) | |
288 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so | |
289 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so | |
290 | %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so | |
291 | %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so | |
292 | %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so | |
293 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so | |
294 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so | |
295 | %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver2}.so | |
296 | %{_includedir}/evolution-data-server-%{basever} | |
297 | %{_pkgconfigdir}/camel-%{apiver}.pc | |
298 | %{_pkgconfigdir}/evolution-data-server-%{apiver}.pc | |
299 | %{_pkgconfigdir}/libebackend-%{apiver}.pc | |
300 | %{_pkgconfigdir}/libebook-%{apiver}.pc | |
301 | %{_pkgconfigdir}/libecal-%{apiver}.pc | |
302 | %{_pkgconfigdir}/libedata-book-%{apiver}.pc | |
303 | %{_pkgconfigdir}/libedata-cal-%{apiver}.pc | |
304 | %{_pkgconfigdir}/libedataserver-%{apiver}.pc | |
305 | %{_pkgconfigdir}/libedataserverui-%{apiver2}.pc | |
306 | %{_datadir}/gir-1.0/EBook-1.2.gir | |
307 | %{_datadir}/gir-1.0/ECalendar-1.2.gir | |
308 | %{_datadir}/gir-1.0/EDataServer-1.2.gir | |
309 | %{_datadir}/vala/vapi/libebook-1.2.deps | |
310 | %{_datadir}/vala/vapi/libebook-1.2.vapi | |
311 | %{_datadir}/vala/vapi/libecalendar-1.2.deps | |
312 | %{_datadir}/vala/vapi/libecalendar-1.2.vapi | |
313 | %{_datadir}/vala/vapi/libedataserver-1.2.vapi | |
314 | ||
315 | %files static | |
316 | %defattr(644,root,root,755) | |
317 | %{_libdir}/libcamel-%{apiver}.a | |
318 | %{_libdir}/libebackend-%{apiver}.a | |
319 | %{_libdir}/libebook-%{apiver}.a | |
320 | %{_libdir}/libecal-%{apiver}.a | |
321 | %{_libdir}/libedata-book-%{apiver}.a | |
322 | %{_libdir}/libedata-cal-%{apiver}.a | |
323 | %{_libdir}/libedataserver-%{apiver}.a | |
324 | %{_libdir}/libedataserverui-%{apiver2}.a | |
325 | ||
326 | %files apidocs | |
327 | %defattr(644,root,root,755) | |
328 | %{_gtkdocdir}/camel | |
329 | %{_gtkdocdir}/libebackend | |
330 | %{_gtkdocdir}/libebook | |
331 | %{_gtkdocdir}/libecal | |
332 | %{_gtkdocdir}/libedata-book | |
333 | %{_gtkdocdir}/libedata-cal | |
334 | %{_gtkdocdir}/libedataserver | |
335 | %{_gtkdocdir}/libedataserverui |