dmalcolm e15f63
%define use_mozilla_nss 1
dmalcolm e15f63
%define ldap_support 1
dmalcolm e15f63
%define krb5_support 1
dmalcolm e15f63
%define nntp_support 1
dmalcolm e15f63
dmalcolm e15f63
%define soup_version 2.2.2
cvsdist 434808
%define orbit2_version 2.9.8
dmalcolm e15f63
%define libbonobo_version 2.4.2
dmalcolm e15f63
dmalcolm e15f63
%define eds_major 1.2
cvsdist 58ae61
dmalcolm e15f63
%if %{use_mozilla_nss}
dmalcolm e15f63
%define mozilla_version 1.7.5
dmalcolm e15f63
%endif
cvsdist b2a572
cvsdist b2a572
Summary: Backend data server for evolution
cvsdist b2a572
Name: evolution-data-server
dmalcolm e15f63
Version: 1.1.4.1
dmalcolm e15f63
Release: 1
cvsdist b2a572
License: GPL
cvsdist b2a572
Group: System Environment/Libraries
dmalcolm e6c389
Source0: ftp://ftp.gnome.org/pub/gnome/sources/evolution-data-server/1.0/%{name}-%{version}.tar.bz2
dmalcolm 3be68b
#Patch1: evolution-data-server-1.0.2-fix-64-bit-build.patch
dmalcolm 15c398
#Patch2: fix_contact_leaks.patch
dmalcolm 15c398
Patch3: evolution-data-server-1.0.2-workaround-cal-backend-leak.patch
dmalcolm e15f63
#Patch4: evolution-data-server-1.0.2-fix-calendar-factory-GType.patch
dmalcolm 020533
dmalcolm 3be68b
# Patch for part of bug #141283 not in upstream tarball (in Ximian bugzilla as 70267)
dmalcolm e15f63
#Patch6: evolution-data-server-1.0.2-calendar-optimisation-XB70267.patch
dmalcolm e15f63
dmalcolm e15f63
Patch98: evolution-1.4.4-ldap-x86_64-hack.patch
dmalcolm 3d417f
cvsdist b2a572
BuildRoot: %{_tmppath}/%{name}-root
cvsdist 58ae61
Requires: libsoup >= %{soup_version}
cvsdist 434808
Requires: ORBit2 >= %{orbit2_version}
dmalcolm e15f63
Requires: libbonobo >= %{libbonobo_version}
dmalcolm e15f63
Requires: libgnomeui
dmalcolm e15f63
Requires: gnome-vfs2
dmalcolm e15f63
Requires: GConf2
dmalcolm e15f63
Requires: libglade2
dmalcolm e15f63
%if %{use_mozilla_nss}
dmalcolm e15f63
Requires: mozilla-nss >= 37:%{mozilla_version}
dmalcolm e15f63
Requires: mozilla-nspr >= 37:%{mozilla_version}
dmalcolm e15f63
%endif
dmalcolm e15f63
dmalcolm e15f63
BuildRequires: glib2-devel, gnome-vfs2-devel, GConf2-devel
cvsdist a8db9b
BuildRequires: intltool
cvsdist a8db9b
BuildRequires: libsoup-devel >= %{soup_version}
cvsdist a8db9b
BuildRequires: ORBit2-devel >= %{orbit2_version}
dmalcolm e15f63
BuildRequires: libbonobo-devel >= %{libbonobo_version}
dmalcolm e15f63
BuildRequires: libgnomeui-devel
dmalcolm e15f63
BuildRequires: libglade2-devel
dmalcolm e15f63
%if %{use_mozilla_nss}
dmalcolm e15f63
BuildRequires: mozilla-nspr-devel >= 37:%{mozilla_version}
dmalcolm e15f63
BuildRequires: mozilla-nss-devel >= 37:%{mozilla_version}
dmalcolm e15f63
%else
dmalcolm e15f63
BuildRequires: openssl-devel
dmalcolm e15f63
%endif
dmalcolm e15f63
dmalcolm e15f63
%if %{ldap_support}
dmalcolm e15f63
BuildRequires: openldap-devel >= 2.0.11 
dmalcolm e15f63
%endif
dmalcolm e15f63
dmalcolm e15f63
%if %{krb5_support} 
dmalcolm e15f63
BuildRequires: krb5-devel 
dmalcolm e15f63
# tweak for krb5 1.2 vs 1.3
dmalcolm e15f63
%define krb5dir /usr/kerberos
dmalcolm e15f63
#define krb5dir `pwd`/krb5-fakeprefix
dmalcolm e15f63
%endif
cvsdist b2a572
cvsdist b2a572
%description
cvsdist 4aecd2
The evolution-data-server package provides a unified backend for programs that work with contacts, tasks, and calendar information.
cvsdist 4aecd2
cvsdist 4aecd2
It was originally developed for Evolution (hence the name), but is now used by other packages.
cvsdist b2a572
cvsdist b2a572
%package devel
cvsdist b2a572
Summary: Development files for building against evolution-data-server
cvsdist b2a572
Group: Development/Libraries
cvsdist 648473
Requires: %{name} = %{version}-%{release}
cvsdist 648473
Requires: libbonobo-devel
cvsdist 648473
Requires: libgnome-devel
cvsdist b2a572
cvsdist b2a572
%description devel
cvsdist b2a572
Development files needed for building things which link against 
cvsdist b2a572
evolution-data-server.
cvsdist b2a572
cvsdist b2a572
%prep
cvsdist b2a572
%setup -q
dmalcolm 3be68b
#%patch1 -p1 -b .fix-64-bit-build
dmalcolm 15c398
#%patch2 -p1 -b .fix_contact_leaks
dmalcolm 15c398
%patch3 -p1 -b .workaround-cal-backend-leak
dmalcolm e15f63
#%patch4 -p1 -b .fix-calendar-factory-GType
dmalcolm 020533
dmalcolm 3d417f
dmalcolm e15f63
#%patch6 -p0 -b .calendar-optimisation-XB70267
dmalcolm e15f63
dmalcolm e15f63
%patch98 -p1 -b .ldaphack
dmalcolm e15f63
dmalcolm e15f63
mkdir -p krb5-fakeprefix/include
dmalcolm e15f63
mkdir -p krb5-fakeprefix/lib
dmalcolm e15f63
mkdir -p krb5-fakeprefix/%{_lib}
dmalcolm 3d417f
cvsdist b2a572
%build
dmalcolm e15f63
%if %{ldap_support}
dmalcolm e15f63
%define ldap_flags --with-openldap=yes
dmalcolm e15f63
%else
dmalcolm e15f63
%define ldap_flags --without-openldap
dmalcolm e15f63
%endif
dmalcolm e15f63
dmalcolm e15f63
%if %{krb5_support}
dmalcolm e15f63
%define krb5_flags --with-krb5=%{krb5dir}
dmalcolm e15f63
%else
dmalcolm e15f63
%define krb5_flags --without-krb5
dmalcolm e15f63
%endif
dmalcolm e15f63
dmalcolm e15f63
%if %{nntp_support}
dmalcolm e15f63
%define nntp_flags --enable-nntp=yes
dmalcolm e15f63
%else
dmalcolm e15f63
%define nntp_flags --enable-nntp=no
dmalcolm e15f63
%endif
dmalcolm e15f63
dmalcolm e15f63
%if %{use_mozilla_nss}
dmalcolm e15f63
%define ssl_flags --with-nspr-includes=/usr/include/mozilla-%{mozilla_version}/nspr --with-nspr-libs=%{_libdir} --with-nss-includes=/usr/include/mozilla-%{mozilla_version}/nss --with-nss-libs=%{_libdir}
dmalcolm e15f63
%else
dmalcolm e15f63
%define ssl_flags --enable-openssl=yes
dmalcolm e15f63
%endif
dmalcolm e15f63
dmalcolm e15f63
%if %{use_mozilla_nss}
dmalcolm e15f63
if [ ! -f /usr/include/mozilla-%{mozilla_version}/nspr/nspr.h ]; then
dmalcolm e15f63
  echo "Unable to find suitable version of mozilla nss to use!"
