evolution.spec
author dermotm
Mon, 11 Apr 2005 08:50:58 +0000
changeset 5333 817fa62bc95d
parent 5331 e460fe70e4dc
child 5368 7fd27956304d
permissions -rw-r--r--
Incremented release numbers for build 33

#
# License (c) 2003 Sun Microsystems Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

%define t_suffix -build33-linux-cb
%define _unpackaged_files_terminate_build 0
%{?nightly:%define t_suffix -%(TZ=GMT date +%Y%m%d)}

Name:     	evolution
Version: 	1.4.6
Release:	377
Vendor:		Sun Microsystems, Inc.
Distribution:	Java Desktop System, Release 3
Copyright:	GPL
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
Docdir:         %{_datadir}/doc
Autoreqprov:    on
URL:		http://www.sun.com/software/javadesktopsystem/
Source:		%{name}-%{version}%{t_suffix}.tar.bz2
Source1:	mkinstalldirs
# Docs tarball.
Source2:	evolution-docs-0.7linux.tar.bz2
Source3:	evolution-docs-0.6.tar.bz2
Source4:	evolution-l10n-po-1.14.tar.bz2
Source5:	evolution-l10n-online-help-ci-linux-1.1.tar.bz2
Source6:	l10n-configure.sh
Patch:		evolution-01-forte-build.diff
Patch1:		evolution-docs.diff
Patch2:         evolution-02-g11n-potfiles.diff
Patch3:         evolution-03-libeconduit.diff
Patch4:         evolution-04-g11n-i18n-shortcuts-fix.diff
Patch5:			evolution-05-l10n-online-help.diff
Patch6:         evolution-06-g11n-potfiles.diff
Patch7:		evolution-docs-sol.diff
#Patch0:         evolution_patch0.diff
#Patch1:         evolution_patch1.diff
#Patch2:         evolution_patch2.diff
#Patch3:         evolution_patch3.diff
#Patch4:         evolution_patch4.diff

%define gtkhtml_devel_version 3.0.9
%define gtkhtml_version 3.0.9
%define libgal_version 1.99.8
%define libgal_devel_version 1.99.8
%define libbonoboui_devel_version 2.0.1
%define bonobo_activation_devel_version 1.0.3
%define bonobo_activation_version 1.0.3
%define gnome_vfs_devel_version 2.0.2
%define libglade_devel_version 2.0.0
%define GConf_devel_version 1.2.1
%define ORBit2_devel_version 2.4.1
%define libgnomeprintui_devel_version 2.2.1.1
%define libxml2_devel_version 2.4.23
%define intltool_version 0.20
%define gtk2_devel_version 2.0.6
%define mozilla_version 1.7
%define mozilla_nspr_version 4.5.0.17
%define mozilla_nspr_devel_version %mozilla_nspr_version
%define mozilla_nss_version 3.9.1
%define mozilla_nss_devel_version %mozilla_nss_version
%define gnome_pilot_devel_version 2.0.10
Summary:	GNOME's next-generation groupware suite
Group:		Applications/Productivity
Requires:	gtkhtml >= %{gtkhtml_version}
Requires:	libgal >= %{libgal_version}
Requires:	bonobo-activation >= %{bonobo_activation_version}
Requires:	mozilla-nspr
Requires:       mozilla-nss
BuildRequires:  gnome-pilot-devel
Prereq:	GConf

%description
Evolution is the GNOME mailer, calendar, contact manager and
communications tool.  The tools which make up Evolution will
be tightly integrated with one another and act as a seamless
personal information-management tool.

