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