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