Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37479448
en ru br
Репозитории ALT
S:4.1.1-alt2
5.1: 3.7.4-alt0.M50P.1
4.1: 3.6.1.cvs5-alt0.M41.2
4.0: 3.6.1.cvs5-alt0.M40.1
www.altlinux.org/Changes

Другие репозитории
Upstream:3.3.1

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

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _name sylpheed
%define _newname claws-mail
%define branch claws
#define cvs .cvs5
%define     cvs     %nil
%def_disable debug
Name: %_newname
Version: 3.7.4
Release: alt0.M50P.1

Summary: The bleeding edge branch of Sylpheed, a GTK+ based, lightweight, and fast e-mail client
License: %gpl3plus
Group: Networking/Mail

Url: http://%name.sourceforge.net

Source: http://downloads.sf.net/sourceforge/%_name-%branch/%name-%version.tar.bz2
Patch1: %name-alt-filters-conv.patch
#Patch2: %name-alt-ru-trans-mistakes.patch
#Patch3:     %name-3.7.1-fix-build-with-automake1.11.patch
#Patch4:     %name-3.7.1-fix-edit-displayed-headers.patch
#Patch5:     %name-3.7.2-fix-ru.po.patch

# ALT Specific

#Patch110: %name-alt-prefs_common.c.patch
Patch117: %name-alt-gettext-fix.patch
Patch118: %name-2.10.0.cvs81-plugin.c-module-load-dirty-fix.patch

Obsoletes: %_name-%branch < %version
Provides: %_name-%branch

BuildRequires(pre): rpm-build-licenses

BuildPreReq: autoconf-common cvs gettext-tools

# Automatically added by buildreq on Mon Oct 13 2008

BuildRequires: NetworkManager-devel flex gcc-c++ libSM-devel libcompface-devel libdbus-glib-devel libenchant-devel libetpan-devel libgnutls-devel libgpgme-devel libgtk+2-devel libldap-devel libpilot-link-devel libstartup-notification-devel

%description
Claws Mail is an email client (and news reader), based on GTK+, featuring

   Quick response
   Graceful, and sophisticated interface
   Easy configuration, intuitive operation
   Abundant features
   Extensibility

The appearance and interface are designed to be familiar to new users
coming from other popular email clients, as well as experienced users.
Almost all commands are accessible with the keyboard.

The messages are managed in the standard MH format, which features fast
access and data security. You'll be able to import your emails from almost
any other email client, and export them just as easily.

Lots of extra functionality, like an RSS aggregator, calendar, or laptop
LED handling, are provided by extra plugins.

Claws Mail is distributed under the GPL.

%package        devel
Summary:        Development environment for %name
Group:          Development/C
Requires: %name = %version-%release
Obsoletes: %_name-%branch-devel < %version
Provides: %_name-%branch-devel

%description devel
This package contains the header files and libraries for building program
which use %name.

%package plugin-dillo
Summary: Dillo browser plugin for %name
Group: Networking/Mail
Requires: %name = %version
Requires: dillo
Obsoletes: %_name-%branch-plugin-dillo < %version
Provides: %_name-%branch-plugin-dillo

%description plugin-dillo
This plugin for %name lets you see HTML content in the messages by means of
a Dillo embedded browser. This plugin only provides very basic HTML
support; if you want something more, consider installing
%name-plugin-gtkhtml2 package.

%package plugin-spamassassin
Summary: SpamAssassin plugin for %name
Group: Networking/Mail
Requires: %name = %version
Requires: spamassassin
Obsoletes: %_name-%branch-plugin-spamassassin < %version
Provides: %_name-%branch-plugin-spamassassin

%description plugin-spamassassin
This plugin for %name provides integration with SpamAssassin.

%package plugin-bogofilter
Summary: Bogofilter plugin for %name
Group: Networking/Mail
Requires: %name = %version
Requires: bogofilter bogofilter-utils
Obsoletes: %_name-%branch-plugin-bogofilter < %version
Provides: %_name-%branch-plugin-bogofilter

%description plugin-bogofilter
This plugin for %name provides integration with Bogofilter spam checking
tool.

%package plugin-trayicon
Summary: Tray icon plugin for %name
Group: Networking/Mail
Requires: %name = %version
Obsoletes: %_name-%branch-plugin-trayicon < %version
Provides: %_name-%branch-plugin-trayicon

%description plugin-trayicon
This plugin for %name provides a tray icon.

%package plugin-pgpcore
Summary: Core PGP plugin for %name
Group: Networking/Mail
Requires: %name = %version
Obsoletes: %_name-%branch-plugin-pgpcore < %version
Provides: %_name-%branch-plugin-pgpcore

%description plugin-pgpcore
This plugin for %name provides core PGP functionality. It is used by other
encryption/signing plugins.

%package plugin-pgpmime
Summary: PGP/MIME plugin for %name
Group: Networking/Mail
Requires: %name = %version
Requires: %name-plugin-pgpcore = %version
Obsoletes: %_name-%branch-plugin-pgpmime < %version
Provides: %_name-%branch-plugin-pgpmime

%description plugin-pgpmime
This plugin for %name lets you create and see messages encrypted/signed
with PGP/MIME.

