Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37900809
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 

%define ver_major 2.26

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

# Use stricter build settings than required by upstream.  

%define strict_build_settings 1

Name: evolution-exchange
Version: %ver_major.3
Release: alt1.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
Patch13: %name-2.11.2-fix-library-order.patch

%define evolution_ver 2.23.90

%define pkgdocdir %_docdir/%name-%version

# from configure.in.

%define glib_ver 2.16.0
%define gtk_ver 2.12.0
%define eds_ver 2.23.90
%define libbonobo_ver 2.20.3
%define libsoup_ver 2.3.0
%define orbit_ver 2.9.8
%define ver_base 2.26
%define eds_ver_base 1.2

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 openldap
BuildRequires: libldap-devel
%if_enabled static_ldap
BuildRequires: libldap-devel-static libssl-devel libsasl2-devel.
%endif
%endif

Requires(post): GConf
BuildPreReq: GConf

%add_findprov_lib_path %_libdir/evolution/%ver_base

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

%package doc
Summary: Documentation for Ximian Connector for Microsoft Exchange
Group: Networking/Mail
BuildArch: noarch
Conflicts: %name < %version

%description doc
This package contains documentation for Ximian Connector for Microsoft
Exchange

%prep
%setup -q
%patch1
%patch11 -p1 -b .fix-64bit-acinclude.m4
%patch13 -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 \
-fno-strict-aliasing"

# implicit gtk_box_pack_start_defaults in storage/exchange-migrate.c

#### -Werror-implicit-function-declaration \

%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
   --disable-schemas-install \
   %{?_enable_gtk_doc:--enable-gtk-doc}

%make_build

%install
%make DESTDIR=%buildroot install

install -d -m755 %buildroot%pkgdocdir
install -p -m644 AUTHORS ChangeLog NEWS README %buildroot%pkgdocdir/
bzip2 -9 %buildroot%pkgdocdir/ChangeLog
# reference packaged separately
rm -rf %buildroot%pkgdocdir/docs/{reference,Makefile*}
cp -a docs %buildroot%pkgdocdir/

%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/*

%exclude %_libdir/evolution-data-server-%eds_ver_base/camel-providers/*.la

%files doc
%_datadir/gtk-doc/html/*

%changelog

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

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