Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37725758
en ru br
ALT Linux repositórios
S:3.50.0-alt1
5.0: 2.26.1.1-alt1
4.1: 2.22.3-alt0.M41.1
4.0: 2.8.3-alt3
3.0: 2.2.3-alt1.1

Group :: Escritórios
RPM: evolution

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

# This spec is backported to ALTLinux 4.1 automatically by rpmbph script. Do not edit it.
#
%define ver_major 2.22
%define ver_base 2.22
%def_disable static
%def_with openldap
%def_disable static_ldap
%def_with krb5
%def_enable nntp
%def_enable exchange
%def_disable pilot
# %define plugins experimental
%define plugins all


# Use stricter build settings than required by upstream.

%define strict_build_settings 1

%define evo_plugin_dir %_libdir/evolution/%ver_major/plugins

Name: evolution
Version: %ver_major.3
Release: alt0.M41.1

Summary: Integrated GNOME mail client, calendar and address book
License: GPLv2+
Group: Office
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>
Url: http://www.gnome.org/projects/%name/
Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2

Patch0: %name-2.8.0-gnome-spell-gconf-path.patch
Patch1: evolution-2.12-alt-krb5-libs.patch

### Patches ###


# bad hack

Patch10: evolution-1.4.4-ldap-x86_64-hack.patch

# Move autosave file

Patch12: evolution-2.5.4-move-autosave-file.patch

# Fix for RH bug 164957 (was for 145552):

Patch13: evolution-2.0.2-fix-145552.patch

# Part of RH bug 170799:

Patch14: evolution-2.4.1-hide-switcher-buttons-by-default.patch

# Patches for conduits, based upon

# rh-161817-attach-116019-conduit_pilot_link_updates.diff
# (the latter patch was originally by Mark G. Adams):
# Patch15: evolution-2.5.4-fix-conduits.patch

# Move .conduit files from share to lib (for the sake of multilib)

# This patch effects other parts of evolution.spec and so is necessary
# for a successful build.
Patch16: evolution-2.5.4-fix-conduit-dir.patch

# RH bug #176400

Patch27: evolution-2.9.1-im-context-reset.patch

# RH bug #215478 / GNOME bug #383842

Patch30: evolution-2.9.3-source-path-entry.patch

Patch40: evolution-2.22.3-alt-fix-help.patch

Provides: camel

# from configure.in

%define libgnome_ver 2.20.0
%define glib_ver 2.15.3
%define gtk_ver 2.12.0
%define eds_ver 2.21.92
%define gnome_icon_ver 2.19.91
%define gnome_vfs_ver 2.4.0
%define libbonobo_ver 2.20.3
%define libbonoboui_ver 2.4.2
%define libgtkhtml_ver 3.17.5
%define orbit_ver 2.9.8
%define libsoup_ver 2.3.0
%define dbus_ver 1.0.0
%define hal_ver 0.5.4
%define libnotify_ver 0.3.0
%define gnome_pilot_ver 2.0.15


BuildPreReq: gnome-common
BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: gnome-icon-theme >= %gnome_icon_ver
BuildPreReq: evolution-data-server-devel >= %eds_ver
BuildPreReq: ORBit2-devel >= %orbit_ver
BuildPreReq: gnome-vfs-devel >= %gnome_vfs_ver
BuildPreReq: libbonobo-devel >= %libbonobo_ver
BuildPreReq: libbonoboui-devel >= %libbonoboui_ver
BuildPreReq: libgtkhtml3-devel >= %libgtkhtml_ver
BuildPreReq: libGConf-devel
BuildPreReq: libglade-devel
BuildPreReq: libgnomecanvas-devel
BuildPreReq: libgnomeui-devel
BuildPreReq: libxml2-devel
BuildPreReq: libsoup-devel >= %libsoup_ver
BuildPreReq: libdbus-devel >= %dbus_ver
BuildPreReq: libdbus-glib-devel
BuildPreReq: libhal-devel >= %hal_ver
BuildPreReq: libnotify-devel >= %libnotify_ver
BuildPreReq: libatk-devel
BuildPreReq: xorg-x11-proto-devel
BuildPreReq: libX11-devel


Requires(post,postun): scrollkeeper
PreReq: GConf2


Requires: gnome-spell
Requires: libgtkhtml3 >= %libgtkhtml_ver
Requires: libsoup >= %libsoup_ver
Requires: libORBit2 >= %orbit_ver
Requires: libbonobo >= %libbonobo_ver
Requires: evolution-data-server >= %eds_ver
Requires: gnome-settings-daemon

# Some plugins/extensions link with others, resulting in multiple rpath entries

%set_verify_elf_method rpath=relaxed

