# no ppc64 mozilla # if you fix this, remember to update dependent packages: # gnome-panel ExcludeArch: ppc64 %define use_mozilla_nss 1 %define ldap_support 1 %define krb5_support 1 %define nntp_support 1 %define soup_version 2.2.3 %define orbit2_version 2.9.8 %define libbonobo_version 2.4.2 %define eds_major 1.2 %ifarch s390x ia64 %define use_gtk_doc 0 %else %define use_gtk_doc 1 %endif Summary: Backend data server for evolution Name: evolution-data-server Version: 1.2.2 Release: 3 License: GPL Group: System Environment/Libraries Source0: ftp://ftp.gnome.org/pub/gnome/sources/evolution-data-server/1.0/%{name}-%{version}.tar.bz2 #Patch1: evolution-data-server-1.0.2-fix-64-bit-build.patch #Patch2: fix_contact_leaks.patch Patch3: evolution-data-server-1.0.2-workaround-cal-backend-leak.patch #Patch4: evolution-data-server-1.0.2-fix-calendar-factory-GType.patch # Patch for part of bug #141283 not in upstream tarball (in Ximian bugzilla as 70267) #Patch6: evolution-data-server-1.0.2-calendar-optimisation-XB70267.patch Patch98: evolution-1.4.4-ldap-x86_64-hack.patch Patch100: evolution-data-server-1.2.0-cope-with-a-macro-called-read.patch Patch101: evolution-data-server-1.2.2-fix_open_calendar_declaration.patch BuildRoot: %{_tmppath}/%{name}-root Requires: libsoup >= %{soup_version} Requires: ORBit2 >= %{orbit2_version} Requires: libbonobo >= %{libbonobo_version} Requires: libgnomeui Requires: gnome-vfs2 Requires: GConf2 Requires: libglade2 BuildRequires: glib2-devel, gnome-vfs2-devel, GConf2-devel BuildRequires: intltool BuildRequires: libsoup-devel >= %{soup_version} BuildRequires: ORBit2-devel >= %{orbit2_version} BuildRequires: libbonobo-devel >= %{libbonobo_version} BuildRequires: libgnomeui-devel BuildRequires: libglade2-devel %if %{use_mozilla_nss} BuildRequires: mozilla-nspr-devel BuildRequires: mozilla-nss-devel %else BuildRequires: openssl-devel %endif %if %{use_gtk_doc} BuildRequires: gtk-doc %endif %if %{ldap_support} BuildRequires: openldap-devel >= 2.0.11 %endif %if %{krb5_support} BuildRequires: krb5-devel # tweak for krb5 1.2 vs 1.3 %define krb5dir /usr/kerberos #define krb5dir `pwd`/krb5-fakeprefix %endif %description The evolution-data-server package provides a unified backend for programs that work with contacts, tasks, and calendar information. It was originally developed for Evolution (hence the name), but is now used by other packages. %package devel Summary: Development files for building against evolution-data-server Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: libbonobo-devel Requires: libgnome-devel %description devel Development files needed for building things which link against evolution-data-server. %prep %setup -q #%patch1 -p1 -b .fix-64-bit-build #%patch2 -p1 -b .fix_contact_leaks %patch3 -p1 -b .workaround-cal-backend-leak #%patch4 -p1 -b .fix-calendar-factory-GType #%patch6 -p0 -b .calendar-optimisation-XB70267 %patch98 -p1 -b .ldaphack %patch100 -p1 -b .cope-with-a-macro-called-read %patch101 -p1 -b .fix_open_calendar_declaration mkdir -p krb5-fakeprefix/include mkdir -p krb5-fakeprefix/lib mkdir -p krb5-fakeprefix/%{_lib} %build %if %{ldap_support} %define ldap_flags --with-openldap=yes %else %define ldap_flags --without-openldap %endif %if %{krb5_support} %define krb5_flags --with-krb5=%{krb5dir} %else %define krb5_flags --without-krb5 %endif %if %{nntp_support} %define nntp_flags --enable-nntp=yes %else %define nntp_flags --enable-nntp=no %endif %if %{use_mozilla_nss} %define ssl_flags --enable-nss=yes --enable-smime=yes %else %define ssl_flags --enable-openssl=yes %endif %if %{use_mozilla_nss} if ! pkg-config --exists mozilla-nss; then echo "Unable to find suitable version of mozilla nss to use!" exit 1 fi %endif CPPFLAGS="-I%{_includedir}/et"; export CPPFLAGS CFLAGS="$RPM_OPT_FLAGS -fPIC -I%{_includedir}/et"; export CFLAGS %if ! %{use_mozilla_nss} if pkg-config openssl ; then CFLAGS="$CFLAGS `pkg-config --cflags openssl`" LDFLAGS="$LDFLAGS `pkg-config --libs-only-L openssl`" fi %endif %if %{use_gtk_doc} %define gtkdoc_flags --enable-gtk-doc %else %define gtkdoc_flags --enable-gtk-doc=no %endif %configure \ %gtkdoc_flags \ --enable-file-locking=fcntl --enable-dot-locking=no \ %ldap_flags %krb5_flags %nntp_flags %ssl_flags export tagname=CC make LIBTOOL=/usr/bin/libtool %install rm -rf $RPM_BUILD_ROOT export tagname=CC make DESTDIR=$RPM_BUILD_ROOT LIBTOOL=/usr/bin/libtool install # remove libtool archives for importers and the like find $RPM_BUILD_ROOT/%{_libdir} -name '*.la' -exec rm {} \; rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a %find_lang %{name}-%{eds_major} %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -f %{name}-%{eds_major}.lang %defattr(-,root,root,-) %doc README COPYING ChangeLog NEWS AUTHORS %{_libdir}/bonobo/servers/* %{_libdir}/*.so.* %{_libexecdir}/evolution-data-server-%{eds_major} %{_libexecdir}/camel-index-control-%{eds_major} %{_libexecdir}/camel-lock-helper-%{eds_major} %{_datadir}/evolution-data-server-%{eds_major} %{_datadir}/idl/evolution-data-server-%{eds_major} %{_datadir}/pixmaps/evolution-data-server-%{eds_major} %{_libdir}/evolution-data-server-%{eds_major} %files devel %defattr(-,root,root,-) %{_includedir}/evolution-data-server-%{eds_major} %{_datadir}/gtk-doc/html/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %changelog * Wed May 18 2005 David Malcolm - 1.2.2-3 - bumped libsoup requirement to 2.2.3; removed mozilla_build_version, using pkg-config instead for locating NSPRS and NSS headers/libraries (#158085) * Mon Apr 11 2005 David Malcolm - 1.2.2-2 - added patch to calendar/libecal/e-cal.c to fix missing declaration of open_calendar * Mon Apr 11 2005 David Malcolm - 1.2.2-1 - 1.2.2 * Thu Mar 17 2005 David Malcolm - 1.2.1-1 - 1.2.1 * Thu Mar 10 2005 David Malcolm - 1.2.0-3 - Removed explicit run-time spec-file requirement on mozilla. The Mozilla NSS API/ABI stabilised by version 1.7.3 The libraries are always located in the libdir However, the headers are in /usr/include/mozilla-%{mozilla_build_version} and so they move each time the mozilla version changes. So we no longer have an explicit mozilla run-time requirement in the specfile; a requirement on the appropriate NSS and NSPR .so files is automagically generated on build. We have an explicit, exact build-time version, so that we can find the headers (without invoking an RPM query from the spec file; to do so is considered bad practice) - Introduced mozilla_build_version, to replace mozilla_version - Set mozilla_build_version to 1.7.6 to reflect current state of tree * Tue Mar 8 2005 David Malcolm - 1.2.0-2 - Added a patch to deal with glibc defining a macro called "read" * Tue Mar 8 2005 David Malcolm - 1.2.0-1 - 1.2.0 - Removed patch for GCC 4 as this is now in upstream tarball * Wed Mar 2 2005 Jeremy Katz - 1.1.6-6 - rebuild to fix library linking silliness * Tue Mar 1 2005 David Malcolm - 1.1.6-5 - disabling gtk-doc on ia64 and s390x * Tue Mar 1 2005 David Malcolm - 1.1.6-4 - added macro use_gtk_doc; added missing BuildRequires on gtk-doc; enabled gtk-doc generation on all platforms (had been disabled on ia64) * Tue Mar 1 2005 David Malcolm - 1.1.6-3 - extended patch to deal with camel-groupwise-store-summary.c * Tue Mar 1 2005 David Malcolm - 1.1.6-2 - added patch to fix badly-scoped declaration of "namespace_clear" in camel-imap-store-summary.c * Tue Mar 1 2005 David Malcolm - 1.1.6-1 - 1.1.6 * Tue Feb 8 2005 David Malcolm - 1.1.5-3 - rebuild * Tue Feb 8 2005 David Malcolm - 1.1.5-2 - forgot to fix sources * Tue Feb 8 2005 David Malcolm - 1.1.5-1 - 1.1.5 * Thu Jan 27 2005 David Malcolm - 1.1.4.2-1 - Update from unstable 1.1.4.1 to unstable 1.1.1.4.2 * Wed Jan 26 2005 David Malcolm - 1.1.4.1-3 - disable gtk-doc generation on ia64 for now * Wed Jan 26 2005 David Malcolm - 1.1.4.1-2 - Exclude ppc64 due to missing mozilla dependency * Wed Jan 26 2005 David Malcolm - 1.1.4.1-1 - Update from 1.0.3 to 1.1.4.1 - Updated eds_major from 1.0 to 1.2; fixed translation search path. - Removed 64-bit patch for calendar backend hash table; upstream now stores pointers to ECalBackendFactory, rather than GType - Removed calendar optimisation patch for part of part of bug #141283 as this is now in the upstream tarball - Added /usr/lib/evolution-data-server-%{eds_major} to cover the extensions, plus the camel code now in e-d-s, rather than evolution - Added /usr/share/pixmaps/evolution-data-server-%{eds_major} to cover the category pixmaps - Camel code from evolution is now in evolution-data-server: - Added camel-index-control and camel-lock-helper to packaged files - Added mozilla dependency code from the evolution package - Ditto for LDAP - Ditto for krb5 - Ditto for NNTP support handling - Ditto for --enable-file-locking and --enable-dot-locking - Added requirements on libbonobo, libgnomeui, gnome-vfs2, GConf2, libglade2 - Updated libsoup requirement from 2.2.1 to 2.2.2 - Enabled gtk-doc * Wed Dec 15 2004 David Malcolm - 1.0.3-2 - fixed packaging of translation files to reflect upstream change to GETTEXT_PACKAGE being evolution-data-server-1.0 rather than -1.5 * Wed Dec 15 2004 David Malcolm - 1.0.3-1 - update from upstream 1.0.2 to 1.0.3: * Address Book - prevent e_book_commit_contact from crashing on multiple calls (Diego Gonzalez) - prevent file backend from crashing if uid of vcard is NULL (Diego Gonzalez) * Calendar #XB59904 - Speed up calendar queries (Rodrigo) #XB69624 - make changes in evo corresponding to soap schema changes (Siva) - fix libical build for automake 1.9 (Rodney) - fix putenv usage for portability (Julio M. Merino Vidal) * Updated Translations: - sv (Christian Rose) - Removed patches to fix build on x86_64 and calendar optimisation for XB59004 as these are in the upstream tarball * Tue Dec 7 2004 David Malcolm - 1.0.2-6 - Amortize writes to a local cache of a webcal calendar, fixing further aspect of #141283 (upstream bugzilla #70267), as posted to mailing list here: http://lists.ximian.com/archives/public/evolution-patches/2004-December/008338.html (The groupwise part of that patch did not cleanly apply, so I removed it). * Thu Dec 2 2004 David Malcolm - 1.0.2-5 - Added fix for #141283 (upstream bugzilla XB 59904), a backported calendar optimisation patch posted to upstream development mailing list here: http://lists.ximian.com/archives/public/evolution-patches/2004-November/008139.html * Wed Nov 3 2004 David Malcolm - 1.0.2-4 - Added patch to fix usage of GINT_TO_POINTER/GPOINTER_TO_INT for calendar backend GType hash table, breaking on ia64 (#136914) * Wed Oct 20 2004 David Malcolm - 1.0.2-3 - added workaround for a backend leak that causes the "contacts" calendar backend to hold open an EBook for the local contacts (filed upstream at: http://bugzilla.ximian.com/show_bug.cgi?id=68533 ); this was causing e-d-s to never lose its last addressbook, and hence never quit. We workaround this by detecting this condition and exiting when it occurs, fixing bug #134851 and #134849. * Tue Oct 12 2004 David Malcolm - 1.0.2-2 - added patch to fix build on x86_64 (had multiple definitions of mutex code in libdb/dbinc.mutex.h) * Tue Oct 12 2004 David Malcolm - 1.0.2-1 - update from 1.0.1 to 1.0.2 - increased libsoup requirement to 2.2.1 to match configuration script * Tue Sep 28 2004 David Malcolm - 1.0.1-1 - update from 1.0.0 to 1.0.1 - removed patch that fixed warnings in calendar code (now in upstream tarball) * Mon Sep 20 2004 David Malcolm - 1.0.0-2 - fixed various warnings in the calendar code (filed upstream here: http://bugzilla.ximian.com/show_bug.cgi?id=66383) * Tue Sep 14 2004 David Malcolm - 1.0.0-1 - update from 0.0.99 to 1.0.0 - changed path in FTP source location from 0.0 to 1.0 * Tue Aug 31 2004 David Malcolm - 0.0.99-1 - update from 0.0.98 to 0.0.99 - increased libsoup requirement to 2.2.0 to match configuration script * Mon Aug 16 2004 David Malcolm - 0.0.98-1 - updated tarball from 0.0.97 to 0.0.98; updated required libsoup version to 2.1.13 * Thu Aug 5 2004 Warren Togami - 0.0.97-2 - pkgconfig -devel Requires libbonobo-devel, libgnome-devel * Wed Aug 4 2004 David Malcolm - 0.0.97-1 - upgraded to 0.0.97; rewrote the package's description * Mon Jul 26 2004 David Malcolm - rebuilt * Tue Jul 20 2004 David Malcolm - 0.0.96-2 - added version numbers to the BuildRequires test for libsoup-devel and ORBit2-devel * Tue Jul 20 2004 David Malcolm - 0.0.96-1 - 0.0.96; libsoup required is now 2.1.12 * Thu Jul 8 2004 David Malcolm - rebuilt * Wed Jul 7 2004 David Malcolm - rebuilt * Tue Jul 6 2004 David Malcolm - 0.0.95-1 - 0.0.95 * Thu Jun 17 2004 David Malcolm - 0.0.94.1-1 - 0.0.94.1 * Mon Jun 7 2004 David Malcolm - 0.0.94-2 - rebuilt * Mon Jun 7 2004 David Malcolm - 0.0.94-1 - 0.0.94 * Wed May 26 2004 David Malcolm - 0.0.93-4 - added ORBit2 requirement * Fri May 21 2004 David Malcolm - 0.0.93-3 - rebuild again * Fri May 21 2004 David Malcolm - 0.0.93-2 - rebuilt * Thu May 20 2004 David Malcolm - 0.0.93-1 - 0.0.93; libsoup required is now 2.1.10 * Wed Apr 21 2004 David Malcolm - 0.0.92-1 - Update to 0.0.92; added a define and a requirement on the libsoup version * Wed Mar 10 2004 Jeremy Katz - 0.0.90-1 - 0.0.90 * Fri Feb 13 2004 Elliot Lee - rebuilt * Mon Jan 26 2004 Jeremy Katz - 0.0.6-1 - 0.0.6 * Wed Jan 21 2004 Jeremy Katz - 0.0.5-2 - better fix by using system libtool * Mon Jan 19 2004 Jeremy Katz 0.0.5-1 - add some libdb linkage to make the build on x86_64 happy * Wed Jan 14 2004 Jeremy Katz 0.0.5-0 - update to 0.0.5 * Sat Jan 3 2004 Jeremy Katz 0.0.4-0 - Initial build.