Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37736134
en ru br
Репозитории ALT
5.1: 2.26.3-alt1.1
4.1: 2.22.3-alt0.M41.1
4.0: 2.8.3-alt2
3.0: 2.2.3-alt1
www.altlinux.org/Changes

Группа :: Сети/Почта
Пакет: evolution-exchange

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and 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
%define eds_ver_base 1.2

%def_disable debug
%def_disable static
%def_with sys_db4
%def_with openldap
%def_disable static_ldap
%def_with krb5


# Use stricter build settings than required by upstream.  

%define strict_build_settings 1

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

Summary: Microsoft Exchange connector for Evolution
License: GPLv2+
Group: Networking/Mail
URL: http://www.gnome.org/projects/evolution/
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>

Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.bz2

Patch:          %name-connector-ldap-fix.patch
Patch1:         %name-warning-fix.patch

### Patches ###


Patch11: %name-2.10.1-fix-64bit-acinclude.m4.patch

# GNOME bug #443022

Patch14: %name-2.11.2-fix-library-order.patch

%define evolution_ver 2.21.90
%define eds_ver 2.21.90

%define pkgdocdir %_docdir/%name-%version

# from configure.in.

%define eds_ver 2.21.90
%define glib_ver 2.15.3
%define gtk_ver 2.12.0
%define libbonobo_ver 2.20.3
%define libsoup_ver 2.3.0
%define orbit_ver 2.9.8

BuildPreReq: gnome-common
BuildPreReq: intltool >= 0.35
BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: evolution-data-server-devel >= %eds_ver
BuildPreReq: evolution-devel >= %evolution_ver
BuildPreReq: libbonobo-devel >= %libbonobo_ver
BuildPreReq: libGConf-devel
BuildPreReq: libglade-devel
BuildPreReq: libgnomeui-devel
BuildPreReq: libxml2-devel
BuildPreReq: libsoup-devel >= %libsoup_ver
BuildPreReq: ORBit2-devel >= %orbit_ver

Requires: evolution >= %evolution_ver
Requires: evolution-data-server >= %eds_ver

BuildRequires: gcc-c++ gtk-doc

%if_with sys_db4
BuildRequires: libdb4-devel
%endif

%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


Requires(post): GConf2
BuildPreReq: GConf2

%add_findprov_lib_path %_libdir/evolution/%ver_base

BuildRequires: rpm-build-compat >= 0.95

%description
This is the Ximian Connector for Microsoft Exchange, which adds
support for Microsoft Exchange 2000 and 2003 to Evolution.

%prep
%setup -q
%patch1

%patch11 -p1 -b .fix-64bit-acinclude.m4
%patch14 -p1 -b .fix-library-order

%build

%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

# -lexchange-storage has undefined symbols, can't be helped now

# export LDFLAGS="$LDFLAGS -Wl,--no-as-needed"

export CFLAGS="$RPM_OPT_FLAGS -DLDAP_DEPRECATED"

# 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 \
-DGTK_DISABLE_DEPRECATED=1 \
-DEDS_DISABLE_DEPRECATED=1 \
-Wdeclaration-after-statement \
-Werror-implicit-function-declaration \
-fno-strict-aliasing"
%endif

intltoolize --copy --force
%autoreconf

%configure \
   %{subst_enable static} \
%if_enabled debug
   --with-e2k-debug \
%endif
   %ldap_flags \
%if_with sys_db4
   --with-libdb=%_prefix \
%endif
%if_with krb5
   --with-krb5=%_prefix \
   --with-krb5-libs=%_libdir \
   --with-krb5-includes=%_includedir/krb5 \
%endif
   --disable-schemas-install \
   --enable-gtk-doc

%make_build

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

%__install -d -m755 %buildroot%pkgdocdir
%__install -p -m644 AUTHORS ChangeLog NEWS README %buildroot%pkgdocdir/
bzip2 -9 %buildroot%pkgdocdir/ChangeLog
%__cp -a docs %buildroot%pkgdocdir/

# remove none-packaged files

%__rm -f %buildroot%_libdir/evolution-data-server-%eds_ver_base/camel-providers/*.la
%__rm -rf %buildroot%pkgdocdir/docs/{reference,Makefile*}

%find_lang --with-gnome %name-%ver_base

%post
%gconf2_install apps_exchange_addressbook-%ver_base

%preun
if [ $1 = 0 ]; then
%gconf2_uninstall apps_exchange_addressbook-%ver_base
fi

%files -f %name-%ver_base.lang
%_bindir/exchange-connector-setup-%ver_base
%_libdir/evolution/%ver_base/*
%_libdir/evolution-data-server-%eds_ver_base/camel-providers/*
%_libdir/bonobo/servers/*
%_datadir/%name
%pkgdocdir
%config %_sysconfdir/gconf/schemas/*
%_datadir/gtk-doc/html/%name

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin