cvsdist c8eb5d
%define gal_version 0.19
cvsdist c8eb5d
%define gtkhtml_version 1.0.1
cvsdist c8eb5d
cvsdist c8eb5d
%define ldap_support 1
cvsdist c8eb5d
%define pilot_support 0
cvsdist c8eb5d
%define nntp_support 0
cvsdist c8eb5d
%define krb5_support 0
cvsdist c8eb5d
cvsdist c8eb5d
# if you're building libnss as part of the build process instead of
cvsdist c8eb5d
# linking against shared libnss; can go away once our packages
cvsdist c8eb5d
# ship with shared libnss by default
cvsdist c8eb5d
%define static_nss 1
cvsdist c8eb5d
cvsdist c8eb5d
%define dbdir db-3.1.17
cvsdist c8eb5d
%define nssdir nss-3.3.1
cvsdist c8eb5d
%define buildtopdir $RPM_BUILD_DIR/%{name}-%{version}
cvsdist c8eb5d
cvsdist c8eb5d
Name: evolution
cvsdist c8eb5d
Version: 1.0.2
cvsdist c8eb5d
Release: 0.7x
cvsdist c8eb5d
License: GPL
cvsdist c8eb5d
BuildRoot: %{_tmppath}/%{name}-%{version}-root
cvsdist c8eb5d
URL: http://www.ximian.com/
cvsdist c8eb5d
Source0: %{name}-%{version}.tar.gz
cvsdist c8eb5d
Source1: db-3.1.17.tar.gz
cvsdist c8eb5d
Source2: ftp.mozilla.org/pub/security/nss/releases/NSS_3_3_1_RTM/src/nss-3.3.1.tar.gz
cvsdist c8eb5d
Patch0: evolution-1.0.1-dborder.patch
cvsdist c8eb5d
Patch1: evolution-1.0.1-staticlibnss.patch
cvsdist c8eb5d
Summary: GNOME's next-generation groupware suite
cvsdist c8eb5d
Group: Applications/Productivity
cvsdist c8eb5d
cvsdist c8eb5d
Requires: scrollkeeper >= 0.1.4
cvsdist c8eb5d
# these are explicit because older versions cause unexpected component hangs
cvsdist c8eb5d
Requires: bonobo >= 1.0.14
cvsdist c8eb5d
Requires: GConf >= 1.0.7
cvsdist c8eb5d
Requires: oaf >= 0.6.7
cvsdist c8eb5d
cvsdist c8eb5d
BuildRequires: gtkhtml-devel >= %{gtkhtml_version}
cvsdist c8eb5d
BuildRequires: gal-devel >= %{gal_version}
cvsdist c8eb5d
BuildRequires: bonobo-devel >= 1.0.3
cvsdist c8eb5d
BuildRequires: bonobo-conf-devel >= 0.12
cvsdist c8eb5d
BuildRequires: oaf-devel >= 0.6.2
cvsdist c8eb5d
BuildRequires: gdk-pixbuf-devel >= 0.9.0
cvsdist c8eb5d
BuildRequires: gnome-vfs-devel >= 1.0.0
cvsdist c8eb5d
BuildRequires: libglade-devel >= 0.14
cvsdist c8eb5d
BuildRequires: GConf-devel >= 0.6
cvsdist c8eb5d
BuildRequires: ORBit-devel >= 0.5.10
cvsdist c8eb5d
BuildRequires: gnome-print-devel >= 0.25
cvsdist c8eb5d
BuildRequires: libxml-devel >= 1.8.16
cvsdist c8eb5d
BuildRequires: intltool >= 0.11
cvsdist c8eb5d
BuildRequires: gtk+-devel >= 1.2.9
cvsdist c8eb5d
cvsdist c8eb5d
BuildRequires:	mozilla-devel
cvsdist c8eb5d
cvsdist c8eb5d
%if %{ldap_support} 
cvsdist c8eb5d
BuildRequires: openldap >= 2.0.11 
cvsdist c8eb5d
%endif
cvsdist c8eb5d
cvsdist c8eb5d
%if %{pilot_support} 
cvsdist c8eb5d
BuildRequires: gnome-pilot-devel 
cvsdist c8eb5d
%endif
cvsdist c8eb5d
cvsdist c8eb5d
%if %{krb5_support} 
cvsdist c8eb5d
BuildRequires: krb5-devel 
cvsdist c8eb5d
%endif
cvsdist c8eb5d
cvsdist c8eb5d
%description
cvsdist c8eb5d
Evolution is the GNOME mailer, calendar, contact manager and
cvsdist c8eb5d
communications tool.  The tools which make up Evolution will
cvsdist c8eb5d
be tightly integrated with one another and act as a seamless
cvsdist c8eb5d
personal information-management tool.
cvsdist c8eb5d
cvsdist c8eb5d
%package devel
cvsdist c8eb5d
Summary: Development libraries and headers for Evolution
cvsdist c8eb5d
Group: Development/Libraries
cvsdist c8eb5d
Requires: %{name} = %{version}
cvsdist c8eb5d
cvsdist c8eb5d
%description devel
cvsdist c8eb5d
The evolution-devel package provides the static libraries and header
cvsdist c8eb5d
files necessary to build and link programs against the libraries included
cvsdist c8eb5d
with Evolution.
cvsdist c8eb5d
cvsdist c8eb5d
%prep
cvsdist c8eb5d
%setup -q -a 1 -a 2
cvsdist c8eb5d
%patch0 -p0 -b .dborder
cvsdist c8eb5d
cvsdist c8eb5d
%if %{static_nss}
cvsdist c8eb5d
%patch1 -p0 -b .staticnss
cvsdist c8eb5d
%endif
cvsdist c8eb5d
cvsdist c8eb5d
%build
cvsdist c8eb5d
cvsdist c8eb5d
## build our db 3.1.17
cvsdist c8eb5d
cd %{buildtopdir}/%{dbdir}/build_unix
cvsdist c8eb5d
CFLAGS="$RPM_OPT_FLAGS" ../dist/configure --prefix=%{_prefix} --enable-static
cvsdist c8eb5d
make
cvsdist c8eb5d
cvsdist c8eb5d
%if %{static_nss}
cvsdist c8eb5d
# build our libnss
cvsdist c8eb5d
cd %{buildtopdir}/%{nssdir}/mozilla/security/nss
cvsdist c8eb5d
make nss_build_all
cvsdist c8eb5d
cvsdist c8eb5d
# now make a tree with libs and includes so we can point evo to it
cvsdist c8eb5d
# move all the libs and headers there 
cvsdist c8eb5d
mkdir %{buildtopdir}/%{nssdir}/include || :
cvsdist c8eb5d
mkdir %{buildtopdir}/%{nssdir}/lib || :
cvsdist c8eb5d
find ./lib -name '*.h' -exec ln {} %{buildtopdir}/%{nssdir}/include \;
cvsdist c8eb5d
find ./lib -name '*.a' -exec ln {} %{buildtopdir}/%{nssdir}/lib \;
cvsdist c8eb5d
# need libdbm too
cvsdist c8eb5d
find %{buildtopdir}/%{nssdir}/mozilla/security/dbm -name '*.a' -exec ln {} %{buildtopdir}/%{nssdir}/lib \;
cvsdist c8eb5d
# make libssl.a be libssl3.a so we can link against it instead of openssl
cvsdist c8eb5d
ln %{buildtopdir}/%{nssdir}/lib/libssl.a %{buildtopdir}/%{nssdir}/lib/libssl3.a
cvsdist c8eb5d
%endif 
cvsdist c8eb5d
cvsdist c8eb5d
## back to evolution 
cvsdist c8eb5d
cd %{buildtopdir}
cvsdist c8eb5d
cvsdist c8eb5d
# define all of our flags, this is kind of ugly :(
cvsdist c8eb5d
%if %{ldap_support}
cvsdist c8eb5d
%define ldap_flags --with-openldap=yes
cvsdist c8eb5d
%else
cvsdist c8eb5d
%define ldap_flags --without-openldap
cvsdist c8eb5d
%endif
cvsdist c8eb5d
cvsdist c8eb5d
%if %{pilot_support}
cvsdist c8eb5d
%define pilot_flags --enable-pilot-conduits=yes
cvsdist c8eb5d
%else
cvsdist c8eb5d
%define pilot_flags --enable-pilot-conduits=no
cvsdist c8eb5d
%endif
cvsdist c8eb5d
cvsdist c8eb5d
%if %{krb5_support}
cvsdist c8eb5d
%define krb5_flags --with-krb5=/usr/kerberos
cvsdist c8eb5d
%else
cvsdist c8eb5d
%define krb5_flags --without-krb5
cvsdist c8eb5d
%endif
cvsdist c8eb5d
cvsdist c8eb5d
%if %{nntp_support}
cvsdist c8eb5d
%define nntp_flags --enable-nntp=yes
cvsdist c8eb5d
%else
cvsdist c8eb5d
%define nntp_flags --enable-nntp=no
cvsdist c8eb5d
%endif
cvsdist c8eb5d
cvsdist c8eb5d
%if %{static_nss}
cvsdist c8eb5d
%define nss_flags  --with-nss-libs=%{buildtopdir}/%{nssdir}/lib --with-nss-includes=%{buildtopdir}/%{nssdir}/include
cvsdist c8eb5d
%else
cvsdist c8eb5d
%define nss_flags --with-nss-libs=/usr/lib --with-nss-includes=/usr/include/moznss
cvsdist c8eb5d
%endif
cvsdist c8eb5d
cvsdist c8eb5d
%configure --with-nspr-includes=/usr/include/mozilla/nspr \
cvsdist c8eb5d
  --with-nspr-libs=/usr/lib --enable-gtk-doc=no \
