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 Group: Networking/Daemons
59 Requires(post,postun): sed >= 4.0
60 Requires: openldap-servers
62 %description -n openldap-schema-evolutionperson
63 This package contains evolutionperson.schema for openldap.
66 Summary: Evolution data server development files
67 Summary(pl): Pliki programistyczne serwera danych evolution
68 Group: Development/Libraries
69 Requires: %{name} = %{version}-%{release}
70 # for all but libegroupwise
71 Requires: GConf2-devel >= 2.10.0
72 Requires: ORBit2-devel >= 1:2.12.1
73 Requires: glib2-devel >= 1:2.6.4
74 Requires: libbonobo-devel >= 2.8.1
75 Requires: libgnome-devel >= 2.10.0-2
76 Requires: libxml2-devel
78 Requires: libsoup-devel >= 2.2.3
81 This package contains the files necessary to develop applications
82 using Evolution's data server libraries.
84 %description devel -l pl
85 Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji
86 korzystaj±cych z bibliotek serwera danych Evolution.
89 Summary: Evolution data server static libraries
90 Summary(pl): Statyczne biblioteki serwera danych Evolution
91 Group: Development/Libraries
92 Requires: %{name}-devel = %{version}-%{release}
95 Evolution data server static libraries.
97 %description static -l pl
98 Statyczne biblioteki serwera danych Evolution.
128 %{?with_kerberos5:--with-krb5=%{_prefix}} \
129 %{!?with_kerberos5:--with-krb5=no} \
130 %{?with_ldap:--with-openldap=yes} \
131 %{!?with_ldap:--with-openldap=no} \
134 --with-nspr-includes=%{_includedir}/nspr \
135 --with-nspr-libs=%{_libdir} \
136 --with-nss-includes=%{_includedir}/nss \
137 --with-nss-libs=%{_libdir}
139 HTML_DIR=%{_gtkdocdir} \
140 GTKHTML_DATADIR=%{_datadir}/idl
143 rm -rf $RPM_BUILD_ROOT
146 DESTDIR=$RPM_BUILD_ROOT \
147 GTKHTML_DATADIR=%{_datadir}/idl \
148 HTML_DIR=%{_gtkdocdir} \
149 pkgconfigdir=%{_pkgconfigdir}
151 rm $RPM_BUILD_ROOT%{_libdir}/%{name}-%{mver}/{camel-providers,extensions}/*.{la,a}
153 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
155 install -d $RPM_BUILD_ROOT%{schemadir}
156 install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir}
158 %find_lang %{name} --all-name
161 rm -rf $RPM_BUILD_ROOT
165 %scrollkeeper_update_post
169 %scrollkeeper_update_postun
171 %post -n openldap-schema-evolutionperson
172 if ! grep -q %{schemadir}/evolutionperson.schema /etc/openldap/slapd.conf; then
174 /^include.*local.schema/{
176 include %{schemadir}/evolutionperson.schema
178 ' /etc/openldap/slapd.conf
181 if [ -f /var/lock/subsys/ldap ]; then
182 /etc/rc.d/init.d/ldap restart >&2
185 %postun -n openldap-schema-evolutionperson
186 if [ "$1" = "0" ]; then
187 if grep -q %{schemadir}/evolutionperson.schema /etc/openldap/slapd.conf; then
189 /^include.*\/usr\/share\/openldap\/schema\/evolutionperson.schema/d
190 ' /etc/openldap/slapd.conf
193 if [ -f /var/lock/subsys/ldap ]; then
194 /etc/rc.d/init.d/ldap restart >&2 || :
199 %files -f %{name}.lang
200 %defattr(644,root,root,755)
201 %doc AUTHORS ChangeLog NEWS* README
202 %attr(755,root,root) %{_libdir}/camel-index-control-%{mver}
203 %attr(755,root,root) %{_libdir}/camel-lock-helper-%{mver}
204 %attr(755,root,root) %{_libdir}/*.so.*.*
205 %dir %{_libdir}/%{name}-%{mver}
206 %attr(755,root,root) %{_libdir}/%{name}-%{mver}/%{name}
207 %dir %{_libdir}/%{name}-%{mver}/camel-providers
208 %attr(755,root,root) %{_libdir}/%{name}-%{mver}/camel-providers/*.so
209 %{_libdir}/%{name}-%{mver}/camel-providers/*.urls
210 %dir %{_libdir}/%{name}-%{mver}/extensions
211 %attr(755,root,root) %{_libdir}/%{name}-%{mver}/extensions/*.so
212 %{_libdir}/bonobo/servers/*
214 %dir %{_datadir}/%{name}-%{mver}
215 %{_datadir}/%{name}-%{mver}/glade
216 %{_datadir}/%{name}-%{mver}/weather
217 %{_datadir}/%{name}-%{mver}/zoneinfo
219 %{_datadir}/%{name}-%{mver}/*.schema
221 %{_pixmapsdir}/%{name}-%{mver}
223 %files -n openldap-schema-evolutionperson
224 %defattr(644,root,root,755)
225 %{schemadir}/*.schema
228 %defattr(644,root,root,755)
229 %attr(755,root,root) %{_libdir}/*.so
236 %defattr(644,root,root,755)