%package plugin-pgpinline
Summary: PGP/Inline plugin for %name
Group: Networking/Mail
Requires: %name = %version
Requires: %name-plugin-pgpcore = %version
Obsoletes: %_name-%branch-plugin-pgpinline < %version
Provides: %_name-%branch-plugin-pgpinline

%description plugin-pgpinline
This plugin for %name lets you create and see messages encrypted/signed
with PGP/Inline.

%package plugin-smime
Summary: S/MIME plugin for %name
Group: Networking/Mail
Requires: %name = %version
Requires: %name-plugin-pgpcore = %version
Requires:   dirmngr gnupg2-common
Obsoletes: %_name-%branch-plugin-smime < %version
Provides: %_name-%branch-plugin-smime

%description plugin-smime
This plugin for %name lets you create and see messages encrypted/signed
with S/MIME.

%package tools
Summary: Additional tools for %name
Group: Networking/Mail
Requires: %name = %version
Requires:       python
BuildRequires:  python
BuildRequires: python-modules-encodings
BuildPreReq: perl-MIME-tools
BuildPreReq: perl-Text-Iconv
BuildPreReq: perl-XML-SimpleObject
BuildPreReq: perl-URI
BuildPreReq: perl-libwww
BuildPreReq: perl-Text-CSV_XS
Obsoletes: %_name-%branch-tools < %version
Provides: %_name-%branch-tools

%description tools
additional tools for %name.

%prep
%if "%cvs"==""
%setup -q
%else
%setup -q -n  %_name-%branch
%endif

%__subst "s,\#\!/usr/bin/python2.2,\#\!/usr/bin/python," tools/vcard2xml.py
%__subst "s,\#\!/usr/bin/perl,\#\!/usr/bin/perl -w," tools/OOo2claws-mail.pl
%__subst "s,sylpheed,sylpheed-claws," tools/OOo2claws-mail.pl
%__subst "s,%%f,%%N," ./src/prefs_quote.c
echo "Libs: -lenchant -lgnutls" >>%name.pc.in

%patch1 -p1
#patch3 -p0
#patch4 -p2
#patch5 -p0

%patch118 -p1

%autoreconf

%build
%configure --disable-rpath \
--with-lib-prefix=%_usr \
--with-aspell-includes=%_includedir \
--with-aspell-libs=%_libdir \
--with-faqdir=%_datadir/%name \
--with-manualdir=%_datadir/%name \
--with-config-dir=.%name \
--disable-manual \
%if_enabled debug
--enable-crash-dialog
%else
--disable-crash-dialog
%endif
%make_build
%make -C tools

%install
%make DESTDIR=%buildroot install
%make -C tools install

mkdir -p %buildroot%_datadir/%name/
cp -va  tools %buildroot%_datadir/%name/
rm -vf  %buildroot%_datadir/%name/tools/README*
rm -vf  %buildroot%_datadir/%name/tools/Makefile*
#mkdir -p %buildroot%_desktopdir
#install -p -m644 %_newname.desktop %buildroot%_desktopdir

mkdir -p %buildroot/%_iconsdir
install -p -m644 %_newname.png %buildroot/%_iconsdir/%_newname.png
mkdir -p %buildroot%_pixmapsdir
ln -s %_iconsdir/%_newname.png %buildroot%_pixmapsdir

mkdir -p %buildroot%_sysconfdir/rpm/macros.d
cat << EOF >  %buildroot%_sysconfdir/rpm/macros.d/%name
%%_claws_version %version
%%_claws_plugins_path %%_libdir/%_newname/plugins
EOF

# XXX: Make sure the path below is the same as the path above.

%define _claws_plugins_path %_libdir/%_newname/plugins

%find_lang %name

%files -f %name.lang
%doc AUTHORS ChangeLog* COPYING INSTALL NEWS README* TODO* RELEASE_NOTES
%_bindir/%name
%_bindir/%_name-%branch
%_man1dir/%_newname.1.gz
%_desktopdir/*.desktop
%_iconsdir/%_newname.png
%_iconsdir/hicolor/*x*/apps/%_newname.png
%_pixmapsdir/%_newname.png

%files devel
%_includedir/%_newname/*
%_pkgconfigdir/%_newname.pc
%_sysconfdir/rpm/macros.d/%name

%files plugin-dillo
%_claws_plugins_path/dillo_viewer.so

%files plugin-spamassassin
%_claws_plugins_path/spamassassin.so

%files plugin-bogofilter
%_claws_plugins_path/bogofilter.so

%files plugin-trayicon
%_claws_plugins_path/trayicon.so

%files plugin-pgpcore
%_claws_plugins_path/pgpcore.so

%files plugin-pgpmime
%_claws_plugins_path/pgpmime.so
%_claws_plugins_path/pgpmime.deps

%files plugin-pgpinline
%_claws_plugins_path/pgpinline.so
%_claws_plugins_path/pgpinline.deps

%files plugin-smime
%_claws_plugins_path/smime.so
%_claws_plugins_path/smime.deps

%files tools
%doc tools/README*
%_datadir/%name/tools/*

%exclude %_claws_plugins_path/*.a
%exclude %_claws_plugins_path/*.la

%changelog

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

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