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