- updated to 2.24.4.1
[packages/evolution-data-server.git] / evolution-data-server.spec
CommitLineData
8a5a422a 1#
2# todo:
b7c830de 3# - system libical
b7c830de 4#
69577d81 5# Conditional build:
51160b41 6%bcond_without kerberos5 # build without kerberos5 support
7%bcond_without ldap # build without ldap support
69577d81 8#
bf160059 9%define basever 2.24
e2ebc190 10%define apiver 1.2
11b4e6b5 11Summary: Evolution data server
7628f827 12Summary(pl.UTF-8): Serwer danych Evolution
11b4e6b5 13Name: evolution-data-server
8dae4732 14Version: 2.24.4.1
392f9a34 15Release: 1
814bd254
MB
16License: LGPL v2+
17Group: X11/Libraries
bf160059 18Source0: http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/2.24/%{name}-%{version}.tar.bz2
8dae4732 19# Source0-md5: 3d6234ec417b2d9ab8dac6c45ec6ba97
a33049a0 20Patch0: %{name}-ntlm-ldap.patch
c22a020a 21URL: http://www.gnome.org/projects/evolution/
bf160059 22BuildRequires: GConf2-devel >= 2.24.0
c22a020a 23BuildRequires: ORBit2-devel >= 1:2.14.8
353eadf1
JB
24BuildRequires: autoconf >= 2.52
25BuildRequires: automake
e2ebc190 26BuildRequires: bison
8f24fc3c 27BuildRequires: cyrus-sasl-devel
353eadf1 28BuildRequires: db-devel
814bd254 29BuildRequires: gettext-devel
bf160059 30BuildRequires: glib2-devel >= 1:2.18.0
ea3ad516 31BuildRequires: gnome-common >= 2.20.0
bf160059
MB
32BuildRequires: gnome-keyring-devel >= 2.24.0
33BuildRequires: gnome-vfs2-devel >= 2.24.0
34BuildRequires: gtk+2-devel >= 2:2.14.0
814bd254
MB
35BuildRequires: gtk-doc >= 1.9
36BuildRequires: intltool >= 0.37.0
66e2b260 37%{?with_kerberos5:BuildRequires: krb5-devel}
c22a020a 38BuildRequires: libglade2-devel >= 1:2.6.2
bf160059 39BuildRequires: libgnomeui-devel >= 2.24.0
814bd254 40BuildRequires: libsoup-devel >= 2.4.0
e2c48f95 41BuildRequires: libstdc++-devel
353eadf1 42BuildRequires: libtool
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
51c439bc 51BuildRequires: sqlite3-devel
814bd254 52BuildRequires: zlib-devel
73b9c62c 53Requires: %{name}-libs = %{version}-%{release}
b11884f3 54# sr@Latn vs. sr@latin
55Conflicts: glibc-misc < 6:2.7
353eadf1 56BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11b4e6b5 57
9b5d553a
ER
58%define schemadir /usr/share/openldap/schema
59
11b4e6b5 60%description
353eadf1
JB
61The Evolution data server for the calendar and addressbook.
62
5f6b5ac6
JR
63%description -l pl.UTF-8
64Serwer danych Evolution dla kalendarza i książki adresowej.
11b4e6b5 65
9b5d553a
ER
66%package -n openldap-schema-evolutionperson
67Summary: evolutionperson LDAP schema
7628f827 68Summary(pl.UTF-8): Schemat LDAP evolutionperson
9b5d553a
ER
69Group: Networking/Daemons
70Requires(post,postun): sed >= 4.0
71Requires: openldap-servers
72
73%description -n openldap-schema-evolutionperson
93dbcff5
JB
74This package contains evolutionperson.schema for openldap server.
75
5f6b5ac6 76%description -n openldap-schema-evolutionperson -l pl.UTF-8
93dbcff5 77Ten pakiet zawiera evolutionperson.schema dla serwera openldap.
9b5d553a 78
0931c5d7
JB
79%package libs
80Summary: Evolution Data Server library
7628f827 81Summary(pl.UTF-8): Biblioteka Evolution Data Server
814bd254 82Group: X11/Libraries
bf160059 83Requires: libgnomeui >= 2.24.0
814bd254 84Requires: libsoup >= 2.4.0
0931c5d7
JB
85
86%description libs
87This package contains Evolution Data Server library.
88
5f6b5ac6
JR
89%description libs -l pl.UTF-8
90Ten pakiet zawiera bibliotekę Evolution Data Server.
0931c5d7 91
11b4e6b5 92%package devel
93Summary: Evolution data server development files
7628f827 94Summary(pl.UTF-8): Pliki programistyczne serwera danych evolution
814bd254 95Group: X11/Development/Libraries
0931c5d7 96Requires: %{name}-libs = %{version}-%{release}
66e2b260 97%{?with_kerberos5:Requires: krb5-devel}
6de52a0d 98# for all but libegroupwise
bf160059 99Requires: GConf2-devel >= 2.24.0
c22a020a 100Requires: ORBit2-devel >= 1:2.14.8
bf160059
MB
101Requires: glib2-devel >= 1:2.18.0
102Requires: gtk+2-devel >= 2:2.14.0
814bd254 103Requires: libglade2-devel >= 1:2.6.2
bf160059 104Requires: libgnomeui-devel >= 2.24.0
814bd254 105Requires: libxml2-devel >= 1:2.6.31
6de52a0d 106# for libegroupwise
814bd254 107Requires: libsoup-devel >= 2.4.0
11b4e6b5 108
109%description devel
46c4d742 110This package contains the files necessary to develop applications
111using Evolution's data server libraries.
11b4e6b5 112
5f6b5ac6 113%description devel -l pl.UTF-8
353eadf1 114Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji
5f6b5ac6 115korzystających z bibliotek serwera danych Evolution.
353eadf1 116
8a5a422a 117%package static
118Summary: Evolution data server static libraries
7628f827 119Summary(pl.UTF-8): Statyczne biblioteki serwera danych Evolution
814bd254 120Group: X11/Development/Libraries
f1e06abe 121Requires: %{name}-devel = %{version}-%{release}
8a5a422a 122
123%description static
124Evolution data server static libraries.
125
5f6b5ac6 126%description static -l pl.UTF-8
353eadf1
JB
127Statyczne biblioteki serwera danych Evolution.
128
ac5ccf41 129%package apidocs
130Summary: e-d-s API documentation
7628f827 131Summary(pl.UTF-8): Dokumentacja API e-d-s
ac5ccf41 132Group: Documentation
133Requires: gtk-doc-common
134
135%description apidocs
136e-d-s API documentation.
137
5f6b5ac6 138%description apidocs -l pl.UTF-8
ac5ccf41 139Dokumentacja API e-d-s.
140
11b4e6b5 141%prep
4ff8ccbf 142%setup -q
a33049a0 143%patch0 -p1
11b4e6b5 144
a99ed00a
JB
145# kill -L$withval/lib
146sed -i -e 's/DB_LIBS="-L[^ "]* /DB_LIBS="/;s/ICONV_LIBS="[^ "]*/ICONV_LIBS="/' configure.in
147
11b4e6b5 148%build
df83f2ab 149%{__gtkdocize}
8f8bf49b 150%{__glib_gettextize}
151%{__intltoolize}
46c4d742 152%{__libtoolize}
9179bf1f 153%{__aclocal}
46c4d742 154%{__autoheader}
155%{__autoconf}
156%{__automake}
0f23eebb 157
158cd calendar/libical
159%{__libtoolize}
160%{__aclocal}
161%{__autoheader}
162%{__autoconf}
163%{__automake}
164cd ../..
a33049a0
JR
165
166# Set LIBS so that configure will be able to link with static LDAP libraries,
167# which depend on Cyrus SASL and OpenSSL.
168if pkg-config openssl ; then
169 LIBS="-lsasl2 `pkg-config --libs openssl`"
170else
171 LIBS="-lsasl2 -lssl -lcrypto"
172fi
173export LIBS
174
46c4d742 175%configure \
a99ed00a 176 %{?with_kerberos5:--with-krb5=%{_prefix} --with-krb5-libs=%{_libdir}} \
51160b41 177 %{!?with_kerberos5:--with-krb5=no} \
a33049a0
JR
178 %{?with_ldap:--with-openldap=%{_libdir}/evolution-openldap} \
179 %{?with_ldap:--with-static-ldap=yes} \
51160b41 180 %{!?with_ldap:--with-openldap=no} \
aeafa52e 181 --enable-gnome-keyring=yes \
8a5a422a 182 --enable-gtk-doc \
183 --enable-static \
94fa296c 184 --with-nspr-includes=%{_includedir}/nspr \
185 --with-nspr-libs=%{_libdir} \
186 --with-nss-includes=%{_includedir}/nss \
aeafa52e 187 --with-nss-libs=%{_libdir} \
188 --with-libdb=%{_libdir}
52730793 189
46c4d742 190%{__make} \
b7c830de 191 HTML_DIR=%{_gtkdocdir} \
4ff8ccbf 192 GTKHTML_DATADIR=%{_datadir}/idl
11b4e6b5 193
194%install
195rm -rf $RPM_BUILD_ROOT
196
197%{__make} install \
46c4d742 198 DESTDIR=$RPM_BUILD_ROOT \
199 GTKHTML_DATADIR=%{_datadir}/idl \
b7c830de 200 HTML_DIR=%{_gtkdocdir} \
46c4d742 201 pkgconfigdir=%{_pkgconfigdir}
202
e2ebc190 203rm $RPM_BUILD_ROOT%{_libdir}/%{name}-%{apiver}/{camel-providers,extensions}/*.{la,a}
94fa296c 204
9b5d553a
ER
205install -d $RPM_BUILD_ROOT%{schemadir}
206install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir}
207
a1d2fba0
MB
208rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/la
209
46c4d742 210%find_lang %{name} --all-name
11b4e6b5 211
212%clean
213rm -rf $RPM_BUILD_ROOT
214
73b9c62c 215%post libs -p /sbin/ldconfig
216%postun libs -p /sbin/ldconfig
217
9b5d553a 218%post -n openldap-schema-evolutionperson
7937d160
ER
219%openldap_schema_register %{schemadir}/evolutionperson.schema
220%service -q ldap restart
9b5d553a
ER
221
222%postun -n openldap-schema-evolutionperson
223if [ "$1" = "0" ]; then
7937d160
ER
224 %openldap_schema_unregister %{schemadir}/evolutionperson.schema
225 %service -q ldap restart
9b5d553a
ER
226fi
227
46c4d742 228%files -f %{name}.lang
11b4e6b5 229%defattr(644,root,root,755)
46c4d742 230%doc AUTHORS ChangeLog NEWS* README
e2ebc190 231%attr(755,root,root) %{_libdir}/camel-index-control-%{apiver}
232%attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver}
814bd254 233%attr(755,root,root) %{_libdir}/evolution-data-server-%{basever}
e2ebc190 234%dir %{_libdir}/%{name}-%{apiver}
235%dir %{_libdir}/%{name}-%{apiver}/camel-providers
e2ebc190 236%attr(755,root,root) %{_libdir}/%{name}-%{apiver}/camel-providers/*.so
237%{_libdir}/%{name}-%{apiver}/camel-providers/*.urls
238%dir %{_libdir}/%{name}-%{apiver}/extensions
239%attr(755,root,root) %{_libdir}/%{name}-%{apiver}/extensions/*.so
814bd254 240%{_libdir}/bonobo/servers/GNOME_Evolution_DataServer_1.2.server
e2ebc190 241
be45f956 242%if %{with ldap}
e3a9d40d 243%{_datadir}/%{name}-%{basever}/*.schema
be45f956 244%endif
245
e2ebc190 246%dir %{_datadir}/%{name}-%{basever}
247%{_datadir}/%{name}-%{basever}/glade
248%{_datadir}/%{name}-%{basever}/weather
042cdced 249%{_pixmapsdir}/%{name}
46c4d742 250
9b5d553a
ER
251%files -n openldap-schema-evolutionperson
252%defattr(644,root,root,755)
814bd254 253%{schemadir}/evolutionperson.schema
9b5d553a 254
0931c5d7
JB
255%files libs
256%defattr(644,root,root,755)
814bd254 257%attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so.*.*.*
4f0b1f53 258%attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.14
814bd254 259%attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so.*.*.*
4f0b1f53 260%attr(755,root,root) %ghost %{_libdir}/libcamel-provider-%{apiver}.so.14
bf160059
MB
261%attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so.*.*.*
262%attr(755,root,root) %ghost %{_libdir}/libebackend-%{apiver}.so.0
814bd254
MB
263%attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.*
264%attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.9
265%attr(755,root,root) %{_libdir}/libecal-%{apiver}.so.*.*.*
266%attr(755,root,root) %ghost %{_libdir}/libecal-%{apiver}.so.7
267%attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.*
268%attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.2
269%attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.*
270%attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.6
271%attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.*
bf160059 272%attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.11
814bd254
MB
273%attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so.*.*.*
274%attr(755,root,root) %ghost %{_libdir}/libedataserverui-%{apiver}.so.8
275%attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so.*.*.*
276%attr(755,root,root) %ghost %{_libdir}/libegroupwise-%{apiver}.so.13
277%attr(755,root,root) %{_libdir}/libexchange-storage-%{apiver}.so.*.*.*
278%attr(755,root,root) %ghost %{_libdir}/libexchange-storage-%{apiver}.so.3
279%attr(755,root,root) %{_libdir}/libgdata-%{apiver}.so.*.*.*
280%attr(755,root,root) %ghost %{_libdir}/libgdata-%{apiver}.so.1
281%attr(755,root,root) %{_libdir}/libgdata-google-%{apiver}.so.*.*.*
282%attr(755,root,root) %ghost %{_libdir}/libgdata-google-%{apiver}.so.1
15b94064 283%{_datadir}/idl/%{name}-%{apiver}
0931c5d7 284
46c4d742 285%files devel
11b4e6b5 286%defattr(644,root,root,755)
814bd254
MB
287%attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so
288%attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so
bf160059 289%attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so
814bd254
MB
290%attr(755,root,root) %{_libdir}/libebook-%{apiver}.so
291%attr(755,root,root) %{_libdir}/libecal-%{apiver}.so
292%attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so
293%attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so
294%attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so
295%attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so
296%attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so
297%attr(755,root,root) %{_libdir}/libexchange-storage-%{apiver}.so
298%attr(755,root,root) %{_libdir}/libgdata-%{apiver}.so
299%attr(755,root,root) %{_libdir}/libgdata-google-%{apiver}.so
300%{_libdir}/libcamel-%{apiver}.la
301%{_libdir}/libcamel-provider-%{apiver}.la
bf160059 302%{_libdir}/libebackend-%{apiver}.la
814bd254
MB
303%{_libdir}/libebook-%{apiver}.la
304%{_libdir}/libecal-%{apiver}.la
305%{_libdir}/libedata-book-%{apiver}.la
306%{_libdir}/libedata-cal-%{apiver}.la
307%{_libdir}/libedataserver-%{apiver}.la
308%{_libdir}/libedataserverui-%{apiver}.la
309%{_libdir}/libegroupwise-%{apiver}.la
310%{_libdir}/libexchange-storage-%{apiver}.la
311%{_libdir}/libgdata-%{apiver}.la
312%{_libdir}/libgdata-google-%{apiver}.la
313%{_includedir}/evolution-data-server-%{basever}
314%{_pkgconfigdir}/camel-%{apiver}.pc
315%{_pkgconfigdir}/camel-provider-%{apiver}.pc
316%{_pkgconfigdir}/evolution-data-server-%{apiver}.pc
bf160059 317%{_pkgconfigdir}/libebackend-%{apiver}.pc
814bd254
MB
318%{_pkgconfigdir}/libebook-%{apiver}.pc
319%{_pkgconfigdir}/libecal-%{apiver}.pc
320%{_pkgconfigdir}/libedata-book-%{apiver}.pc
321%{_pkgconfigdir}/libedata-cal-%{apiver}.pc
322%{_pkgconfigdir}/libedataserver-%{apiver}.pc
323%{_pkgconfigdir}/libedataserverui-%{apiver}.pc
324%{_pkgconfigdir}/libegroupwise-%{apiver}.pc
325%{_pkgconfigdir}/libexchange-storage-%{apiver}.pc
326%{_pkgconfigdir}/libgdata-%{apiver}.pc
327%{_pkgconfigdir}/libgdata-google-%{apiver}.pc
8a5a422a 328
329%files static
330%defattr(644,root,root,755)
814bd254
MB
331%{_libdir}/libcamel-%{apiver}.a
332%{_libdir}/libcamel-provider-%{apiver}.a
bf160059 333%{_libdir}/libebackend-%{apiver}.a
814bd254
MB
334%{_libdir}/libebook-%{apiver}.a
335%{_libdir}/libecal-%{apiver}.a
336%{_libdir}/libedata-book-%{apiver}.a
337%{_libdir}/libedata-cal-%{apiver}.a
338%{_libdir}/libedataserver-%{apiver}.a
339%{_libdir}/libedataserverui-%{apiver}.a
340%{_libdir}/libegroupwise-%{apiver}.a
341%{_libdir}/libexchange-storage-%{apiver}.a
342%{_libdir}/libgdata-%{apiver}.a
343%{_libdir}/libgdata-google-%{apiver}.a
ac5ccf41 344
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
This page took 0.335455 seconds and 4 git commands to generate.