+
+%define mver 1.0
+
Summary: Evolution data server
Name: evolution-data-server
Version: 0.0.3
-Release: 0.1
+Release: 0.9
License: GPL
Group: Libraries
-Source0: ftp://ftp.gnome.org/pub/gnome/sources/evolution-data-server/0.0/%{name}-%{version}.tar.gz
+Source0: http://ftp.gnome.org/pub/gnome/sources/%{name}/0.0/%{name}-%{version}.tar.gz
# Source0-md5: bcacfd623db973a100deb67f0b7d8a38
-URL: http://www.gnome.org
+URL: http://www.ximian.com/products/ximian_evolution/
BuildRequires: libsoup-devel >= 2.1.2
-Requires(post): /sbin/ldconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Requires(post,postun): /sbin/ldconfig
+Requires(post,postun): /usr/bin/scrollkeeper-update
+Requires(post): GConf2
%description
Evolution data server.
Group: Development/Libraries
%description devel
-Evolution data server development files.
-
-%description devel -l pl
-
-%package static
-Summary: Evolution data server static libraries
-Group: Development/Libraries
-
-%description static
-Evolution data server static libraries.
+This package contains the files necessary to develop applications
+using Evolution's data server libraries.
%prep
-%setup -q
+%setup -q
%build
-%configure
-%{__make}
+glib-gettextize --copy --force
+intltoolize --copy --force
+%{__libtoolize}
+%{__aclocal} -I %{_aclocaldir}/gnome2-macros
+%{__autoheader}
+%{__autoconf}
+%{__automake}
+%configure \
+ --disable-gtk-doc \
+ --with-openldap=yes
+
+%{__make} \
+ GTKHTML_DATADIR=%{_datadir}/idl
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
+ DESTDIR=$RPM_BUILD_ROOT \
+ GTKHTML_DATADIR=%{_datadir}/idl \
+ pkgconfigdir=%{_pkgconfigdir}
+
+%find_lang %{name} --all-name
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+/usr/bin/scrollkeeper-update
+%gconf_schema_install
-%files
-%defattr(644,root,root,755)
-%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
+%postun
+/sbin/ldconfig
+/usr/bin/scrollkeeper-update
-%files devel
+
+%files -f %{name}.lang
%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS* README
+%attr(755,root,root) %{_libdir}/%{name}-1.0
+%attr(755,root,root) %{_libdir}/*.so.*.*
+%{_libdir}/bonobo/servers/*
+%{_datadir}/idl/*
+%{_datadir}/%{name}-%{mver}/zoneinfo
+%{_datadir}/%{name}-%{mver}/*.schema
+
-%files static
+%files devel
%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/*.so
+%{_libdir}/*.la
+%{_includedir}/*
+%{_pkgconfigdir}/*