6 %bcond_without kerberos5 # build without kerberos5 support
7 %bcond_without ldap # build without ldap support
11 Summary: Evolution data server
12 Summary(pl): Serwer danych Evolution
13 Name: evolution-data-server
18 Source0: http://ftp.gnome.org/pub/gnome/sources/evolution-data-server/1.4/%{name}-%{version}.tar.bz2
19 # Source0-md5: a15991d5f0112b43c18fa99dfccfec1b
20 Patch0: %{name}-system_db.patch
21 Patch1: %{name}-GG-IM.patch
22 Patch2: %{name}-workaround-cal-backend-leak.patch
23 Patch3: %{name}-gcc4.patch
24 URL: http://www.ximian.com/products/ximian_evolution/
25 BuildRequires: ORBit2-devel >= 1:2.12.1
26 BuildRequires: autoconf >= 2.52
27 BuildRequires: automake
29 BuildRequires: db-devel
30 BuildRequires: gnome-common >= 2.8.0
31 BuildRequires: howl-devel >= 0.9.10
32 BuildRequires: intltool
33 BuildRequires: libglade2-devel >= 1:2.5.1
34 BuildRequires: libgnomeui-devel >= 2.11.2-2
35 BuildRequires: libsoup-devel >= 2.2.5
36 BuildRequires: libstdc++-devel
37 BuildRequires: libtool
38 BuildRequires: nspr-devel
39 BuildRequires: nss-devel
40 BuildRequires: pkgconfig
41 BuildRequires: rpmbuild(macros) >= 1.197
42 %{?with_kerberos5:BuildRequires: heimdal-devel >= 0.7}
43 %{?with_ldap:BuildRequires: openldap-devel >= 2.0.0}
44 Requires(post,postun): /sbin/ldconfig
45 Requires(post,postun): scrollkeeper
46 Requires: libsoup >= 2.2.3
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 %define schemadir /usr/share/openldap/schema
52 The Evolution data server for the calendar and addressbook.
55 Serwer danych Evolution dla kalendarza i ksi±¿ki adresowej.
57 %package -n openldap-schema-evolutionperson
58 Summary: evolutionperson LDAP schema
59 Summary(pl): Schemat LDAP evolutionperson
60 Group: Networking/Daemons
61 Requires(post,postun): sed >= 4.0
62 Requires: openldap-servers
64 %description -n openldap-schema-evolutionperson
65 This package contains evolutionperson.schema for openldap server.
67 %description -n openldap-schema-evolutionperson -l pl
68 Ten pakiet zawiera evolutionperson.schema dla serwera openldap.
71 Summary: Evolution data server development files
72 Summary(pl): Pliki programistyczne serwera danych evolution
73 Group: Development/Libraries
74 Requires: %{name} = %{version}-%{release}
75 # for all but libegroupwise
76 Requires: GConf2-devel >= 2.10.0
77 Requires: ORBit2-devel >= 1:2.12.1
78 Requires: glib2-devel >= 1:2.6.4
79 Requires: libbonobo-devel >= 2.8.1
80 Requires: libgnomeui-devel >= 2.11.2-2
81 Requires: libxml2-devel
83 Requires: libsoup-devel >= 2.2.5
86 This package contains the files necessary to develop applications
87 using Evolution's data server libraries.
89 %description devel -l pl
90 Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji
91 korzystaj±cych z bibliotek serwera danych Evolution.
94 Summary: Evolution data server static libraries
95 Summary(pl): Statyczne biblioteki serwera danych Evolution
96 Group: Development/Libraries
97 Requires: %{name}-devel = %{version}-%{release}
100 Evolution data server static libraries.
102 %description static -l pl
103 Statyczne biblioteki serwera danych Evolution.
132 %{?with_kerberos5:--with-krb5=%{_prefix}} \
133 %{!?with_kerberos5:--with-krb5=no} \
134 %{?with_ldap:--with-openldap=yes} \
135 %{!?with_ldap:--with-openldap=no} \
138 --with-nspr-includes=%{_includedir}/nspr \
139 --with-nspr-libs=%{_libdir} \
140 --with-nss-includes=%{_includedir}/nss \
141 --with-nss-libs=%{_libdir}
143 HTML_DIR=%{_gtkdocdir} \
144 GTKHTML_DATADIR=%{_datadir}/idl
147 rm -rf $RPM_BUILD_ROOT
150 DESTDIR=$RPM_BUILD_ROOT \
151 GTKHTML_DATADIR=%{_datadir}/idl \
152 HTML_DIR=%{_gtkdocdir} \
153 pkgconfigdir=%{_pkgconfigdir}
155 rm $RPM_BUILD_ROOT%{_libdir}/%{name}-%{apiver}/{camel-providers,extensions}/*.{la,a}
157 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
159 install -d $RPM_BUILD_ROOT%{schemadir}
160 install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir}
162 %find_lang %{name} --all-name
165 rm -rf $RPM_BUILD_ROOT
169 %scrollkeeper_update_post
173 %scrollkeeper_update_postun
175 %post -n openldap-schema-evolutionperson
176 if ! grep -q %{schemadir}/evolutionperson.schema /etc/openldap/slapd.conf; then
178 /^include.*local.schema/{
180 include %{schemadir}/evolutionperson.schema
182 ' /etc/openldap/slapd.conf
185 if [ -f /var/lock/subsys/ldap ]; then
186 /etc/rc.d/init.d/ldap restart >&2
189 %postun -n openldap-schema-evolutionperson
190 if [ "$1" = "0" ]; then
191 if grep -q %{schemadir}/evolutionperson.schema /etc/openldap/slapd.conf; then
193 /^include.*\/usr\/share\/openldap\/schema\/evolutionperson.schema/d
194 ' /etc/openldap/slapd.conf
197 if [ -f /var/lock/subsys/ldap ]; then
198 /etc/rc.d/init.d/ldap restart >&2 || :
203 %files -f %{name}.lang
204 %defattr(644,root,root,755)
205 %doc AUTHORS ChangeLog NEWS* README
206 %attr(755,root,root) %{_libdir}/camel-index-control-%{apiver}
207 %attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver}
208 %attr(755,root,root) %{_libdir}/*.so.*.*
209 %dir %{_libdir}/%{name}-%{apiver}
210 %dir %{_libdir}/%{name}-%{apiver}/camel-providers
211 %attr(755,root,root) %{_libdir}/evolution-data-server-%{basever}
212 %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/camel-providers/*.so
213 %{_libdir}/%{name}-%{apiver}/camel-providers/*.urls
214 %dir %{_libdir}/%{name}-%{apiver}/extensions
215 %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/extensions/*.so
216 %{_libdir}/bonobo/servers/*
219 %dir %{_datadir}/%{name}-%{basever}
220 %{_datadir}/%{name}-%{basever}/glade
221 %{_datadir}/%{name}-%{basever}/weather
222 %{_datadir}/%{name}-%{basever}/zoneinfo
223 %{_datadir}/%{name}-%{basever}/*.schema
224 %{_pixmapsdir}/%{name}-%{basever}
226 %files -n openldap-schema-evolutionperson
227 %defattr(644,root,root,755)
228 %{schemadir}/*.schema
231 %defattr(644,root,root,755)
232 %attr(755,root,root) %{_libdir}/*.so
239 %defattr(644,root,root,755)