%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
%{_datadir}/applications/*
%{_datadir}/mime-info/*
%{_datadir}/idl/*
%{_datadir}/evolution/1.4
%{_datadir}/pixmaps/*
%{_prefix}/*/locale/*/LC_MESSAGES/*.mo
%{_mandir}/man1/*
%{_libdir}/evolution/1.4/*.so.*
%{_libdir}/bonobo/servers/*.server
%{_libdir}/evolution/1.4/evolution-calendar-importers/*.so
%{_libdir}/evolution/1.4/evolution-mail-importers/*.so
%{_libdir}/evolution/1.4/components/*.so
%{_libexecdir}/evolution/1.4/evolution-wombat
%{_libexecdir}/evolution/1.4/evolution-addressbook-import
%{_libexecdir}/evolution/1.4/killev
%{_libexecdir}/evolution/1.4/csv2vcard
%{_libexecdir}/evolution/1.4/evolution-addressbook-clean
%{_libexecdir}/evolution/1.4/evolution-alarm-notify
%{_libexecdir}/evolution/1.4/load-*-addressbook
%{_libexecdir}/evolution/1.4/*importer
%{_bindir}/evolution
%{_bindir}/evolution-1.4
%{_bindir}/evolution-addressbook-export
%{_sysconfdir}/gconf/schemas/*.schemas
%{_datadir}/omf/*
%{_datadir}/gnome/help/*
%{_datadir}/gnome/javahelp/*
%dir %{_datadir}/pixmaps
%dir %{_datadir}/evolution
%dir %{_libdir}/evolution
%dir %{_libdir}/evolution/1.4
%dir %{_libdir}/evolution/1.4/components
%dir %{_libdir}/evolution/1.4/evolution-calendar-importers
%dir %{_libdir}/evolution/1.4/evolution-mail-importers
%dir %{_libexecdir}/evolution
%dir %{_libexecdir}/evolution/1.4
%{_libdir}/evolution/1.4/camel-providers/*.so
%{_libdir}/evolution/1.4/camel-providers/*.urls
%{_libexecdir}/evolution/1.4/camel/camel-index-control
%dir %{_libdir}/evolution/1.4/camel-providers
%dir %{_libexecdir}/evolution/1.4/camel
%attr (2755, root, mail) %{_libexecdir}/evolution/1.4/camel/camel-lock-helper


%post
ldconfig
GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` /usr/bin/gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/apps_evolution_addressbook.schemas %{_sysconfdir}/gconf/schemas/apps_evolution_shell.schemas %{_sysconfdir}/gconf/schemas/apps_evolution_summary.schemas %{_sysconfdir}/gconf/schemas/evolution-mail.schemas %{_sysconfdir}/gconf/schemas/apps_evolution_calendar.schemas

%package -n evolution-pilot
Summary:	Evolution conduits for gnome-pilot
Group:		Communications
Requires:	evolution = %{?epoch:%{epoch}:}%{version}-%{release}
Obsoletes:	evolution-pilot < 1.3

%description -n evolution-pilot
Evolution is the GNOME mailer, calendar, contact manager and
communications tool.  The tools which make up Evolution will
be tightly integrated with one another and act as a seamless
personal information-management tool.

This package contains conduits needed by gnome-pilot to
synchronize your Palm with Evolution.

%files -n evolution-pilot
%defattr(-, root, root)
%{_datadir}/*/conduits/*
%{_libdir}/*/conduits/*.so


%package -n evolution-devel
Summary:	Libraries and include files for developing Evolution components
Group:		Development/GNOME and GTK+
Requires:	evolution = %{?epoch:%{epoch}:}%{version}-%{release}

%description -n evolution-devel
Evolution is the GNOME mailer, calendar, contact manager and
communications tool.  The tools which make up Evolution will
be tightly integrated with one another and act as a seamless
personal information-management tool.

This package contains the files necessary to develop applications
using Evolution's libraries.

%files -n evolution-devel
%defattr(-, root, root)
%{_includedir}/evolution-1.4/*.h
%{_includedir}/evolution-1.4/cal-client
%{_includedir}/evolution-1.4/cal-util
%{_includedir}/evolution-1.4/e-conduit
%{_includedir}/evolution-1.4/e-db3util
%{_includedir}/evolution-1.4/e-util
%{_includedir}/evolution-1.4/ebook
%{_includedir}/evolution-1.4/ename
%{_includedir}/evolution-1.4/importer
%{_includedir}/evolution-1.4/pas
%{_includedir}/evolution-1.4/pcs
%{_includedir}/evolution-1.4/shell
%{_includedir}/evolution-1.4/widgets
%{_includedir}/evolution-1.4/wombat
%{_libdir}/evolution/1.4/*.so
%{_libdir}/pkgconfig/*.pc
%dir %{_includedir}/evolution-1.4
%{_includedir}/evolution-1.4/camel

# $RPM_COMMAND is an environment variable used by the Sun build
# system to control the build process with finer granularity than RPM
# normally allows.  This specfile will function as expected by RPM if
# $RPM_COMMAND is unset.  If you are not the SUN build system,
# feel free to ignore it.

%prep
case "${RPM_COMMAND:-all}" in
dist)
%setup  -q -D -n %{name}-%{version}
    ;;
all)
%setup  -q -n %{name}-%{version}
    ;;
esac
#case "${RPM_COMMAND:-all}" in
#dist|all)
cp %SOURCE1 .
%ifos solaris
bzcat %SOURCE3 | tar xvf -
%else
bzcat %SOURCE2 | tar xvf -
%endif
bzcat %SOURCE5 | tar xvf -
bzcat %SOURCE4 | tar xvf -
%patch -p1
%ifos solaris
%patch7 -p1
%else
%patch1 -p1
%endif
%patch2 -p1
%ifos solaris
%patch3 -p1
%endif
%patch4 -p1
#%patch -p1 -P 0
#%patch -p1 -P 1
#%patch -p1 -P 2
#%patch -p1 -P 3
#%patch -p1 -P 4
#    ;;
#esac
%patch5 -p1
%patch6 -p1

bash -x %SOURCE6

%build
%ifos linux
if [ -x /usr/bin/getconf ]; then
  CPUS=`getconf _NPROCESSORS_ONLN`
fi
%else
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
  CPUS=1
fi

%ifos linux
export LDFLAGS="$LDFLAGS -R%{_libdir}/mozilla" 
%endif
MAKE=${MAKE:-make}
RPM_COMMAND=${RPM_COMMAND:-all}
DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"}
ARCH=%{_target_platform}

%{?db3_prefix:#}%define db3_prefix %{_prefix}
%{?moz_prefix:#}%define moz_prefix %{_prefix}

%ifos linux
%define ipv6_option --enable-ipv6=no
%else
%define ipv6_option --enable-ipv6=yes
%endif
%ifos linux
%define pilot_option --enable-pilot-conduits=yes
%else
%define pilot_option --enable-pilot-conduits=no
%endif


export MAKE RPM_COMMAND DESTDIR ARCH
case "$RPM_COMMAND" in
prepare|all)
export CFLAGS="$CFLAGS -I%{_includedir}/heimdal -I%{_includedir}/et"
# Add the CVS Tag in version information
(test -f CVS/Tag ) && {
    BUILD_NUMBER=`head -1 CVS/Tag | awk -F_ '{print $NF}'`
    sed "s/AC_INIT(evolution, *[1-9\.]* */&.3$BUILD_NUMBER/" configure.in > /tmp/configure.in.tmp
    cat /tmp/configure.in.tmp > configure.in
    rm -f /tmp/configure.in.tmp
}

