- 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#
3ffd5596 6%define basever 2.26
e2ebc190 7%define apiver 1.2
11b4e6b5 8Summary: Evolution data server
7628f827 9Summary(pl.UTF-8): Serwer danych Evolution
11b4e6b5 10Name: evolution-data-server
76a523e7 11Version: 2.26.3
b025b6f4 12Release: 2
814bd254
MB
13License: LGPL v2+
14Group: X11/Libraries
3ffd5596 15Source0: http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/2.26/%{name}-%{version}.tar.bz2
76a523e7 16# Source0-md5: 01205605a598253bc227ff360c7c3dad
a33049a0 17Patch0: %{name}-ntlm-ldap.patch
c22a020a 18URL: http://www.gnome.org/projects/evolution/
51cb5b15 19BuildRequires: GConf2-devel >= 2.26.0
c22a020a 20BuildRequires: ORBit2-devel >= 1:2.14.8
353eadf1
JB
21BuildRequires: autoconf >= 2.52
22BuildRequires: automake
e2ebc190 23BuildRequires: bison
8f24fc3c 24BuildRequires: cyrus-sasl-devel
353eadf1 25BuildRequires: db-devel
814bd254 26BuildRequires: gettext-devel
51cb5b15 27BuildRequires: glib2-devel >= 1:2.20.0
ea3ad516 28BuildRequires: gnome-common >= 2.20.0
51cb5b15
PZ
29BuildRequires: gnome-keyring-devel >= 2.26.0
30BuildRequires: gtk+2-devel >= 2:2.16.0
814bd254 31BuildRequires: gtk-doc >= 1.9
51cb5b15 32BuildRequires: intltool >= 0.40.0
b025b6f4 33%{?with_kerberos5:BuildRequires: heimdal-devel}
51cb5b15 34BuildRequires: libbonobo-devel >= 2.24.0
c22a020a 35BuildRequires: libglade2-devel >= 1:2.6.2
bf160059 36BuildRequires: libgnomeui-devel >= 2.24.0
51cb5b15
PZ
37BuildRequires: libgweather-devel >= 2.26.0
38BuildRequires: libical-devel >= 0.43
39BuildRequires: libsoup-devel >= 2.26.0
e2c48f95 40BuildRequires: libstdc++-devel
353eadf1 41BuildRequires: libtool
814bd254 42BuildRequires: libxml2-devel >= 1:2.6.31
94fa296c 43BuildRequires: nspr-devel
4e7b9656 44BuildRequires: nss-devel
a33049a0 45%{?with_ldap:BuildRequires: openldap-evolution-devel >= 2.4.6}
8f24fc3c 46BuildRequires: openssl-devel
353eadf1 47BuildRequires: pkgconfig
7937d160 48BuildRequires: rpmbuild(macros) >= 1.304
483474c5 49BuildRequires: sed >= 4.0
51c439bc 50BuildRequires: sqlite3-devel
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 81Group: X11/Libraries
bf160059 82Requires: libgnomeui >= 2.24.0
814bd254 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}
51cb5b15 96Requires: GConf2-devel >= 2.26.0
c22a020a 97Requires: ORBit2-devel >= 1:2.14.8
51cb5b15
PZ
98Requires: glib2-devel >= 1:2.20.0
99Requires: gtk+2-devel >= 2:2.16.0
b025b6f4 100%{?with_kerberos5:Requires: heimdal-devel}
51cb5b15 101Requires: libbonobo-devel >= 2.24.0
814bd254 102Requires: libglade2-devel >= 1:2.6.2
51cb5b15
PZ
103Requires: libical-devel >= 0.43
104Requires: libsoup-devel >= 2.26.0
814bd254 105Requires: libxml2-devel >= 1:2.6.31
51cb5b15 106Requires: sqlite3-devel
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
a99ed00a 144# kill -L$withval/lib
3ffd5596 145sed -i -e 's/DB_LIBS="-L[^ "]* /DB_LIBS="/;s/ICONV_LIBS="[^ "]*/ICONV_LIBS="/' configure.in
a99ed00a 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
a33049a0
JR
157# Set LIBS so that configure will be able to link with static LDAP libraries,
158# which depend on Cyrus SASL and OpenSSL.
159if pkg-config openssl ; then
160 LIBS="-lsasl2 `pkg-config --libs openssl`"
161else
162 LIBS="-lsasl2 -lssl -lcrypto"
163fi
164export LIBS
165
46c4d742 166%configure \
a99ed00a 167 %{?with_kerberos5:--with-krb5=%{_prefix} --with-krb5-libs=%{_libdir}} \
51160b41 168 %{!?with_kerberos5:--with-krb5=no} \
a33049a0
JR
169 %{?with_ldap:--with-openldap=%{_libdir}/evolution-openldap} \
170 %{?with_ldap:--with-static-ldap=yes} \
51160b41 171 %{!?with_ldap:--with-openldap=no} \
aeafa52e 172 --enable-gnome-keyring=yes \
8a5a422a 173 --enable-gtk-doc \
174 --enable-static \
94fa296c 175 --with-nspr-includes=%{_includedir}/nspr \
176 --with-nspr-libs=%{_libdir} \
177 --with-nss-includes=%{_includedir}/nss \
aeafa52e 178 --with-nss-libs=%{_libdir} \
51cb5b15
PZ
179 --with-libdb=%{_libdir} \
180 --with-html-dir=%{_gtkdocdir}
52730793 181
51cb5b15 182%{__make}
11b4e6b5 183
184%install
185rm -rf $RPM_BUILD_ROOT
51cb5b15 186install -d $RPM_BUILD_ROOT%{schemadir}
11b4e6b5 187
188%{__make} install \
46c4d742 189 DESTDIR=$RPM_BUILD_ROOT \
51cb5b15 190 HTML_DIR=%{_gtkdocdir}
94fa296c 191
9b5d553a
ER
192install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir}
193
51cb5b15
PZ
194rm $RPM_BUILD_ROOT%{_libdir}/%{name}-%{apiver}/{camel-providers,extensions}/*.{la,a}
195
a1d2fba0
MB
196rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/la
197
46c4d742 198%find_lang %{name} --all-name
11b4e6b5 199
200%clean
201rm -rf $RPM_BUILD_ROOT
202
73b9c62c 203%post libs -p /sbin/ldconfig
204%postun libs -p /sbin/ldconfig
205
9b5d553a 206%post -n openldap-schema-evolutionperson
7937d160
ER
207%openldap_schema_register %{schemadir}/evolutionperson.schema
208%service -q ldap restart
9b5d553a
ER
209
210%postun -n openldap-schema-evolutionperson
211if [ "$1" = "0" ]; then
7937d160
ER
212 %openldap_schema_unregister %{schemadir}/evolutionperson.schema
213 %service -q ldap restart
9b5d553a
ER
214fi
215
46c4d742 216%files -f %{name}.lang
11b4e6b5 217%defattr(644,root,root,755)
46c4d742 218%doc AUTHORS ChangeLog NEWS* README
e2ebc190 219%attr(755,root,root) %{_libdir}/camel-index-control-%{apiver}
220%attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver}
814bd254 221%attr(755,root,root) %{_libdir}/evolution-data-server-%{basever}
e2ebc190 222%dir %{_libdir}/%{name}-%{apiver}
223%dir %{_libdir}/%{name}-%{apiver}/camel-providers
e2ebc190 224%attr(755,root,root) %{_libdir}/%{name}-%{apiver}/camel-providers/*.so
225%{_libdir}/%{name}-%{apiver}/camel-providers/*.urls
226%dir %{_libdir}/%{name}-%{apiver}/extensions
227%attr(755,root,root) %{_libdir}/%{name}-%{apiver}/extensions/*.so
814bd254 228%{_libdir}/bonobo/servers/GNOME_Evolution_DataServer_1.2.server
e2ebc190 229
be45f956 230%if %{with ldap}
e3a9d40d 231%{_datadir}/%{name}-%{basever}/*.schema
be45f956 232%endif
233
e2ebc190 234%dir %{_datadir}/%{name}-%{basever}
235%{_datadir}/%{name}-%{basever}/glade
236%{_datadir}/%{name}-%{basever}/weather
042cdced 237%{_pixmapsdir}/%{name}
46c4d742 238
9b5d553a
ER
239%files -n openldap-schema-evolutionperson
240%defattr(644,root,root,755)
814bd254 241%{schemadir}/evolutionperson.schema
9b5d553a 242
0931c5d7
JB
243%files libs
244%defattr(644,root,root,755)
814bd254 245%attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so.*.*.*
4f0b1f53 246%attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.14
814bd254 247%attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so.*.*.*
4f0b1f53 248%attr(755,root,root) %ghost %{_libdir}/libcamel-provider-%{apiver}.so.14
bf160059
MB
249%attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so.*.*.*
250%attr(755,root,root) %ghost %{_libdir}/libebackend-%{apiver}.so.0
814bd254
MB
251%attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.*
252%attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.9
253%attr(755,root,root) %{_libdir}/libecal-%{apiver}.so.*.*.*
254%attr(755,root,root) %ghost %{_libdir}/libecal-%{apiver}.so.7
255%attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.*
256%attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.2
257%attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.*
258%attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.6
259%attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.*
bf160059 260%attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.11
814bd254
MB
261%attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so.*.*.*
262%attr(755,root,root) %ghost %{_libdir}/libedataserverui-%{apiver}.so.8
263%attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so.*.*.*
264%attr(755,root,root) %ghost %{_libdir}/libegroupwise-%{apiver}.so.13
265%attr(755,root,root) %{_libdir}/libexchange-storage-%{apiver}.so.*.*.*
266%attr(755,root,root) %ghost %{_libdir}/libexchange-storage-%{apiver}.so.3
267%attr(755,root,root) %{_libdir}/libgdata-%{apiver}.so.*.*.*
268%attr(755,root,root) %ghost %{_libdir}/libgdata-%{apiver}.so.1
269%attr(755,root,root) %{_libdir}/libgdata-google-%{apiver}.so.*.*.*
270%attr(755,root,root) %ghost %{_libdir}/libgdata-google-%{apiver}.so.1
15b94064 271%{_datadir}/idl/%{name}-%{apiver}
0931c5d7 272
46c4d742 273%files devel
11b4e6b5 274%defattr(644,root,root,755)
814bd254
MB
275%attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so
276%attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so
bf160059 277%attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so
814bd254
MB
278%attr(755,root,root) %{_libdir}/libebook-%{apiver}.so
279%attr(755,root,root) %{_libdir}/libecal-%{apiver}.so
280%attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so
281%attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so
282%attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so
283%attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so
284%attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so
285%attr(755,root,root) %{_libdir}/libexchange-storage-%{apiver}.so
286%attr(755,root,root) %{_libdir}/libgdata-%{apiver}.so
287%attr(755,root,root) %{_libdir}/libgdata-google-%{apiver}.so
288%{_libdir}/libcamel-%{apiver}.la
289%{_libdir}/libcamel-provider-%{apiver}.la
bf160059 290%{_libdir}/libebackend-%{apiver}.la
814bd254
MB
291%{_libdir}/libebook-%{apiver}.la
292%{_libdir}/libecal-%{apiver}.la
293%{_libdir}/libedata-book-%{apiver}.la
294%{_libdir}/libedata-cal-%{apiver}.la
295%{_libdir}/libedataserver-%{apiver}.la
296%{_libdir}/libedataserverui-%{apiver}.la
297%{_libdir}/libegroupwise-%{apiver}.la
298%{_libdir}/libexchange-storage-%{apiver}.la
299%{_libdir}/libgdata-%{apiver}.la
300%{_libdir}/libgdata-google-%{apiver}.la
301%{_includedir}/evolution-data-server-%{basever}
302%{_pkgconfigdir}/camel-%{apiver}.pc
303%{_pkgconfigdir}/camel-provider-%{apiver}.pc
304%{_pkgconfigdir}/evolution-data-server-%{apiver}.pc
bf160059 305%{_pkgconfigdir}/libebackend-%{apiver}.pc
814bd254
MB
306%{_pkgconfigdir}/libebook-%{apiver}.pc
307%{_pkgconfigdir}/libecal-%{apiver}.pc
308%{_pkgconfigdir}/libedata-book-%{apiver}.pc
309%{_pkgconfigdir}/libedata-cal-%{apiver}.pc
310%{_pkgconfigdir}/libedataserver-%{apiver}.pc
311%{_pkgconfigdir}/libedataserverui-%{apiver}.pc
312%{_pkgconfigdir}/libegroupwise-%{apiver}.pc
313%{_pkgconfigdir}/libexchange-storage-%{apiver}.pc
314%{_pkgconfigdir}/libgdata-%{apiver}.pc
315%{_pkgconfigdir}/libgdata-google-%{apiver}.pc
8a5a422a 316
317%files static
318%defattr(644,root,root,755)
814bd254
MB
319%{_libdir}/libcamel-%{apiver}.a
320%{_libdir}/libcamel-provider-%{apiver}.a
bf160059 321%{_libdir}/libebackend-%{apiver}.a
814bd254
MB
322%{_libdir}/libebook-%{apiver}.a
323%{_libdir}/libecal-%{apiver}.a
324%{_libdir}/libedata-book-%{apiver}.a
325%{_libdir}/libedata-cal-%{apiver}.a
326%{_libdir}/libedataserver-%{apiver}.a
327%{_libdir}/libedataserverui-%{apiver}.a
328%{_libdir}/libegroupwise-%{apiver}.a
329%{_libdir}/libexchange-storage-%{apiver}.a
330%{_libdir}/libgdata-%{apiver}.a
331%{_libdir}/libgdata-google-%{apiver}.a
ac5ccf41 332
333%files apidocs
334%defattr(644,root,root,755)
814bd254 335%{_gtkdocdir}/camel
bf160059 336%{_gtkdocdir}/libebackend
814bd254
MB
337%{_gtkdocdir}/libebook
338%{_gtkdocdir}/libecal
339%{_gtkdocdir}/libedata-book
340%{_gtkdocdir}/libedata-cal
341%{_gtkdocdir}/libedataserver
342%{_gtkdocdir}/libedataserverui
This page took 0.163354 seconds and 4 git commands to generate.