BuildRequires: docbook-utils flex gcc-c++ gnome-doc-utils gstreamer-devel
BuildRequires: gtk-doc libSM-devel libcom_err-devel libhal-devel
BuildRequires: libkrb5-devel libldap-devel libnotify-devel
BuildRequires: python-modules-compiler python-modules-encodings
BuildRequires: gnome-vfs-devel glibc-devel gtk-doc libbonobo-devel libdbus-glib-devel GConf  libGConf-devel
BuildRequires: libglade-devel libgnomeui-devel libnspr-devel libnss-devel libssl-devel libX11-devel imake  

BuildRequires: gnome-doc-utils

%if_with krb5
BuildRequires: libkrb5-devel
%endif

%if_with openldap
BuildRequires: libldap-devel
%if_enabled static_ldap
BuildRequires: libldap-devel-static libssl-devel libsasl2-devel.
%endif
%endif

%if_enabled pilot
BuildRequires: libgnome-pilot-devel
%endif

BuildConflicts: evolution-devel

BuildRequires: rpm-build-compat >= 0.95

%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.

%package pilot
Summary: Evolution conduits for gnome-pilot
Group: Communications
Obsoletes: %name-pilot
Requires: %name = %version-%release

%description 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

%package bogofilter
Group: Networking/Mail
Summary: Bogofilter plugin for Evolution
Requires: %name = %version-%release
Requires: bogofilter

%description bogofilter
This package contains the plugin to filter junk mail using Bogofilter.

%package spamassassin
Group: Networking/Mail
Summary: SpamAssassin plugin for Evolution
Requires: %name = %version-%release
Requires: spamassassin

%description spamassassin
This package contains the plugin to filter junk mail using SpamAssassin.


%package devel
Summary: Evolution development files
Group: Development/C
Requires: %name = %version-%release
Requires: evolution-data-server-devel >= %eds_ver

%description 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 files needed to develop Evolution plugins.

%add_findprov_lib_path %_libdir/%name/%ver_base
%add_findprov_lib_path %_libdir/%name/%ver_base/components

%prep
%setup -q
# %patch0 -p1
# patch0
%__subst "s|/GNOME/Spell|/desktop/gnome/spell|g" mail/mail-config.c mail/em-composer-prefs.c

%patch1 -p1
%patch10 -p1 -b .ldaphack
%patch13 -p1 -b .fix-164957
%patch14 -p1 -b .hide-switcher-buttons-by-default

#patch15 -p1 -b .fix-conduits  # leave commented

%patch16 -p1 -b .fix-conduit-dir

%patch27 -p1 -b .im-context-reset
%patch30 -p1 -b .source-path-entry

%patch40 -p1

%__subst '/use diagnostics/d' addressbook/tools/csv2vcard.in
#__subst 's,(Unstable),,' data/evolution.desktop*

# Remove the welcome email from Novell

