]>
Commit | Line | Data |
---|---|---|
8a5a422a | 1 | # |
69577d81 | 2 | # Conditional build: |
51160b41 | 3 | %bcond_without kerberos5 # build without kerberos5 support |
4 | %bcond_without ldap # build without ldap support | |
69577d81 | 5 | # |
f5e8c52c | 6 | %define basever 3.4 |
e2ebc190 | 7 | %define apiver 1.2 |
c605b556 | 8 | %define apiver2 3.0 |
8c6c91f2 | 9 | # |
11b4e6b5 | 10 | Summary: Evolution data server |
7628f827 | 11 | Summary(pl.UTF-8): Serwer danych Evolution |
11b4e6b5 | 12 | Name: evolution-data-server |
77d4bf26 | 13 | Version: 3.4.3 |
f5e8c52c | 14 | Release: 1 |
dbed574c | 15 | License: LGPL v2+ |
814bd254 | 16 | Group: X11/Libraries |
f5e8c52c | 17 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/3.4/%{name}-%{version}.tar.xz |
77d4bf26 MB |
18 | # Source0-md5: 1e423c57891603207bd5950b706d0202 |
19 | Patch0: %{name}-am-Werror.patch | |
c22a020a | 20 | URL: http://www.gnome.org/projects/evolution/ |
51cb5b15 | 21 | BuildRequires: GConf2-devel >= 2.26.0 |
c605b556 | 22 | BuildRequires: autoconf >= 2.62 |
79de9f36 | 23 | BuildRequires: automake >= 1:1.11 |
e2ebc190 | 24 | BuildRequires: bison |
f5e8c52c | 25 | BuildRequires: dbus-glib-devel |
96160e38 | 26 | BuildRequires: docbook-dtd412-xml |
c605b556 | 27 | BuildRequires: gettext-devel >= 0.18.1 |
f5e8c52c | 28 | BuildRequires: glib2-devel >= 1:2.30.0 |
ea3ad516 | 29 | BuildRequires: gnome-common >= 2.20.0 |
f5e8c52c | 30 | BuildRequires: gnome-online-accounts-devel >= 3.2.0 |
79de9f36 | 31 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
d187a81d | 32 | BuildRequires: gperf |
f5e8c52c MB |
33 | BuildRequires: gtk+3-devel >= 3.2.0 |
34 | BuildRequires: gtk-doc >= 1.14 | |
b025b6f4 | 35 | %{?with_kerberos5:BuildRequires: heimdal-devel} |
d187a81d | 36 | BuildRequires: intltool >= 0.40.0 |
f5e8c52c | 37 | BuildRequires: libgdata-devel >= 0.10.0 |
d187a81d | 38 | BuildRequires: libgnome-keyring-devel >= 2.26.0 |
9001a962 | 39 | BuildRequires: libgweather-devel >= 3.0.0 |
51cb5b15 | 40 | BuildRequires: libical-devel >= 0.43 |
79de9f36 | 41 | BuildRequires: liboauth-devel >= 0.9.4 |
f5e8c52c | 42 | BuildRequires: libsoup-devel >= 2.32.0 |
e2c48f95 | 43 | BuildRequires: libstdc++-devel |
c605b556 | 44 | BuildRequires: libtool >= 2:2.2 |
814bd254 | 45 | BuildRequires: libxml2-devel >= 1:2.6.31 |
94fa296c | 46 | BuildRequires: nspr-devel |
4e7b9656 | 47 | BuildRequires: nss-devel |
a33049a0 | 48 | %{?with_ldap:BuildRequires: openldap-evolution-devel >= 2.4.6} |
8f24fc3c | 49 | BuildRequires: openssl-devel |
353eadf1 | 50 | BuildRequires: pkgconfig |
7937d160 | 51 | BuildRequires: rpmbuild(macros) >= 1.304 |
483474c5 | 52 | BuildRequires: sed >= 4.0 |
f9dd3cd2 | 53 | BuildRequires: sqlite3-devel >= 3.5 |
79de9f36 | 54 | BuildRequires: tar >= 1:1.22 |
f5e8c52c | 55 | BuildRequires: vala >= 2:0.14.0 |
79de9f36 | 56 | BuildRequires: xz |
814bd254 | 57 | BuildRequires: zlib-devel |
f5e8c52c | 58 | Requires(post,postun): glib2 >= 1:2.26.0 |
73b9c62c | 59 | Requires: %{name}-libs = %{version}-%{release} |
b11884f3 | 60 | # sr@Latn vs. sr@latin |
61 | Conflicts: glibc-misc < 6:2.7 | |
353eadf1 | 62 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
11b4e6b5 | 63 | |
9b5d553a ER |
64 | %define schemadir /usr/share/openldap/schema |
65 | ||
11b4e6b5 | 66 | %description |
353eadf1 JB |
67 | The Evolution data server for the calendar and addressbook. |
68 | ||
5f6b5ac6 JR |
69 | %description -l pl.UTF-8 |
70 | Serwer danych Evolution dla kalendarza i książki adresowej. | |
11b4e6b5 | 71 | |
9b5d553a ER |
72 | %package -n openldap-schema-evolutionperson |
73 | Summary: evolutionperson LDAP schema | |
7628f827 | 74 | Summary(pl.UTF-8): Schemat LDAP evolutionperson |
9b5d553a ER |
75 | Group: Networking/Daemons |
76 | Requires(post,postun): sed >= 4.0 | |
77 | Requires: openldap-servers | |
78 | ||
79 | %description -n openldap-schema-evolutionperson | |
93dbcff5 JB |
80 | This package contains evolutionperson.schema for openldap server. |
81 | ||
5f6b5ac6 | 82 | %description -n openldap-schema-evolutionperson -l pl.UTF-8 |
93dbcff5 | 83 | Ten pakiet zawiera evolutionperson.schema dla serwera openldap. |
9b5d553a | 84 | |
0931c5d7 JB |
85 | %package libs |
86 | Summary: Evolution Data Server library | |
7628f827 | 87 | Summary(pl.UTF-8): Biblioteka Evolution Data Server |
814bd254 | 88 | Group: X11/Libraries |
f5e8c52c | 89 | Requires: libsoup >= 2.32.0 |
0931c5d7 JB |
90 | |
91 | %description libs | |
92 | This package contains Evolution Data Server library. | |
93 | ||
5f6b5ac6 JR |
94 | %description libs -l pl.UTF-8 |
95 | Ten pakiet zawiera bibliotekę Evolution Data Server. | |
0931c5d7 | 96 | |
11b4e6b5 | 97 | %package devel |
98 | Summary: Evolution data server development files | |
7628f827 | 99 | Summary(pl.UTF-8): Pliki programistyczne serwera danych evolution |
814bd254 | 100 | Group: X11/Development/Libraries |
0931c5d7 | 101 | Requires: %{name}-libs = %{version}-%{release} |
51cb5b15 | 102 | Requires: GConf2-devel >= 2.26.0 |
f5e8c52c MB |
103 | Requires: glib2-devel >= 1:2.30.0 |
104 | Requires: gtk+3-devel >= 3.2.0 | |
b025b6f4 | 105 | %{?with_kerberos5:Requires: heimdal-devel} |
f5e8c52c | 106 | Requires: libgdata-devel >= 0.10.0 |
51cb5b15 | 107 | Requires: libical-devel >= 0.43 |
f5e8c52c | 108 | Requires: libsoup-devel >= 2.32.0 |
814bd254 | 109 | Requires: libxml2-devel >= 1:2.6.31 |
78e9ab13 | 110 | Requires: nspr-devel |
111 | Requires: nss-devel | |
51cb5b15 | 112 | Requires: sqlite3-devel |
11b4e6b5 | 113 | |
114 | %description devel | |
46c4d742 | 115 | This package contains the files necessary to develop applications |
116 | using Evolution's data server libraries. | |
11b4e6b5 | 117 | |
5f6b5ac6 | 118 | %description devel -l pl.UTF-8 |
353eadf1 | 119 | Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji |
5f6b5ac6 | 120 | korzystających z bibliotek serwera danych Evolution. |
353eadf1 | 121 | |
8a5a422a | 122 | %package static |
123 | Summary: Evolution data server static libraries | |
7628f827 | 124 | Summary(pl.UTF-8): Statyczne biblioteki serwera danych Evolution |
814bd254 | 125 | Group: X11/Development/Libraries |
f1e06abe | 126 | Requires: %{name}-devel = %{version}-%{release} |
8a5a422a | 127 | |
128 | %description static | |
129 | Evolution data server static libraries. | |
130 | ||
5f6b5ac6 | 131 | %description static -l pl.UTF-8 |
353eadf1 JB |
132 | Statyczne biblioteki serwera danych Evolution. |
133 | ||
ac5ccf41 | 134 | %package apidocs |
59a68038 JB |
135 | Summary: Evolution data server API documentation |
136 | Summary(pl.UTF-8): Dokumentacja API serwera danych Evolution | |
ac5ccf41 | 137 | Group: Documentation |
138 | Requires: gtk-doc-common | |
139 | ||
140 | %description apidocs | |
59a68038 | 141 | Evolution data server API documentation. |
ac5ccf41 | 142 | |
5f6b5ac6 | 143 | %description apidocs -l pl.UTF-8 |
59a68038 | 144 | Dokumentacja API serwera danych Evolution. |
ac5ccf41 | 145 | |
11b4e6b5 | 146 | %prep |
4ff8ccbf | 147 | %setup -q |
77d4bf26 | 148 | %patch0 -p1 |
11b4e6b5 | 149 | |
a99ed00a | 150 | # kill -L$withval/lib |
c605b556 | 151 | %{__sed} -i -e 's/DB_LIBS="-L[^ "]* /DB_LIBS="/;s/ICONV_LIBS="[^ "]*/ICONV_LIBS="/' configure.ac |
a99ed00a | 152 | |
11b4e6b5 | 153 | %build |
df83f2ab | 154 | %{__gtkdocize} |
c605b556 | 155 | %{__gettextize} |
8f8bf49b | 156 | %{__intltoolize} |
46c4d742 | 157 | %{__libtoolize} |
f9dd3cd2 | 158 | %{__aclocal} -I m4 |
46c4d742 | 159 | %{__autoheader} |
160 | %{__autoconf} | |
161 | %{__automake} | |
0f23eebb | 162 | |
a33049a0 JR |
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 | ||
46c4d742 | 172 | %configure \ |
a99ed00a | 173 | %{?with_kerberos5:--with-krb5=%{_prefix} --with-krb5-libs=%{_libdir}} \ |
51160b41 | 174 | %{!?with_kerberos5:--with-krb5=no} \ |
a33049a0 JR |
175 | %{?with_ldap:--with-openldap=%{_libdir}/evolution-openldap} \ |
176 | %{?with_ldap:--with-static-ldap=yes} \ | |
51160b41 | 177 | %{!?with_ldap:--with-openldap=no} \ |
c605b556 | 178 | --enable-smime \ |
179 | --enable-ipv6 \ | |
c605b556 | 180 | --enable-nntp \ |
8a5a422a | 181 | --enable-gtk-doc \ |
182 | --enable-static \ | |
79de9f36 | 183 | --enable-vala-bindings \ |
51cb5b15 | 184 | --with-libdb=%{_libdir} \ |
d187a81d MB |
185 | --with-html-dir=%{_gtkdocdir} \ |
186 | --disable-silent-rules | |
52730793 | 187 | |
51cb5b15 | 188 | %{__make} |
11b4e6b5 | 189 | |
190 | %install | |
191 | rm -rf $RPM_BUILD_ROOT | |
f5e8c52c | 192 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name}-%{basever} |
51cb5b15 | 193 | install -d $RPM_BUILD_ROOT%{schemadir} |
11b4e6b5 | 194 | |
195 | %{__make} install \ | |
46c4d742 | 196 | DESTDIR=$RPM_BUILD_ROOT \ |
51cb5b15 | 197 | HTML_DIR=%{_gtkdocdir} |
94fa296c | 198 | |
9b5d553a ER |
199 | install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir} |
200 | ||
c605b556 | 201 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/{camel-providers,calendar-backends,addressbook-backends}/*.{la,a} |
202 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
51cb5b15 | 203 | |
46c4d742 | 204 | %find_lang %{name} --all-name |
11b4e6b5 | 205 | |
206 | %clean | |
207 | rm -rf $RPM_BUILD_ROOT | |
208 | ||
f5e8c52c MB |
209 | %post |
210 | %glib_compile_schemas | |
211 | ||
212 | %postun | |
213 | %glib_compile_schemas | |
214 | ||
73b9c62c | 215 | %post libs -p /sbin/ldconfig |
216 | %postun libs -p /sbin/ldconfig | |
217 | ||
9b5d553a | 218 | %post -n openldap-schema-evolutionperson |
7937d160 ER |
219 | %openldap_schema_register %{schemadir}/evolutionperson.schema |
220 | %service -q ldap restart | |
9b5d553a ER |
221 | |
222 | %postun -n openldap-schema-evolutionperson | |
223 | if [ "$1" = "0" ]; then | |
7937d160 ER |
224 | %openldap_schema_unregister %{schemadir}/evolutionperson.schema |
225 | %service -q ldap restart | |
9b5d553a ER |
226 | fi |
227 | ||
46c4d742 | 228 | %files -f %{name}.lang |
11b4e6b5 | 229 | %defattr(644,root,root,755) |
46c4d742 | 230 | %doc AUTHORS ChangeLog NEWS* README |
e2ebc190 | 231 | %attr(755,root,root) %{_libdir}/camel-index-control-%{apiver} |
232 | %attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver} | |
f5e8c52c MB |
233 | %attr(755,root,root) %{_libdir}/evolution-addressbook-factory |
234 | %attr(755,root,root) %{_libdir}/evolution-calendar-factory | |
c605b556 | 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 | |
e2ebc190 | 243 | |
f5e8c52c MB |
244 | %dir %{_libdir}/%{name}-%{basever} |
245 | ||
be45f956 | 246 | %if %{with ldap} |
e3a9d40d | 247 | %{_datadir}/%{name}-%{basever}/*.schema |
be45f956 | 248 | %endif |
249 | ||
d187a81d MB |
250 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.AddressBook.service |
251 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Calendar.service | |
252 | ||
e2ebc190 | 253 | %dir %{_datadir}/%{name}-%{basever} |
042cdced | 254 | %{_pixmapsdir}/%{name} |
46c4d742 | 255 | |
f5e8c52c MB |
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 | ||
9b5d553a ER |
260 | %files -n openldap-schema-evolutionperson |
261 | %defattr(644,root,root,755) | |
814bd254 | 262 | %{schemadir}/evolutionperson.schema |
9b5d553a | 263 | |
0931c5d7 JB |
264 | %files libs |
265 | %defattr(644,root,root,755) | |
814bd254 | 266 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so.*.*.* |
f5e8c52c | 267 | %attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.33 |
bf160059 | 268 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so.*.*.* |
f5e8c52c | 269 | %attr(755,root,root) %ghost %{_libdir}/libebackend-%{apiver}.so.2 |
814bd254 | 270 | %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.* |
f5e8c52c | 271 | %attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.13 |
814bd254 | 272 | %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so.*.*.* |
f5e8c52c | 273 | %attr(755,root,root) %ghost %{_libdir}/libecal-%{apiver}.so.11 |
814bd254 | 274 | %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.* |
f5e8c52c | 275 | %attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.13 |
814bd254 | 276 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.* |
f5e8c52c | 277 | %attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.15 |
814bd254 | 278 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.* |
f5e8c52c | 279 | %attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.16 |
c605b556 | 280 | %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver2}.so.*.*.* |
79de9f36 | 281 | %attr(755,root,root) %ghost %{_libdir}/libedataserverui-%{apiver2}.so.1 |
6fb1990c | 282 | %{_libdir}/girepository-1.0/EBook-1.2.typelib |
c605b556 | 283 | %{_libdir}/girepository-1.0/ECalendar-1.2.typelib |
284 | %{_libdir}/girepository-1.0/EDataServer-1.2.typelib | |
0931c5d7 | 285 | |
46c4d742 | 286 | %files devel |
11b4e6b5 | 287 | %defattr(644,root,root,755) |
814bd254 | 288 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so |
bf160059 | 289 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so |
814bd254 MB |
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 | |
c605b556 | 295 | %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver2}.so |
814bd254 MB |
296 | %{_includedir}/evolution-data-server-%{basever} |
297 | %{_pkgconfigdir}/camel-%{apiver}.pc | |
814bd254 | 298 | %{_pkgconfigdir}/evolution-data-server-%{apiver}.pc |
bf160059 | 299 | %{_pkgconfigdir}/libebackend-%{apiver}.pc |
814bd254 MB |
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 | |
c605b556 | 305 | %{_pkgconfigdir}/libedataserverui-%{apiver2}.pc |
6fb1990c | 306 | %{_datadir}/gir-1.0/EBook-1.2.gir |
c605b556 | 307 | %{_datadir}/gir-1.0/ECalendar-1.2.gir |
308 | %{_datadir}/gir-1.0/EDataServer-1.2.gir | |
79de9f36 AF |
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 | |
8a5a422a | 314 | |
315 | %files static | |
316 | %defattr(644,root,root,755) | |
814bd254 | 317 | %{_libdir}/libcamel-%{apiver}.a |
bf160059 | 318 | %{_libdir}/libebackend-%{apiver}.a |
814bd254 MB |
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 | |
c605b556 | 324 | %{_libdir}/libedataserverui-%{apiver2}.a |
ac5ccf41 | 325 | |
326 | %files apidocs | |
327 | %defattr(644,root,root,755) | |
814bd254 | 328 | %{_gtkdocdir}/camel |
bf160059 | 329 | %{_gtkdocdir}/libebackend |
814bd254 MB |
330 | %{_gtkdocdir}/libebook |
331 | %{_gtkdocdir}/libecal | |
332 | %{_gtkdocdir}/libedata-book | |
333 | %{_gtkdocdir}/libedata-cal | |
334 | %{_gtkdocdir}/libedataserver | |
335 | %{_gtkdocdir}/libedataserverui |