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

Группа :: Графические оболочки/GNOME
Пакет: evolution-data-server

 Главная   Изменения   Спек   Патчи   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 ver_lib 1.2
%define db_ver 4.4

%def_disable debug
%def_disable static
%def_with sys_db4
%def_with openldap
%def_disable static_ldap
%def_with krb5
%def_enable nntp
%def_enable gnome_keyring


# Use stricter build settings than required by upstream.

%define strict_build_settings 1


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



Summary: Evolution Data Server
License: %lgpl2plus
Group: Graphical desktop/GNOME
URL: http://www.gnome.org/projects/evolution/
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>

Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.bz2
Patch1: %name-1.4.2.1-debug-lock.patch
Patch2: %name-1.5.92-krb5-libs.patch
Patch3: %name-1.12.1-as-needed.patch
# Patch3: evolution-data-server-2.22.0-as-needed.patch

Patch7: evolution-data-server-1.0.2-workaround-cal-backend-leak.patch
Patch8: evolution-1.4.4-ldap-x86_64-hack.patch
Patch9: evolution-data-server-1.2.2-fix_open_calendar_declaration.patch

Patch10: %name-ntlm-ldap.patch

# RH bug #202309

Patch12: evolution-data-server-1.7.91-maybe-fix-crash.patch

# RH bug #215702 / GNOME bug #487988

Patch14: evolution-data-server-1.8.0-fix-ldap-query.patch

# GNOME bug #373146

Patch23: evolution-data-server-1.10.1-camel-folder-summary-crash.patch

# RH bug #243296

Patch24: evolution-data-server-1.10.3.1-fix-64bit-acinclude.patch


Patch25: evolution-data-server-2.22.0-implicit-function-declaration.patch
# (pt) 1.10.0-3mdv fix empty error dialog in non utf8 locale
Patch30: evolution-data-server-2.22.0-gpgutf8.patch


# from configure.in

%define libgnome_ver 2.20.0
%define glib_ver 2.15.3
%define gtk_ver 2.10.0
%define orbit_ver 2.9.8
%define gnome_vfs_ver 2.4.0
%define libbonobo_ver 2.20.3
%define libsoup_ver 2.3.0

Requires: libbonobo2 >= %libbonobo_ver
Requires: libgnome >= %libgnome_ver
Requires: libsoup >= %libsoup_ver
Requires: glib2 >= %glib_ver

# e-d-s is a mess of circular linking, I have no time to unravel it now

#set_verify_elf_method unresolved=relaxed

BuildConflicts: evolution-data-server-devel

BuildPreReq: rpm-build-gnome rpm-build-licenses
BuildPreReq: gtk-doc >= 1.0

BuildPreReq: gnome-common
BuildPreReq: libgnome-devel >= %libgnome_ver
BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: ORBit2-devel >= %orbit_ver
BuildPreReq: gnome-vfs-devel >= %gnome_vfs_ver
BuildPreReq: libbonobo-devel >= %libbonobo_ver
BuildPreReq: libGConf-devel
BuildPreReq: libglade-devel
BuildPreReq: libxml2-devel
BuildPreReq: libsoup-devel >= %libsoup_ver


BuildRequires: docbook-utils flex gcc-c++ libcom_err-devel libnss-devel libnspr-devel


%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

%if_enabled gnome_keyring
BuildRequires: libgnome-keyring-devel
%endif


BuildRequires: rpm-build-compat >= 0.95

%description
Evolution Data Server provides a central location for
addressbook and calendar in the GNOME Desktop.

%package devel
Summary: Development files for Evolution Data Server
Group: Development/C
Requires: %name = %version-%release

%description devel
This package provides development files for Evolution Data Server

%package devel-doc
Summary: Development documentation for Evolution Data Server
Group: Development/C
Conflicts: %name < 1.0.3-alt1

%description devel-doc
Evolution Data Server provides a central location for
addressbook and calendar in the GNOME Desktop.

This package contains development documentation for Evolution Data Server.

%define _gtk_docdir %_datadir/gtk-doc/html
%define _libexecdir %_prefix/libexec/%name

%add_findprov_lib_path %_libdir/%name-%ver_lib/extensions

%prep
%setup -q

%if_enabled debug
%patch1 -p1
%endif

%patch2 -p1
%patch3 -p1 -b .as-needed

