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