]> git.pld-linux.org Git - packages/evolution-data-server.git/blame - evolution-data-server.spec
- updated to 3.8.3
[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#
5f0ee2ee 9%define basever 3.8
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
0971d1ae 16Version: 3.8.3
7698fe82 17Release: 1
dbed574c 18License: LGPL v2+
814bd254 19Group: X11/Libraries
5f0ee2ee 20Source0: http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/3.8/%{name}-%{version}.tar.xz
0971d1ae 21# Source0-md5: 6ebaf26bd703c6a5b6589056022d534d
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
5f0ee2ee 28BuildRequires: glib2-devel >= 1:2.34.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
2042f28a 38BuildRequires: libgweather-devel >= 3.5.0
51cb5b15 39BuildRequires: libical-devel >= 0.43
79de9f36 40BuildRequires: liboauth-devel >= 0.9.4
5f0ee2ee
ŁK
41BuildRequires: libsecret-devel >= 0.5
42BuildRequires: libsoup-devel >= 2.40.3
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
5f0ee2ee 58Requires(post,postun): glib2 >= 1:2.34.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
5f0ee2ee 89Requires: libsoup >= 2.40.3
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}
5f0ee2ee 102Requires: glib2-devel >= 1:2.34.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
5f0ee2ee 107Requires: libsoup-devel >= 2.40.3
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} \
5f0ee2ee 193 --disable-uoa \
51cb5b15 194 --with-libdb=%{_libdir} \
d187a81d
MB
195 --with-html-dir=%{_gtkdocdir} \
196 --disable-silent-rules
52730793 197
51cb5b15 198%{__make}
11b4e6b5 199
200%install
201rm -rf $RPM_BUILD_ROOT
f5e8c52c 202install -d $RPM_BUILD_ROOT%{_libdir}/%{name}-%{basever}
51cb5b15 203install -d $RPM_BUILD_ROOT%{schemadir}
11b4e6b5 204
205%{__make} install \
46c4d742 206 DESTDIR=$RPM_BUILD_ROOT \
51cb5b15 207 HTML_DIR=%{_gtkdocdir}
94fa296c 208
9b5d553a
ER
209install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir}
210
2042f28a 211%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/{camel-providers,calendar-backends,addressbook-backends,registry-modules}/*.{la,a}
c605b556 212%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
51cb5b15 213
46c4d742 214%find_lang %{name} --all-name
11b4e6b5 215
216%clean
217rm -rf $RPM_BUILD_ROOT
218
f5e8c52c
MB
219%post
220%glib_compile_schemas
221
222%postun
223%glib_compile_schemas
224
73b9c62c 225%post libs -p /sbin/ldconfig
226%postun libs -p /sbin/ldconfig
227
9b5d553a 228%post -n openldap-schema-evolutionperson
7937d160
ER
229%openldap_schema_register %{schemadir}/evolutionperson.schema
230%service -q ldap restart
9b5d553a
ER
231
232%postun -n openldap-schema-evolutionperson
233if [ "$1" = "0" ]; then
7937d160
ER
234 %openldap_schema_unregister %{schemadir}/evolutionperson.schema
235 %service -q ldap restart
9b5d553a
ER
236fi
237
46c4d742 238%files -f %{name}.lang
11b4e6b5 239%defattr(644,root,root,755)
46c4d742 240%doc AUTHORS ChangeLog NEWS* README
e2ebc190 241%attr(755,root,root) %{_libdir}/camel-index-control-%{apiver}
242%attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver}
f5e8c52c
MB
243%attr(755,root,root) %{_libdir}/evolution-addressbook-factory
244%attr(755,root,root) %{_libdir}/evolution-calendar-factory
cd257a8d 245%attr(755,root,root) %{_libdir}/evolution-source-registry
5f0ee2ee 246%attr(755,root,root) %{_libdir}/evolution-user-prompter
c605b556 247%dir %{_libdir}/%{name}
248%dir %{_libdir}/%{name}/camel-providers
249%attr(755,root,root) %{_libdir}/%{name}/camel-providers/*.so
250%{_libdir}/%{name}/camel-providers/*.urls
251%dir %{_libdir}/%{name}/addressbook-backends
252%attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/*.so
253%dir %{_libdir}/%{name}/calendar-backends
254%attr(755,root,root) %{_libdir}/%{name}/calendar-backends/*.so
2042f28a
ŁK
255%dir %{_libdir}/evolution-data-server/registry-modules
256%attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/*.so
e2ebc190 257
f5e8c52c
MB
258%dir %{_libdir}/%{name}-%{basever}
259
be45f956 260%if %{with ldap}
5f0ee2ee 261%{_datadir}/%{name}/*.schema
be45f956 262%endif
263
d187a81d
MB
264%{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.AddressBook.service
265%{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Calendar.service
2042f28a 266%{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Sources.service
5f0ee2ee 267%{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.UserPrompter.service
d187a81d 268
5f0ee2ee 269%dir %{_datadir}/%{name}
042cdced 270%{_pixmapsdir}/%{name}
46c4d742 271
2042f28a 272%{_datadir}/GConf/gsettings/evolution-data-server.convert
f5e8c52c
MB
273%{_datadir}/GConf/gsettings/libedataserver.convert
274%{_datadir}/glib-2.0/schemas/org.gnome.evolution.eds-shell.gschema.xml
275%{_datadir}/glib-2.0/schemas/org.gnome.evolution.shell.network-config.gschema.xml
2042f28a
ŁK
276%{_datadir}/glib-2.0/schemas/org.gnome.Evolution.DefaultSources.gschema.xml
277%{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.addressbook.gschema.xml
278%{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.calendar.gschema.xml
f5e8c52c 279
9b5d553a
ER
280%files -n openldap-schema-evolutionperson
281%defattr(644,root,root,755)
814bd254 282%{schemadir}/evolutionperson.schema
9b5d553a 283
0931c5d7
JB
284%files libs
285%defattr(644,root,root,755)
814bd254 286%attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so.*.*.*
5f0ee2ee 287%attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.43
bf160059 288%attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so.*.*.*
5f0ee2ee 289%attr(755,root,root) %ghost %{_libdir}/libebackend-%{apiver}.so.6
814bd254 290%attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.*
2042f28a 291%attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.14
5f0ee2ee
ŁK
292%attr(755,root,root) %{_libdir}/libebook-contacts-%{apiver}.so.*.*.*
293%attr(755,root,root) %ghost %{_libdir}/libebook-contacts-%{apiver}.so.0
814bd254 294%attr(755,root,root) %{_libdir}/libecal-%{apiver}.so.*.*.*
2042f28a 295%attr(755,root,root) %ghost %{_libdir}/libecal-%{apiver}.so.15
814bd254 296%attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.*
5f0ee2ee 297%attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.17
814bd254 298%attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.*
5f0ee2ee 299%attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.20
814bd254 300%attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.*
2042f28a 301%attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.17
60aeabb0 302%{_libdir}/girepository-1.0/EBook-%{apiver}.typelib
5f0ee2ee 303%{_libdir}/girepository-1.0/EBookContacts-%{apiver}.typelib
60aeabb0 304%{_libdir}/girepository-1.0/EDataServer-%{apiver}.typelib
0931c5d7 305
46c4d742 306%files devel
11b4e6b5 307%defattr(644,root,root,755)
814bd254 308%attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so
bf160059 309%attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so
814bd254 310%attr(755,root,root) %{_libdir}/libebook-%{apiver}.so
5f0ee2ee 311%attr(755,root,root) %{_libdir}/libebook-contacts-%{apiver}.so
814bd254
MB
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
5f0ee2ee 316%{_includedir}/evolution-data-server
814bd254 317%{_pkgconfigdir}/camel-%{apiver}.pc
814bd254 318%{_pkgconfigdir}/evolution-data-server-%{apiver}.pc
bf160059 319%{_pkgconfigdir}/libebackend-%{apiver}.pc
814bd254 320%{_pkgconfigdir}/libebook-%{apiver}.pc
5f0ee2ee 321%{_pkgconfigdir}/libebook-contacts-%{apiver}.pc
814bd254
MB
322%{_pkgconfigdir}/libecal-%{apiver}.pc
323%{_pkgconfigdir}/libedata-book-%{apiver}.pc
324%{_pkgconfigdir}/libedata-cal-%{apiver}.pc
325%{_pkgconfigdir}/libedataserver-%{apiver}.pc
60aeabb0 326%{_datadir}/gir-1.0/EBook-%{apiver}.gir
5f0ee2ee 327%{_datadir}/gir-1.0/EBookContacts-%{apiver}.gir
60aeabb0 328%{_datadir}/gir-1.0/EDataServer-%{apiver}.gir
8a5a422a 329
60aeabb0 330%if %{with static_libs}
8a5a422a 331%files static
332%defattr(644,root,root,755)
814bd254 333%{_libdir}/libcamel-%{apiver}.a
bf160059 334%{_libdir}/libebackend-%{apiver}.a
814bd254 335%{_libdir}/libebook-%{apiver}.a
5f0ee2ee 336%{_libdir}/libebook-contacts-%{apiver}.a
814bd254
MB
337%{_libdir}/libecal-%{apiver}.a
338%{_libdir}/libedata-book-%{apiver}.a
339%{_libdir}/libedata-cal-%{apiver}.a
340%{_libdir}/libedataserver-%{apiver}.a
60aeabb0 341%endif
ac5ccf41 342
60aeabb0 343%if %{with apidocs}
ac5ccf41 344%files apidocs
345%defattr(644,root,root,755)
814bd254 346%{_gtkdocdir}/camel
bf160059 347%{_gtkdocdir}/libebackend
814bd254 348%{_gtkdocdir}/libebook
5f0ee2ee 349%{_gtkdocdir}/libebook-contacts
814bd254
MB
350%{_gtkdocdir}/libecal
351%{_gtkdocdir}/libedata-book
352%{_gtkdocdir}/libedata-cal
353%{_gtkdocdir}/libedataserver
60aeabb0
ŁK
354%endif
355
356%if %{with vala}
357%files -n vala-evolution-data-server
358%defattr(644,root,root,755)
359%{_datadir}/vala/vapi/libebook-%{apiver}.deps
360%{_datadir}/vala/vapi/libebook-%{apiver}.vapi
5f0ee2ee
ŁK
361%{_datadir}/vala/vapi/libebook-contacts-1.2.deps
362%{_datadir}/vala/vapi/libebook-contacts-1.2.vapi
363%{_datadir}/vala/vapi/libedataserver-1.2.deps
60aeabb0
ŁK
364%{_datadir}/vala/vapi/libedataserver-%{apiver}.vapi
365%endif
This page took 0.507223 seconds and 4 git commands to generate.