cd libical 
    aclocal $ACLOCAL_FLAGS -I %{_datadir}/aclocal/gnome2-macros
    libtoolize --force
    glib-gettextize --force --copy
    intltoolize --force --automake
    autoheader
    automake -a -f -c --gnu
    autoconf
    ./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --mandir=%{_mandir} --infodir=%{_datadir}/info --localstatedir=/var \
	    --libexecdir=%{_libexecdir} \
	    --with-openssl-libs=no --with-openssl-includes=no \
            --with-db3-includes=%{db3_prefix}/include/evolution-private \
            --with-db3-libs=%{db3_prefix}/lib/evolution-private \
	    --with-nspr-includes=%{moz_prefix}/include/mozilla/nspr \
	    --with-nspr-libs=%{moz_prefix}/lib/mozilla \
	    --with-nss-includes=%{moz_prefix}/include/mozilla/nss \
	    --with-nss-libs=%{moz_prefix}/lib/mozilla \
            --enable-nss=yes \
	    --with-ldap=/usr \
	    %ipv6_option \
            %pilot_option \
	    --with-pisock=%{_prefix} \
	    --with-krb4=%{_libdir} --with-krb5=%{_libdir} \
	    --with-kde-applnk-path=DISABLE 
cd ../ 
aclocal $ACLOCAL_FLAGS -I %{_datadir}/aclocal/gnome2-macros
libtoolize --force
glib-gettextize --force --copy
intltoolize --force --automake
autoheader
automake -a -f -c --gnu
autoconf
./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --mandir=%{_mandir} --infodir=%{_datadir}/info --localstatedir=/var \
	    --libexecdir=%{_libexecdir} \
            --with-openssl-libs=no --with-openssl-includes=no \
            --with-db3-includes=%{db3_prefix}/include/evolution-private \
            --with-db3-libs=%{db3_prefix}/lib/evolution-private \
	    --with-nspr-includes=%{moz_prefix}/include/mozilla/nspr \
	    --with-nspr-libs=%{moz_prefix}/lib/mozilla \
	    --with-nss-includes=%{moz_prefix}/include/mozilla/nss \
	    --with-nss-libs=%{moz_prefix}/lib/mozilla \
            --enable-nss=yes \
	    %ipv6_option \
	    --with-ldap=/usr \
            %pilot_option \
            --with-pisock=%{_prefix} \
            --with-krb4=%{_libdir} --with-krb5=%{_libdir} \
            --with-kde-applnk-path=DISABLE \
            --enable-idn=yes

    ;;
