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