for inbox in mail/default/*/Inbox; do
 echo -n "" > $inbox
done

%build

%define _libexecdir %_libdir

%if_with openldap
%if_enabled static_ldap
%define ldap_flags --with-openldap=yes --with-static-ldap
# Set LIBS so that configure will be able to link with static LDAP libraries,
# which depend on Cyrus SASL and OpenSSL.  XXX Is the "else" clause necessary?
if pkg-config openssl ; then
   export LIBS="-lsasl2 `pkg-config --libs openssl`"
else
export LIBS="-lsasl2 -lssl -lcrypto"
fi
%else
%define ldap_flags --with-openldap=yes
%endif
%else
%define ldap_flags --without-openldap
%endif
export CPPFLAGS="-I%{_includedir}/et"
export CFLAGS="$RPM_OPT_FLAGS -DLDAP_DEPRECATED -fPIC -I%{_includedir}/et -Wno-sign-compare"

# Add stricter build settings here as the source code gets cleaned up.

# We want to make sure things like compiler warnings and avoiding deprecated
# functions in the GNOME/GTK+ libraries stay fixed.
#
# Please file a bug report at bugzilla.gnome.org if these settings break
# compilation, and encourage the upstream developers to use them.

%if %{strict_build_settings}
CFLAGS="$CFLAGS \
-DG_DISABLE_DEPRECATED=1 \
-DPANGO_DISABLE_DEPRECATED=1 \
-DGDK_PIXBUF_DISABLE_DEPRECATED=1 \
-DGDK_DISABLE_DEPRECATED=1 \
-DEDS_DISABLE_DEPRECATED=1 \
-Wdeclaration-after-statement \
-Werror-implicit-function-declaration"
# TODO: Make -DCAMEL_DISABLE_DEPRECATED work.
%endif

# Required after Patch1

intltoolize --copy --force
%autoreconf

export ac_cv_path_SENDMAIL=%_sbindir/sendmail
export KILL_PROCESS_CMD=%_bindir/killall

# Temporary work-around for a bad gnome-doc-utils.make.

# See GNOME bug #427939.  Should be fixed in evolution-2.10.2.
# sed -i -e 's/ at ENABLE_SK_TRUE at _s/_s/' help/Makefile.in

%configure \
   %{subst_enable static} \
   %ldap_flags \
   --enable-gtk-doc \
   --with-sub-version=" (%version-%release)" \
   --with-kde-applnk-path=no \
   --enable-ipv6 \
   %{subst_enable nntp} \
   %{subst_enable exchange} \
   --enable-plugins=%plugins \
%if_enabled pilot
   --enable-pilot-conduits=yes \
%else
   --enable-pilot-conduits=no \
%endif
   --enable-nss \
   --enable-smime \
   --with-nspr-includes=%_includedir/nspr \
   --with-nss-includes=%_includedir/nss \
%if_with krb5
   --with-krb5=%_prefix \
   --with-krb5-libs=%_libdir \
   --with-krb5-includes=%_includedir/krb5 \
%endif
   --disable-schemas-install

#    --disable-default-binary


%make_build  CFLAGS="$CFLAGS -UGNOME_DISABLE_DEPRECATED -fno-strict-aliasing"

%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%make DESTDIR=%buildroot install
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL

# evolution command name

%__mv %buildroot%_bindir/evolution %buildroot%_bindir/evolution-%ver_major
%__ln_s evolution-%ver_major %buildroot%_bindir/evolution

# remove non-packaged files

%__rm -f %buildroot%_libdir/%name/%ver_base/*.la
%__rm -f %buildroot%_libdir/%name/%ver_base/*/*.la
%__rm -f %buildroot%_libdir/%name/%ver_base/gnome-pilot/conduits/*.la

# temporarily fix for other applications that requires thease libraries

for f in %buildroot%_libdir/%name/%ver_base/{libeshell*,libeutil*}; do
%__ln_s %name/%ver_base/`basename $f` %buildroot%_libdir/`basename $f`
done

# remove scrollkeeper files

rm -rf %buildroot%_localstatedir/scrollkeeper

%__mkdir_p %buildroot%_datadir/mime-info
%__install -p -m644 data/%name.keys %buildroot%_datadir/mime-info/evolution-2.10.keys
%__install -p -m644 data/%name.mime %buildroot%_datadir/mime-info/evolution-2.10.mime

%find_lang --with-gnome --output=%name.lang %name %name-%ver_base

%define schemas apps-evolution-attachment-reminder apps-evolution-mail-notification apps-evolution-mail-prompts-checkdefault apps_evolution_addressbook apps_evolution_calendar apps_evolution_shell evolution-mail

%post
%post_ldconfig
%gconf2_install %schemas
%update_scrollkeeper
%update_menus

%preun
if [ $1 = 0 ]; then
%gconf2_uninstall %schemas
fi

%post bogofilter
%gconf2_install bogo-junk-plugin

%preun bogofilter
if [ $1 = 0 ]; then
%gconf2_uninstall bogo-junk-plugin
fi


%postun
%postun_ldconfig
%clean_scrollkeeper
%clean_menus

%files -f %name.lang
%doc AUTHORS ChangeLog INSTALL NEWS README
%_bindir/*
%_libdir/*.so.*
%_libdir/bonobo/servers/*
%_libdir/%name
%_datadir/applications/*
%_datadir/idl/*
%_datadir/mime-info/*
%_datadir/%name
# %_datadir/pixmaps/*
%_sysconfdir/gconf/schemas/*

# ??x?? stands for 22x22, 24x24, 32x32 etc.

%_iconsdir/hicolor/??x??/apps/%{name}*.png
%_iconsdir/hicolor/scalable/apps/%{name}*.svg
%_iconsdir/hicolor/48x48/apps/*

%exclude %evo_plugin_dir/*-junk-plugin.eplug
%exclude %evo_plugin_dir/*-junk-plugin.so
%exclude %_sysconfdir/gconf/schemas/bogo-junk-plugin.schemas

%files devel
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/*

%if_enabled pilot
%files pilot
%_libdir/gnome-pilot/conduits/*.so
%_datadir/gnome-pilot/conduits/*
%endif

%files bogofilter
%evo_plugin_dir/org-gnome-bogo-junk-plugin.eplug
%evo_plugin_dir/liborg-gnome-bogo-junk-plugin.so
%_sysconfdir/gconf/schemas/bogo-junk-plugin.schemas

%files spamassassin
%evo_plugin_dir/org-gnome-sa-junk-plugin.eplug
%evo_plugin_dir/liborg-gnome-sa-junk-plugin.so

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009