dmalcolm e15f63
  exit 1
dmalcolm e15f63
fi
dmalcolm e15f63
%endif
dmalcolm e15f63
dmalcolm e15f63
CPPFLAGS="-I%{_includedir}/et"; export CPPFLAGS
dmalcolm e15f63
CFLAGS="$RPM_OPT_FLAGS -fPIC -I%{_includedir}/et"; export CFLAGS
dmalcolm e15f63
%if ! %{use_mozilla_nss}
dmalcolm e15f63
if pkg-config openssl ; then
dmalcolm e15f63
	CFLAGS="$CFLAGS `pkg-config --cflags openssl`"
dmalcolm e15f63
	LDFLAGS="$LDFLAGS `pkg-config --libs-only-L openssl`"
dmalcolm e15f63
fi
dmalcolm e15f63
%endif
dmalcolm e15f63
dmalcolm e15f63
%configure \
dmalcolm e15f63
  --enable-gtk-doc \
dmalcolm e15f63
  --enable-file-locking=fcntl --enable-dot-locking=no \
dmalcolm e15f63
  %ldap_flags %krb5_flags %nntp_flags %ssl_flags
cvsdist b2a572
export tagname=CC
cvsdist b2a572
make LIBTOOL=/usr/bin/libtool
cvsdist b2a572
cvsdist b2a572
%install
cvsdist b2a572
rm -rf $RPM_BUILD_ROOT
cvsdist b2a572
export tagname=CC
cvsdist b2a572
make DESTDIR=$RPM_BUILD_ROOT LIBTOOL=/usr/bin/libtool install
cvsdist b2a572
cvsdist b2a572
# remove libtool archives for importers and the like
cvsdist b2a572
find $RPM_BUILD_ROOT/%{_libdir} -name '*.la' -exec rm {} \;
cvsdist b2a572
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
cvsdist b2a572
dmalcolm e15f63
%find_lang %{name}-%{eds_major}
cvsdist b2a572
cvsdist b2a572
%clean
cvsdist b2a572
rm -rf $RPM_BUILD_ROOT
cvsdist b2a572
cvsdist b2a572
%post -p /sbin/ldconfig
cvsdist b2a572
cvsdist b2a572
%postun -p /sbin/ldconfig
cvsdist b2a572
dmalcolm e15f63
%files -f %{name}-%{eds_major}.lang
cvsdist b2a572
%defattr(-,root,root,-)
cvsdist b2a572
%doc README COPYING ChangeLog NEWS AUTHORS
cvsdist b2a572
%{_libdir}/bonobo/servers/*
cvsdist b2a572
%{_libdir}/*.so.*
cvsdist b2a572
%{_libexecdir}/evolution-data-server-%{eds_major}
dmalcolm e15f63
%{_libexecdir}/camel-index-control-%{eds_major}
dmalcolm e15f63
%{_libexecdir}/camel-lock-helper-%{eds_major}
cvsdist b2a572
%{_datadir}/evolution-data-server-%{eds_major}
cvsdist b2a572
%{_datadir}/idl/evolution-data-server-%{eds_major}
dmalcolm e15f63
%{_datadir}/pixmaps/evolution-data-server-%{eds_major}
dmalcolm e15f63
%{_libdir}/evolution-data-server-%{eds_major}
cvsdist b2a572
cvsdist b2a572
%files devel
cvsdist b2a572
%defattr(-,root,root,-)
cvsdist b2a572
%{_includedir}/evolution-data-server-%{eds_major}
cvsdist b2a572
%{_datadir}/gtk-doc/html/*
cvsdist b2a572
%{_libdir}/*.so
cvsdist b2a572
%{_libdir}/pkgconfig/*.pc
cvsdist b2a572
cvsdist b2a572
cvsdist b2a572
%changelog
dmalcolm e15f63
* Wed Jan 26 2005 David Malcolm <dmalcolm@redhat.com> - 1.1.4.1-1
dmalcolm e15f63
- Update from 1.0.3 to 1.1.4.1
dmalcolm e15f63
- Updated eds_major from 1.0 to 1.2; fixed translation search path.
dmalcolm e15f63
- Removed 64-bit patch for calendar backend hash table; upstream now stores pointers to ECalBackendFactory, rather than GType
dmalcolm e15f63
- Removed calendar optimisation patch for part of part of bug #141283 as this is now in the upstream tarball
dmalcolm e15f63
- Added /usr/lib/evolution-data-server-%{eds_major} to cover the extensions, plus the camel code now in e-d-s, rather than evolution
dmalcolm e15f63
- Added /usr/share/pixmaps/evolution-data-server-%{eds_major} to cover the category pixmaps
dmalcolm e15f63
- Camel code from evolution is now in evolution-data-server:
dmalcolm e15f63
  - Added camel-index-control and camel-lock-helper to packaged files
dmalcolm e15f63
  - Added mozilla dependency code from the evolution package
dmalcolm e15f63
  - Ditto for LDAP
dmalcolm e15f63
  - Ditto for krb5
dmalcolm e15f63
  - Ditto for NNTP support handling
dmalcolm e15f63
  - Ditto for --enable-file-locking and --enable-dot-locking
dmalcolm e15f63
- Added requirements on libbonobo, libgnomeui, gnome-vfs2, GConf2, libglade2
dmalcolm e15f63
- Updated libsoup requirement from 2.2.1 to 2.2.2
dmalcolm e15f63
- Enabled gtk-doc
dmalcolm e15f63
dmalcolm 5e5665
* Wed Dec 15 2004 David Malcolm <dmalcolm@redhat.com> - 1.0.3-2
dmalcolm 5e5665
- fixed packaging of translation files to reflect upstream change to GETTEXT_PACKAGE being evolution-data-server-1.0 rather than -1.5
dmalcolm 5e5665
dmalcolm 3be68b
* Wed Dec 15 2004 David Malcolm <dmalcolm@redhat.com> - 1.0.3-1
dmalcolm 3be68b
- update from upstream 1.0.2 to 1.0.3:
dmalcolm 3be68b
  * Address Book
dmalcolm 3be68b
    - prevent e_book_commit_contact from crashing on multiple calls (Diego Gonzalez)
dmalcolm 3be68b
    - prevent file backend from crashing if uid of vcard is NULL (Diego Gonzalez)
dmalcolm 3be68b
dmalcolm 3be68b
  * Calendar
dmalcolm 3be68b
    #XB59904 - Speed up calendar queries (Rodrigo)
dmalcolm 3be68b
    #XB69624 - make changes in evo corresponding to soap schema changes  (Siva)
dmalcolm 3be68b
    - fix libical build for automake 1.9 (Rodney)
dmalcolm 3be68b
    - fix putenv usage for portability (Julio M. Merino Vidal)
dmalcolm 3be68b
dmalcolm 3be68b
  * Updated Translations:
dmalcolm 3be68b
    - sv (Christian Rose)
dmalcolm 3be68b
dmalcolm 3be68b
- Removed patches to fix build on x86_64 and calendar optimisation for XB59004 as these are in the upstream tarball
dmalcolm 3be68b
dmalcolm 3d417f
* Tue Dec  7 2004 David Malcolm <dmalcolm@redhat.com> - 1.0.2-6
dmalcolm 3d417f
- Amortize writes to a local cache of a webcal calendar, fixing further aspect of #141283 (upstream bugzilla #70267), as posted to mailing list here:
dmalcolm 3d417f
http://lists.ximian.com/archives/public/evolution-patches/2004-December/008338.html
dmalcolm 3d417f
(The groupwise part of that patch did not cleanly apply, so I removed it).
dmalcolm 3d417f
dmalcolm 020533
* Thu Dec  2 2004 David Malcolm <dmalcolm@redhat.com> - 1.0.2-5
dmalcolm 020533
- Added fix for #141283 (upstream bugzilla XB 59904), a backported calendar 
dmalcolm 020533
optimisation patch posted to upstream development mailing list here:
dmalcolm 020533
http://lists.ximian.com/archives/public/evolution-patches/2004-November/008139.html
dmalcolm 020533
dmalcolm 020533
* Wed Nov  3 2004 David Malcolm <dmalcolm@redhat.com> - 1.0.2-4
dmalcolm 020533
- Added patch to fix usage of GINT_TO_POINTER/GPOINTER_TO_INT for calendar backend GType hash table, breaking on ia64  (#136914)
dmalcolm 020533
dmalcolm 15c398
* Wed Oct 20 2004 David Malcolm <dmalcolm@redhat.com> - 1.0.2-3
dmalcolm 15c398
- added workaround for a backend leak that causes the "contacts" calendar 
dmalcolm 15c398
backend to hold open an EBook for the local contacts (filed upstream at:
dmalcolm 15c398
http://bugzilla.ximian.com/show_bug.cgi?id=68533 ); this was causing e-d-s to
dmalcolm 15c398
never lose its last addressbook, and hence never quit.  We workaround this by
dmalcolm 15c398
detecting this condition and exiting when it occurs, fixing bug #134851 and #134849.
dmalcolm 15c398
dmalcolm 8d9761
* Tue Oct 12 2004 David Malcolm <dmalcolm@redhat.com> - 1.0.2-2
dmalcolm 8d9761
- added patch to fix build on x86_64 (had multiple definitions of mutex code in libdb/dbinc.mutex.h)
dmalcolm 8d9761
dmalcolm cb81c3
* Tue Oct 12 2004 David Malcolm <dmalcolm@redhat.com> - 1.0.2-1
dmalcolm cb81c3
- update from 1.0.1 to 1.0.2
dmalcolm cb81c3
- increased libsoup requirement to 2.2.1 to match configuration script
dmalcolm cb81c3
dmalcolm 521ea0
* Tue Sep 28 2004 David Malcolm <dmalcolm@redhat.com> - 1.0.1-1
dmalcolm 521ea0
- update from 1.0.0 to 1.0.1
dmalcolm 521ea0
- removed patch that fixed warnings in calendar code (now in upstream tarball)
dmalcolm 521ea0
dmalcolm a6822a
* Mon Sep 20 2004 David Malcolm <dmalcolm@redhat.com> - 1.0.0-2
dmalcolm 459a4b
- fixed various warnings in the calendar code 
dmalcolm 459a4b
  (filed upstream here: http://bugzilla.ximian.com/show_bug.cgi?id=66383)
dmalcolm a6822a
dmalcolm e6c389
* Tue Sep 14 2004 David Malcolm <dmalcolm@redhat.com> - 1.0.0-1
dmalcolm e6c389
- update from 0.0.99 to 1.0.0
dmalcolm e6c389
- changed path in FTP source location from 0.0 to 1.0
dmalcolm e6c389
cvsdist 1f9826
* Tue Aug 31 2004 David Malcolm <dmalcolm@redhat.com> - 0.0.99-1
cvsdist 1f9826
- update from 0.0.98 to 0.0.99
cvsdist 1f9826
- increased libsoup requirement to 2.2.0 to match configuration script
cvsdist 1f9826
cvsdist 398b64
* Mon Aug 16 2004 David Malcolm <dmalcolm@redhat.com> - 0.0.98-1
cvsdist 398b64
- updated tarball from 0.0.97 to 0.0.98; updated required libsoup version to 2.1.13
cvsdist 398b64
cvsdist 648473
* Thu Aug  5 2004 Warren Togami <wtogami@redhat.com> - 0.0.97-2
cvsdist 648473
- pkgconfig -devel Requires libbonobo-devel, libgnome-devel
cvsdist 648473
cvsdist 4aecd2
* Wed Aug  4 2004 David Malcolm <dmalcolm@redhat.com> - 0.0.97-1
cvsdist 4aecd2
- upgraded to 0.0.97; rewrote the package's description
cvsdist 4aecd2
cvsdist a8db9b
* Mon Jul 26 2004 David Malcolm <dmalcolm@redhat.com>
cvsdist a8db9b
- rebuilt
cvsdist a8db9b
cvsdist a8db9b
* Tue Jul 20 2004 David Malcolm <dmalcolm@redhat.com> - 0.0.96-2
cvsdist a8db9b
- added version numbers to the BuildRequires test for libsoup-devel and ORBit2-devel
cvsdist a8db9b
cvsdist a8db9b
* Tue Jul 20 2004 David Malcolm <dmalcolm@redhat.com> - 0.0.96-1
cvsdist a8db9b
- 0.0.96; libsoup required is now 2.1.12
cvsdist a8db9b
cvsdist b8cc4b
* Thu Jul  8 2004 David Malcolm <dmalcolm@redhat.com>
cvsdist b8cc4b
- rebuilt
cvsdist b8cc4b
cvsdist d3a245
* Wed Jul  7 2004 David Malcolm <dmalcolm@redhat.com>
cvsdist d3a245
- rebuilt
cvsdist d3a245
cvsdist d3a245
* Tue Jul  6 2004 David Malcolm <dmalcolm@redhat.com> - 0.0.95-1
cvsdist d3a245
- 0.0.95
cvsdist d3a245
cvsdist a5df5b
* Thu Jun 17 2004 David Malcolm <dmalcolm@redhat.com> - 0.0.94.1-1
cvsdist a5df5b
- 0.0.94.1
cvsdist a5df5b
cvsdist 6522bf
* Mon Jun  7 2004 David Malcolm <dmalcolm@redhat.com> - 0.0.94-2
cvsdist 6522bf
- rebuilt
cvsdist 6522bf
cvsdist 434808
* Mon Jun  7 2004 David Malcolm <dmalcolm@redhat.com> - 0.0.94-1
cvsdist 434808
- 0.0.94
cvsdist 434808
cvsdist 434808
* Wed May 26 2004 David Malcolm <dmalcolm@redhat.com> - 0.0.93-4
cvsdist 434808
- added ORBit2 requirement
cvsdist 434808
cvsdist 2b334d
* Fri May 21 2004 David Malcolm <dmalcolm@redhat.com> - 0.0.93-3
cvsdist 2b334d
- rebuild again
cvsdist 2b334d
cvsdist cb791b
* Fri May 21 2004 David Malcolm <dmalcolm@redhat.com> - 0.0.93-2
cvsdist cb791b
- rebuilt
cvsdist cb791b
cvsdist cb791b
* Thu May 20 2004 David Malcolm <dmalcolm@redhat.com> - 0.0.93-1
cvsdist cb791b
- 0.0.93; libsoup required is now 2.1.10
cvsdist cb791b
cvsdist 58ae61
* Wed Apr 21 2004 David Malcolm <dmalcolm@redhat.com> - 0.0.92-1
cvsdist 58ae61
- Update to 0.0.92; added a define and a requirement on the libsoup version
cvsdist 58ae61
cvsdist 58ae61
* Wed Mar 10 2004 Jeremy Katz <katzj@redhat.com> - 0.0.90-1
cvsdist 58ae61
- 0.0.90
cvsdist 58ae61
cvsdist 58ae61
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 58ae61
- rebuilt
cvsdist 58ae61
cvsdist b2d4cc
* Mon Jan 26 2004 Jeremy Katz <katzj@redhat.com> - 0.0.6-1
cvsdist b2d4cc
- 0.0.6
cvsdist b2d4cc
cvsdist b2a572
* Wed Jan 21 2004 Jeremy Katz <katzj@redhat.com> - 0.0.5-2
cvsdist b2a572
- better fix by using system libtool
cvsdist b2a572
cvsdist b2a572
* Mon Jan 19 2004 Jeremy Katz <katzj@redhat.com> 0.0.5-1
cvsdist b2a572
- add some libdb linkage to make the build on x86_64 happy
cvsdist b2a572
cvsdist b2a572
* Wed Jan 14 2004 Jeremy Katz <katzj@redhat.com> 0.0.5-0
cvsdist b2a572
- update to 0.0.5
cvsdist b2a572
cvsdist b2a572
* Sat Jan  3 2004 Jeremy Katz <katzj@redhat.com> 0.0.4-0
cvsdist b2a572
- Initial build.