6 %bcond_without kerberos5 # build without kerberos5 support
7 %bcond_without ldap # build without ldap support
10 Summary: Evolution data server
11 Summary(pl): Serwer danych Evolution
12 Name: evolution-data-server
17 Source0: http://ftp.gnome.org/pub/gnome/sources/evolution-data-server/1.2/%{name}-%{version}.tar.bz2
18 # Source0-md5: 067d808957d4b3ac60159f8c8c1358fb
19 Patch0: %{name}-system_db.patch
20 Patch1: %{name}-GG-IM.patch
21 Patch2: %{name}-workaround-cal-backend-leak.patch
22 Patch3: %{name}-bonobo.patch
23 Patch4: %{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
28 BuildRequires: db-devel
29 BuildRequires: gnome-common >= 2.8.0
30 BuildRequires: howl-devel >= 0.9.10
31 BuildRequires: intltool
32 BuildRequires: libglade2-devel >= 1:2.5.1
33 BuildRequires: libgnomeui-devel >= 2.10.0-2
34 BuildRequires: libsoup-devel >= 2.2.3
35 BuildRequires: libstdc++-devel
36 BuildRequires: libtool
37 BuildRequires: nspr-devel
38 BuildRequires: nss-devel
39 BuildRequires: pkgconfig
40 BuildRequires: rpmbuild(macros) >= 1.197
41 %{?with_kerberos5:BuildRequires: heimdal-devel >= 0.7}
42 %{?with_ldap:BuildRequires: openldap-devel >= 2.0.0}
43 Requires(post,postun): /sbin/ldconfig
44 Requires(post,postun): scrollkeeper
45 Requires: libsoup >= 2.2.3
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 %define schemadir /usr/share/openldap/schema
51 The Evolution data server for the calendar and addressbook.
54 Serwer danych Evolution dla kalendarza i ksi±¿ki adresowej.
56 %package -n openldap-schema-evolutionperson
57 Summary: evolutionperson LDAP schema
58 Summary(pl): Schemat LDAP evolutionperson
59 Group: Networking/Daemons
60 Requires(post,postun): sed >= 4.0
61 Requires: openldap-servers
63 %description -n openldap-schema-evolutionperson
64 This package contains evolutionperson.schema for openldap server.
66 %description -n openldap-schema-evolutionperson -l pl
67 Ten pakiet zawiera evolutionperson.schema dla serwera openldap.
70 Summary: Evolution data server development files
71 Summary(pl): Pliki programistyczne serwera danych evolution
72 Group: Development/Libraries
73 Requires: %{name} = %{version}-%{release}
74 # for all but libegroupwise
75 Requires: GConf2-devel >= 2.10.0
76 Requires: ORBit2-devel >= 1:2.12.1
77 Requires: glib2-devel >= 1:2.6.4
78 Requires: libbonobo-devel >= 2.8.1
79 Requires: libgnome-devel >= 2.10.0-2
80 Requires: libxml2-devel
82 Requires: libsoup-devel >= 2.2.3
85 This package contains the files necessary to develop applications
86 using Evolution's data server libraries.
88 %description devel -l pl
89 Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji
90 korzystaj±cych z bibliotek serwera danych Evolution.
93 Summary: Evolution data server static libraries
94 Summary(pl): Statyczne biblioteki serwera danych Evolution
95 Group: Development/Libraries
96 Requires: %{name}-devel = %{version}-%{release}
99 Evolution data server static libraries.
101 %description static -l pl
102 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}-%{mver}/{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-%{mver}
207 %attr(755,root,root) %{_libdir}/camel-lock-helper-%{mver}
208 %attr(755,root,root) %{_libdir}/*.so.*.*
209 %dir %{_libdir}/%{name}-%{mver}
210 %attr(755,root,root) %{_libdir}/%{name}-%{mver}/%{name}
211 %dir %{_libdir}/%{name}-%{mver}/camel-providers
212 %attr(755,root,root) %{_libdir}/%{name}-%{mver}/camel-providers/*.so
213 %{_libdir}/%{name}-%{mver}/camel-providers/*.urls
214 %dir %{_libdir}/%{name}-%{mver}/extensions
215 %attr(755,root,root) %{_libdir}/%{name}-%{mver}/extensions/*.so
216 %{_libdir}/bonobo/servers/*
218 %dir %{_datadir}/%{name}-%{mver}
219 %{_datadir}/%{name}-%{mver}/glade
220 %{_datadir}/%{name}-%{mver}/weather
221 %{_datadir}/%{name}-%{mver}/zoneinfo
223 %{_datadir}/%{name}-%{mver}/*.schema
225 %{_pixmapsdir}/%{name}-%{mver}
227 %files -n openldap-schema-evolutionperson
228 %defattr(644,root,root,755)
229 %{schemadir}/*.schema
232 %defattr(644,root,root,755)
233 %attr(755,root,root) %{_libdir}/*.so
240 %defattr(644,root,root,755)