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: 8b058aff089cf3a6c13cc9f51f536ae8
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 Patch4: %{name}-imap-encoding.patch
25 URL: http://www.ximian.com/products/ximian_evolution/
26 BuildRequires: ORBit2-devel >= 1:2.12.1
27 BuildRequires: autoconf >= 2.52
28 BuildRequires: automake
30 BuildRequires: db-devel
31 BuildRequires: gnome-common >= 2.8.0
32 %{?with_kerberos5:BuildRequires: heimdal-devel >= 0.7}
33 BuildRequires: howl-devel >= 0.9.10
34 BuildRequires: intltool
35 BuildRequires: libglade2-devel >= 1:2.5.1
36 BuildRequires: libgnomeui-devel >= 2.11.2-2
37 BuildRequires: libsoup-devel >= 2.2.5
38 BuildRequires: libstdc++-devel
39 BuildRequires: libtool
40 BuildRequires: nspr-devel
41 BuildRequires: nss-devel
42 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
43 BuildRequires: pkgconfig
44 BuildRequires: rpmbuild(macros) >= 1.197
45 Requires(post,postun): scrollkeeper
46 Requires: %{name}-libs = %{version}-%{release}
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 library
72 Summary(pl): Biblioteka Evolution Data Server
74 Requires: libsoup >= 2.2.3
77 This package contains Evolution Data Server library.
79 %description libs -l pl
80 Ten pakiet zawiera bibliotekê Evolution Data Server.
83 Summary: Evolution data server development files
84 Summary(pl): Pliki programistyczne serwera danych evolution
85 Group: Development/Libraries
86 Requires: %{name}-libs = %{version}-%{release}
87 %{?with_kerberos5:Requires: heimdal-devel >= 0.7}
88 # for all but libegroupwise
89 Requires: GConf2-devel >= 2.10.0
90 Requires: ORBit2-devel >= 1:2.12.1
91 Requires: glib2-devel >= 1:2.6.4
92 Requires: libbonobo-devel >= 2.8.1
93 Requires: libgnomeui-devel >= 2.11.2-2
94 Requires: libxml2-devel
96 Requires: libsoup-devel >= 2.2.5
99 This package contains the files necessary to develop applications
100 using Evolution's data server libraries.
102 %description devel -l pl
103 Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji
104 korzystaj±cych z bibliotek serwera danych Evolution.
107 Summary: Evolution data server static libraries
108 Summary(pl): Statyczne biblioteki serwera danych Evolution
109 Group: Development/Libraries
110 Requires: %{name}-devel = %{version}-%{release}
113 Evolution data server static libraries.
115 %description static -l pl
116 Statyczne biblioteki serwera danych Evolution.
146 %{?with_kerberos5:--with-krb5=%{_prefix}} \
147 %{!?with_kerberos5:--with-krb5=no} \
148 %{?with_ldap:--with-openldap=yes} \
149 %{!?with_ldap:--with-openldap=no} \
152 --with-nspr-includes=%{_includedir}/nspr \
153 --with-nspr-libs=%{_libdir} \
154 --with-nss-includes=%{_includedir}/nss \
155 --with-nss-libs=%{_libdir}
157 HTML_DIR=%{_gtkdocdir} \
158 GTKHTML_DATADIR=%{_datadir}/idl
161 rm -rf $RPM_BUILD_ROOT
164 DESTDIR=$RPM_BUILD_ROOT \
165 GTKHTML_DATADIR=%{_datadir}/idl \
166 HTML_DIR=%{_gtkdocdir} \
167 pkgconfigdir=%{_pkgconfigdir}
169 rm $RPM_BUILD_ROOT%{_libdir}/%{name}-%{apiver}/{camel-providers,extensions}/*.{la,a}
171 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
173 install -d $RPM_BUILD_ROOT%{schemadir}
174 install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir}
176 %find_lang %{name} --all-name
179 rm -rf $RPM_BUILD_ROOT
182 %scrollkeeper_update_post
185 %scrollkeeper_update_postun
187 %post libs -p /sbin/ldconfig
188 %postun libs -p /sbin/ldconfig
190 %post -n openldap-schema-evolutionperson
191 if ! grep -q %{schemadir}/evolutionperson.schema /etc/openldap/slapd.conf; then
193 /^include.*local.schema/{
195 include %{schemadir}/evolutionperson.schema
197 ' /etc/openldap/slapd.conf
200 if [ -f /var/lock/subsys/ldap ]; then
201 /etc/rc.d/init.d/ldap restart >&2
204 %postun -n openldap-schema-evolutionperson
205 if [ "$1" = "0" ]; then
206 if grep -q %{schemadir}/evolutionperson.schema /etc/openldap/slapd.conf; then
208 /^include.*\/usr\/share\/openldap\/schema\/evolutionperson.schema/d
209 ' /etc/openldap/slapd.conf
212 if [ -f /var/lock/subsys/ldap ]; then
213 /etc/rc.d/init.d/ldap restart >&2 || :
217 %files -f %{name}.lang
218 %defattr(644,root,root,755)
219 %doc AUTHORS ChangeLog NEWS* README
220 %attr(755,root,root) %{_libdir}/camel-index-control-%{apiver}
221 %attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver}
222 %dir %{_libdir}/%{name}-%{apiver}
223 %dir %{_libdir}/%{name}-%{apiver}/camel-providers
224 %attr(755,root,root) %{_libdir}/evolution-data-server-%{basever}
225 %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/camel-providers/*.so
226 %{_libdir}/%{name}-%{apiver}/camel-providers/*.urls
227 %dir %{_libdir}/%{name}-%{apiver}/extensions
228 %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/extensions/*.so
229 %{_libdir}/bonobo/servers/*
232 %{_datadir}/%{name}-%{basever}/*.schema
235 %dir %{_datadir}/%{name}-%{basever}
236 %{_datadir}/%{name}-%{basever}/glade
237 %{_datadir}/%{name}-%{basever}/weather
238 %{_datadir}/%{name}-%{basever}/zoneinfo
239 %{_pixmapsdir}/%{name}-%{basever}
241 %files -n openldap-schema-evolutionperson
242 %defattr(644,root,root,755)
243 %{schemadir}/*.schema
246 %defattr(644,root,root,755)
247 %attr(755,root,root) %{_libdir}/*.so.*.*
248 %{_datadir}/idl/%{name}-%{apiver}
251 %defattr(644,root,root,755)
252 %attr(755,root,root) %{_libdir}/*.so
259 %defattr(644,root,root,755)