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