%patch7 -p1 -b .workaround-cal-backend-leak
# patch8 don't work, if run autoreconf
%patch8 -p1 -b .ldaphack
%patch9 -p1 -b .fix_open_calendar_declaration
%patch10 -p1
%patch12 -p1 -b .maybe-fix-crash
%patch14 -p1 -b .fix-ldap-query
%patch23 -p1 -b .camel-folder-symmary-crash
%patch24 -p1 -b .fix-64bit-acinclude
%patch25 -p1 -b .implicit-function-declarations
%patch30 -p1 -b .gpgutf8

gtkdocize

%if_with sys_db4
rm -rf libdb
%__subst '/libdb\/Makefile/d' configure.in
%__subst 's/^\(SUBDIRS.*\)\$(LIBDB)/\1/' Makefile.am
%endif

########################################################

# --as-needed fixes (depend on patch3)

# fix for dep ordering so we can add libedataserverui to libexchange-storage

# we need to do this or: undefined reference to `e_passwords_get_password'
# are the kinds of errors you will get.

# move the groupwise backend and provider for addressbook, camel, and

# calendar to its own folder called server.deps.
mkdir server.deps
mkdir server.deps/calendar
mv addressbook/backends/groupwise server.deps/addressbook
mv camel/providers/groupwise server.deps/camel
mv calendar/backends/groupwise server.deps/calendar/
mv calendar/backends/google server.deps/calendar/

# now fix the autotools foo for the new directory and the removed ones

echo "SUBDIRS = addressbook camel calendar" > server.deps/Makefile.am
echo "SUBDIRS = groupwise google" > server.deps/calendar/Makefile.am

# remove groupwise folder from Makefile's since they are in a diff location

sed -i -e 's: groupwise::' addressbook/backends/Makefile.am camel/providers/Makefile.am calendar/backends/Makefile.am
sed -i -e 's: google::' calendar/backends/Makefile.am

# fix configure.in location of the Makefile's

sed -i -e 's:addressbook/backends/groupwise:server.deps/addressbook:' configure.in
sed -i -e 's:camel/providers/groupwise:server.deps/camel:' configure.in
# tack on the server.deps Makefile on our last edit
sed -i -e 's:calendar/backends/groupwise:server.deps/calendar/groupwise/Makefile\nserver.deps:' configure.in

sed -i -e 's:calendar/backends/google:server.deps/calendar/google/Makefile\nserver.deps/calendar:' configure.in

# fix file includes

sed -i -e 's:<backends/groupwise/e-book-backend-groupwise.h>:"server.deps/addressbook/e-book-backend-groupwise.h":' addressbook/libedata-book/e-data-book-factory.c
#########################################################

%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

export CPPFLAGS="-I%{_includedir}/et"
export CFLAGS="$RPM_OPT_FLAGS -DLDAP_DEPRECATED -fPIC -I%{_includedir}/et"

# 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 \
-Wdeclaration-after-statement \
-Werror-implicit-function-declaration"
%endif

intltoolize --copy --force
%autoreconf

cd calendar/libical
%autoreconf
cd ../..

export ac_cv_path_SENDMAIL=%_sbindir/sendmail
%configure \
%if_enabled debug
   --with-e2k-debug \
%endif
%if_with sys_db4
   --with-libdb=%_prefix \
%endif
   %{subst_enable static} \
   --enable-file-locking=fcntl \
   --enable-dot-locking=no \
   %ldap_flags \
   %{subst_enable nntp} \
   --enable-nss \
   --enable-smime \
%if_enabled gnome_keyring
   --enable-gnome-keyring \
%endif
   --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
   --enable-gtk-doc \
   --disable-schemas-install

# SMP-incompatible build

#export tagname=CC
#%make LIBTOOL=/usr/bin/libtool
%make_build

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

# if unstable

#__ln_s camel-lock-helper-1.2 %buildroot%_libdir/%name/camel-lock-helper

# remove none-packaged files

%__rm -f %buildroot%_libdir/%name-%ver_lib/*/*.la

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

##pre

#bonobo-slay -s evolution-data-server

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%files -f %name.lang
%dir %_libexecdir
%_libexecdir/*
%_libdir/%name-%ver_lib
%_libdir/*.so.*
%_libdir/bonobo/servers/*
%_datadir/idl/*
%_datadir/%name-*
%_datadir/pixmaps/*
%doc AUTHORS ChangeLog NEWS README MAINTAINERS

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

%files devel-doc
%_gtk_docdir/*

%changelog

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

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