esac
case "$RPM_COMMAND" in
clean|all)
    if [ "/" != "$DESTDIR" ]; then
	rm -rf "$DESTDIR"
    fi
    ;;
esac
case "$RPM_COMMAND" in
build|all)
    ${MAKE} -j $CPUS
    ;;
esac

%install
MAKE=${MAKE:-make}
DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"}
# export DESTDIR$
case "${RPM_COMMAND:-all}" in
install|all)
    ${MAKE} install DESTDIR=${DESTDIR} install; rm -f ${DESTDIR}%{_libdir}/*.la
    ;;
esac

javahelp-convert-install $RPM_BUILD_ROOT %{name}-1.4 %{name}-1.4.xml

%clean
DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"}
export DESTDIR
case "${RPM_COMMAND:-all}" in
clean|all)
    if [ "/" != "$DESTDIR" ]; then
	rm -rf "$DESTDIR"
    fi
    ;;
esac


%changelog
* Mon Apr 11 2005 - [email protected]
- Bump source tarball to build 33 (linux)

* Mon Mar 28 2005 - [email protected]
- Bump source tarball to build 32 (linux)

* Mon Mar 14 2005 - [email protected]
- Bump source tarball to build 31 (linux)

* Mon Feb 28 2005 - [email protected]
- Bump source tarball to build 30 (linux)

* Mon Feb 14 2005 - [email protected]
- Bump source tarball to build 29 (linux)

* Mon Jan 31 2005 - [email protected]
- Bump source tarball to build 28 (linux)

* Mon Jan 17 2005 - [email protected]
- Bump source tarball to build 27 (linux)

* Tue Jan 04 2005 - [email protected]
- Bump source tarball to build 26 (linux)

* Thu Dec 16 2004 - [email protected]
- Update l10n help tarball to use linux version 

* Mon Dec 13 2004 - [email protected]
- Bump source tarball to build 25 (linux)

* Wed Dec  1 2004 - [email protected]
- Integrate Linux only docs tarball from [email protected]. Add docs-sol
  patch to accomodate the differences between Linux and Solaris tarballs.

* Mon Nov 29 2004 - [email protected]
- Bump source tarball to build 24

* Fri Nov 26 2004 - [email protected]
- Fixed typo in changelog

* Thu Nov 25 2004 - [email protected]
- Re-enabled IDN support

* Mon Nov 15 2004 - [email protected]
- Bump source tarball to build 23.

* Thu Nov 13 2004 - [email protected]
- Add the CVS Tag in version information

* Thu Nov 04 2004 - [email protected]
- Added evolution-06-g11n-potfiles.diff to update POTFILES.in

* Mon Nov 01 2004 - [email protected]
- bump src tarball to build22

* Fri Oct 29 2004 - [email protected]
- add gnome-pilot build dependency

* Thu Oct 28 2004 - [email protected]
- Updated l10n help tarball and added pt_BR

* Mon Oct 18 2004 - [email protected]
- bump src tarball to build21

* Fri Oct 15 2004 - [email protected]
- Updated l10n help tarball. evolution-l10n-online-help-ci.tar.bz2

* Mon Oct 11 2004 - [email protected]
- bump src tarball to build20b

* Tue Oct 05 2004 - [email protected]
- Added evolution-04-g11n-i18n-shortcuts-fix.diff to fix b#5051039

* Mon Oct 04 2004 - [email protected]
- removed IDN support

* Mon Oct 04 2004 - [email protected]
- replaced idnkit dependency with bind-utils

* Fri Oct  1 2004 - [email protected]
- Disable gnome-pilot-link conduits on Solaris. Add patch to support this.

* Mon Sep 27 2004 - [email protected]
- Updated docs tarball submitted by [email protected].

* Mon Sep 20 2004 - [email protected]
- bump src tarball to build19

* Tue Sep 15 2004 - [email protected]
- Add _unpackaged_files_terminate_build to 
  disable rpm v4.1.1 "Checking for unpackaged file" feature
- Update CFLAGS for "com_err.h"

* Tue Sep 14 2004 - [email protected]
- Updated POTFILES.in 

* Sat Sep 11 2004 - [email protected]
- add idnkit dependency

* Mon Sep 06 2004 - [email protected]
- bump src tarball to build18

* Mon Aug 30 2004 - [email protected]
- Updated docs tarball submitted by [email protected].
- Update evolution-docs.diff to remove pdas.xml.

* Wed Aug 25 2004 - [email protected]
- Added l10n help contents

* Tue Aug 24 2004 - [email protected]
- Updated docs tarball submitted by [email protected].
- Update evolution-docs.diff to include 3 new xml files.

* Mon Aug 23 2004 - [email protected]
- bump src tarball to build17

* Mon Aug 16 2004 - [email protected]
- Remove patch to fix compilation error in event-page.c - file fixed in cvs.

* Mon Aug 16 2004 - [email protected]
- Bug 5086653 - Remove javahelp-convert lines are there were not needed.

* Sat Aug 14 2004 - [email protected]
- Add patch to fix compilation error in event-page.c.

* Wed Aug 11 2004 - [email protected]
- Updated docs tarball submitted by [email protected].

* Mon Aug 09 2004 - [email protected]
- bump src tarball to build16

* Fri Jul 30 2004 - [email protected]
- <Metropolis_15/Cinnabar_15> Stopper Bug #5077577, enable ipv6 support in configuration option
* Mon Jul 26 2004 - [email protected]
- bump src tarball to build15

* Thu Jul 08 2004 - [email protected]
- Added l10n po tarball extraction version 1.2

* Wed Jul 07 2004 - [email protected]
- Updated docs tarball submitted by [email protected].

* Wed Jul 07 2004 - [email protected]
- added "-j $CPUS" to make to speed up builds

* Sun Jul 03 2004 - [email protected]
- Correction: from %{moz_prefix}/lib/mozilla to %{_libdir}/mozilla
* Fri Jul 02 2004 - [email protected]
- Added "LDFLAGS -R..." for Linux build as evolution couldn't find nspr library automatic
* Mon Jun 28 2004 - [email protected]
- Changed install location to /usr/... so need to use moz-prefix for nss/nspr
  since install location of mozilla is different for Linux and Solaris
* Fri Jun 25 2004 - [email protected]
- bump src tarball to build13
* Tue Jun 15 2004 - [email protected]
- Add docs tarball from [email protected]
- Add patch to modify Makefile.am accordingly.
* Thu Jun 10 2004 - [email protected]
- bump src tarball to build12
* Mon May 31 2004 - [email protected]
- Add javahelp files to %files
* Sun May 30 2004 - [email protected]
- bump src tarball to build11
* Thu May 27 2004 - [email protected]
- changed the mozilla includedir from %{_includedir}/mozilla-${mozilla_version} to %{_includedir}/mozilla
* Fri May 14 2004 - [email protected]
- bump src tarball to build10
* Thu May 06 2004 - [email protected]
- fix both appearances of the ldap configure option
* Sat May 01 2004 - [email protected]
- add javahelp conversion
* Fri Apr 30 2004 - [email protected]
- bump src tarball to build09
* Fri Apr 23 2004 - [email protected]
- update ldap configure option
* Thu Apr 22 2004 - Dave Lin <[email protected]>
- changed the version of nspr from 3.9.0 to 3.9.1
* Tue Apr 20 2004 - [email protected]
- update mozilla directories
- add --libexecdir=%{_libexecdir} to configure args
* Fri Apr 16 2004 - [email protected]
- remove static libs
- use a different openldap configure option on solaris
- enable IPv6 support on Solaris
- update tarball for build08
* Wed Apr 07 2004 - [email protected]
- export CFLAGS