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