cvsdist c8eb5d
  --with-db3-includes=%{buildtopdir}/%{dbdir}/build_unix \
cvsdist c8eb5d
  --with-db3-libs=%{buildtopdir}/%{dbdir}/build_unix \
cvsdist c8eb5d
  --enable-file-locking=fcntl --enable-dot-locking=no \
cvsdist c8eb5d
  --with-sub-version=" (%{version}-%{release})" \
cvsdist c8eb5d
  %ldap_flags %pilot_flags %krb5_flags %nntp_flags %nss_flags
cvsdist c8eb5d
make
cvsdist c8eb5d
cvsdist c8eb5d
%install
cvsdist c8eb5d
make DESTDIR=$RPM_BUILD_ROOT install
cvsdist c8eb5d
cvsdist c8eb5d
%find_lang %name
cvsdist c8eb5d
cvsdist c8eb5d
%post -p /sbin/ldconfig
cvsdist c8eb5d
cvsdist c8eb5d
%postun -p /sbin/ldconfig
cvsdist c8eb5d
cvsdist c8eb5d
%clean
cvsdist c8eb5d
rm -rf $RPM_BUILD_ROOT
cvsdist c8eb5d
cvsdist c8eb5d
%files -f %{name}.lang
cvsdist c8eb5d
%defattr(-, root, root)
cvsdist c8eb5d
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
cvsdist c8eb5d
%{_datadir}/gnome/apps/Applications/evolution.desktop
cvsdist c8eb5d
%{_datadir}/gnome/help/evolution
cvsdist c8eb5d
%{_datadir}/gnome/ui/*
cvsdist c8eb5d
%{_datadir}/gnome/html/*
cvsdist c8eb5d
%{_datadir}/libical-evolution
cvsdist c8eb5d
%{_datadir}/mime-info/*
cvsdist c8eb5d
%{_datadir}/evolution
cvsdist c8eb5d
%{_datadir}/idl/*.idl
cvsdist c8eb5d
%{_datadir}/oaf/*.oaf
cvsdist c8eb5d
%{_datadir}/omf/evolution
cvsdist c8eb5d
%{_datadir}/pixmaps/*
cvsdist c8eb5d
%{_datadir}/images
cvsdist c8eb5d
%{_libdir}/*.so*
cvsdist c8eb5d
%{_libdir}/evolution
cvsdist c8eb5d
%{_bindir}/*
cvsdist c8eb5d
%{_sbindir}/*
cvsdist c8eb5d
%{_mandir}/man*/*
cvsdist c8eb5d
cvsdist c8eb5d
%if %{pilot_support}
cvsdist c8eb5d
%{_libdir}/gnome-pilot/conduits/*.so
cvsdist c8eb5d
%{_datadir}/gnome-pilot/conduits/*
cvsdist c8eb5d
%endif
cvsdist c8eb5d
cvsdist c8eb5d
%files devel
cvsdist c8eb5d
%defattr(-,root,root)
cvsdist c8eb5d
%{_includedir}/camel
cvsdist c8eb5d
%{_includedir}/ename
cvsdist c8eb5d
%{_includedir}/evolution
cvsdist c8eb5d
%{_libdir}/*.a
cvsdist c8eb5d
%{_libdir}/*.so
cvsdist c8eb5d
cvsdist c8eb5d
%if %{pilot_support}
cvsdist c8eb5d
%{_libdir}/gnome-pilot/conduits/*.a
cvsdist c8eb5d
%endif
cvsdist c8eb5d
cvsdist c8eb5d
cvsdist c8eb5d
%changelog
cvsdist c8eb5d
* Thu Jan 31 2002 Jeremy Katz <katzj@redhat.com> 1.0.2-0.7x
cvsdist c8eb5d
- update to 1.0.2
cvsdist c8eb5d
- build for gnomehide without gnome-pilot support
cvsdist c8eb5d
cvsdist c8eb5d
* Mon Jan 28 2002 Jeremy Katz <katzj@redhat.com> 1.0.1-4
cvsdist c8eb5d
- build on ia64 now that mozilla exists for ia64
cvsdist c8eb5d
cvsdist c8eb5d
* Sun Jan 27 2002 Jeremy Katz <katzj@redhat.com> 1.0.1-3
cvsdist c8eb5d
- rebuild in new environment
cvsdist c8eb5d
- add pilot support
cvsdist c8eb5d
cvsdist c8eb5d
* Sun Jan 13 2002 Jeremy Katz <katzj@redhat.com> 1.0.1-2
cvsdist c8eb5d
- rebuild without mozilla-psm in the buildroot so libnss is linked 
cvsdist c8eb5d
  statically as intended
cvsdist c8eb5d
cvsdist c8eb5d
* Sat Jan 12 2002 Jeremy Katz <katzj@redhat.com> 1.0.1-1
cvsdist c8eb5d
- update to 1.0.1
cvsdist c8eb5d
- patch for autoconf 2.52 accepted upstream
cvsdist c8eb5d
- include man page
cvsdist c8eb5d
- use --with-sub-version=" (%%{version}-%%{release})"
cvsdist c8eb5d
cvsdist c8eb5d
* Tue Dec 18 2001 Jeremy Katz <katzj@redhat.com> 1.0-2
cvsdist c8eb5d
- really disable news
cvsdist c8eb5d
- add patch from Jens Petersen <juhp@redhat.com> to hopefully get 
cvsdist c8eb5d
  builds working with autoconf 2.52
cvsdist c8eb5d
- conditionalize static libnss stuff so that it can go away when we
cvsdist c8eb5d
  have a mozilla with shared libnss
cvsdist c8eb5d
cvsdist c8eb5d
* Thu Dec  6 2001 Jeremy Katz <katzj@redhat.com> 1.0-1.7.2
cvsdist c8eb5d
- add patches off of branch for:
cvsdist c8eb5d
  * do not show up as Preview Release in version string
cvsdist c8eb5d
  * have next/previous work with multiple selected messages
cvsdist c8eb5d
- build without pilot support
cvsdist c8eb5d
cvsdist c8eb5d
* Mon Dec  3 2001 Jeremy Katz <katzj@redhat.com> 1.0-1
cvsdist c8eb5d
- and bump to 1.0
cvsdist c8eb5d
cvsdist c8eb5d
* Sun Dec  2 2001 Jeremy Katz <katzj@redhat.com>
cvsdist c8eb5d
- let's build with an included copy of libnss now since OpenSSL is support
cvsdist c8eb5d
  is disabled on the 1.0 branch
cvsdist c8eb5d
- build with --enable-dot-locking=no
cvsdist c8eb5d
- excludearch ia64 again now that we need libnspr
cvsdist c8eb5d
cvsdist c8eb5d
* Mon Nov 26 2001 Jeremy Katz <katzj@redhat.com>
cvsdist c8eb5d
- build with gnome-pilot and krb5 support
cvsdist c8eb5d
- conditionalize ldap, pilot and krb5 support
cvsdist c8eb5d
- clean up buildrequires some
cvsdist c8eb5d
cvsdist c8eb5d
* Sat Nov 17 2001 Jeremy Katz <katzj@redhat.com>
cvsdist c8eb5d
- we can build on ia64 since we're using openssl instead of nspr
cvsdist c8eb5d
- disable non-functional nntp support 
cvsdist c8eb5d
- 0.99.2 (rc2) 
cvsdist c8eb5d
cvsdist c8eb5d
* Fri Nov  9 2001 Jeremy Katz <katzj@redhat.com>
cvsdist c8eb5d
- add explicit requires on current bonobo, oaf, and GConf to help people
cvsdist c8eb5d
  help themselves
cvsdist c8eb5d
- s/Copyright/License/
cvsdist c8eb5d
cvsdist c8eb5d
* Thu Nov  8 2001 Jeremy Katz <katzj@redhat.com>
cvsdist c8eb5d
- add a patch to revert changes to camel-tcp-stream-openssl; appears to 
cvsdist c8eb5d
  fix the SSL hangs
cvsdist c8eb5d
cvsdist c8eb5d
* Wed Nov  7 2001 Jeremy Katz <katzj@redhat.com>
cvsdist c8eb5d
- fix filelist to include libical zoneinfo
cvsdist c8eb5d
- add devel subpackage with includes and static libs
cvsdist c8eb5d
cvsdist c8eb5d
* Mon Nov  5 2001 Jeremy Katz <katzj@redhat.com>
cvsdist c8eb5d
- updated to 0.99.0 aka 1.0 RC1
cvsdist c8eb5d
cvsdist c8eb5d
* Tue Oct 23 2001 Havoc Pennington <hp@redhat.com>
cvsdist c8eb5d
- 0.16 snagged from Ximian GNOME
cvsdist c8eb5d
cvsdist c8eb5d
* Fri Oct  5 2001 Havoc Pennington <hp@redhat.com>
cvsdist c8eb5d
- initial build based on David Sainty's specfile
cvsdist c8eb5d
cvsdist c8eb5d
* Thu Oct 04 2001 David Sainty <dsainty@redhat.com>
cvsdist c8eb5d
- Updated to 0.15.99, 20011004 from cvs.
cvsdist c8eb5d
cvsdist c8eb5d
* Wed Sep 05 2001 David Sainty <dsainty@redhat.com>
cvsdist c8eb5d
- Updated to 0.13.99, 20010905 from cvs.
cvsdist c8eb5d
cvsdist c8eb5d
* Mon Sep 03 2001 David Sainty <dsainty@redhat.com>
cvsdist c8eb5d
- Updated to 0.13.99, 20010903 from cvs.
cvsdist c8eb5d
- Fixed Requires + BuildRequires
cvsdist c8eb5d
cvsdist c8eb5d
* Mon Aug 06 2001 David Sainty <dsainty@redhat.com>
cvsdist c8eb5d
- Updated to 0.12.99, 20010806 from cvs.
cvsdist c8eb5d
cvsdist c8eb5d
* Mon Aug 06 2001 David Sainty <dsainty@redhat.com>
cvsdist c8eb5d
- Relocated libical* from /usr/lib due to kdepim, -2
cvsdist c8eb5d
cvsdist c8eb5d
* Mon Aug 06 2001 David Sainty <dsainty@redhat.com>
cvsdist c8eb5d
- First spec file for evolution.
cvsdist c8eb5d