Репозиторий Sisyphus
Последнее обновление: 20 сентября 2020 | Пакетов: 17690 | Посещений: 19257352
en ru br
Репозитории ALT
S:6.4.2-alt1
5.1: 6.3.17-alt0.M50P.1
4.1: 6.3.8-alt6.1.M41.1
4.0: 6.3.8-alt4
+updates:6.3.8-alt4
3.0: 6.2.5.2-alt1
www.altlinux.org/Changes

Группа :: Сети/Почта
Пакет: fetchmail

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

%define rtdir %_runtimedir/%name

Name: fetchmail
Version: 6.4.2
Release: alt1

Summary: Full-featured POP/IMAP/ETRN mail retrieval daemon
License: GPLv2
Group: Networking/Mail
Url: http://www.fetchmail.info

Source0: %name-%version.tar
Source1: %name.init
Source2: %name.service
Source3: fetchmailrc.example
Source10: fetchmailconf-large.png
Source11: fetchmailconf-mini.png
Source12: fetchmailconf.png
Source13: fetchmailconf.desktop
Source100: fetchmail.watch

Patch1: %name-5.6.2-contrib.patch
Patch2: %name-6.4.1-fetchmailconf.patch
Patch3: %name-6.4.1-nopermcheck.patch
Patch4: %name-6.4.1-no-libssl-version-sanity-check.patch

BuildRequires(pre): rpm-build-python3
BuildRequires: flex openssl-devel libkrb5-devel python3-devel

Requires: %_sbindir/sendmail
Requires: setup >= 2.1.9-ipl15mdk
Requires: service >= 0.5.28-alt1


%description
Fetchmail is a free, full-featured, robust, and well-documented
remote mail retrieval and forwarding utility intended to be used
over on-demand TCP/IP links (such as SLIP or PPP connections).

It retrieves mail from remote mail servers and forwards it to
your local (client) machine's delivery system, so it can then be
read by normal mail user agents such as Mutt, Elm, Pine,
(X)Emacs/Gnus or Mailx.

Fetchmail supports every remote-mail protocol currently in use on
the Internet (POP2, POP3, RPOP, APOP, KPOP, all IMAPs, ESMTP
ETRN) for retrieval.  Then Fetchmail forwards the mail through
SMTP or a mail delivery agent (MDA) program of your choice, so
you can read it through your normal mail client.

You may also want to install and configure a local SMTP server,
such as postfix-smtpd, as that's what fetchmail uses for delivery
by default.

%package -n %{name}conf
Summary: A utility for graphically configuring your %name preferences
Group: System/Configuration/Networking
Requires: %name = %version-%release, tkinter

%package daemon
Summary: SySV init script for demonize %name for sucking emails
Group: System/Servers
PreReq: %name = %version-%release
PreReq: shadow-utils, chkconfig
BuildArch: noarch

%package contrib
Summary: Various contributed software designed to work with %name
Group: System/Base
Requires: %name = %version-%release
BuildArch: noarch

%package locales
Summary: %name localization
Group: System/Internationalization
Requires: %name = %version-%release
BuildArch: noarch

%description -n %{name}conf
Fetchmailconf is a TCL/TK application for graphically configuring
your ~/.%{name}rc preferences file.

Fetchmail has many options which can be daunting to the new user.

This utility takes some of the guesswork and hassle out of
setting up %name.

%description daemon
SySV init script for demonize %name for sucking emails.

%description contrib
Various contributed software designed to work with %name.

%description locales
As there were problems with %name localization, it was disabled;
this package can be used to re-add message translations if deemed
neccessary.

%prep
%setup
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

cp -a %SOURCE3 fetchmailrc.example

sed -i 's| at pythondir at /fetchmailconf.py|%python3_sitelibdir/fetchmailconf.py|'\
   Makefile.in

%build
export PYTHON=%__python3
export ac_cv_path_procmail=%_bindir/procmail
export ac_cv_path_sendmail=%_sbindir/sendmail
export ac_cv_lib_intl_gettext=no
export CPPFLAGS=-I%_includedir/krb5
%configure \
--enable-fallback=sendmail \
--enable-RPA \
--enable-NTLM \
--enable-SDPS \
--with-ssl \
--with-gssapi \
--with-kerberos5 \
--without-kerberos
%make_build

%install
%makeinstall

rm -rf contrib/RCS
chmod 644 contrib/*

install -pDm755 %SOURCE1 %buildroot%_initdir/%name
install -pDm644 %SOURCE2 %buildroot%_unitdir/%name.service
touch %buildroot%_sysconfdir/%{name}rc

install -pDm644 %SOURCE10 %buildroot%_liconsdir/%{name}conf.png
install -pDm644 %SOURCE11 %buildroot%_miconsdir/%{name}conf.png
install -pDm644 %SOURCE12 %buildroot%_niconsdir/%{name}conf.png
install -pDm644 %SOURCE13 %buildroot%_desktopdir/%{name}conf.desktop

mkdir -p %buildroot%rtdir

cat >README.%name-conf <<EOF
Fetchmailconf is a TCL/TK application for graphically configuring your
~/.fetchmailrc preferences file.

Fetchmail has many options which can be daunting to the new user.

This utility takes some of the guesswork and hassle out of setting up
fetchmail.
EOF

%find_lang %name

%if "%python3_sitelibdir" != "%python3_sitelibdir_noarch"
   mkdir -p %buildroot%python3_sitelibdir
   mv %buildroot%python3_sitelibdir_noarch/* %buildroot%python3_sitelibdir/
%endif

%pre -n %name-daemon
%_sbindir/groupadd -f %name ||:
%_sbindir/useradd -r -n -M -g %name -d %rtdir -s /dev/null %name &>/dev/null ||:

%triggerpostun -n %name-daemon -- fetchmail-daemon <= 6.3.9-alt1
usermod -d %rtdir %name ||:

%post -n %name-daemon
%post_service %name

%preun -n %name-daemon
%preun_service %name

%files
%_bindir/%name
%_man1dir/%name.*
%doc COPYING FAQ FEATURES NEWS NOTES README README.SSL TODO *.html *.txt
%doc fetchmailrc.example

%files -n %{name}conf
%_bindir/%{name}conf
%python3_sitelibdir/*
%_desktopdir/*.desktop
%_niconsdir/*.png
%_liconsdir/*.png
%_miconsdir/*.png
%_man1dir/%{name}conf.*

%files daemon
%_initdir/%name
%_unitdir/%name.service
%attr(640,root,%name) %config(noreplace,missingok) %_sysconfdir/%{name}rc
%attr(775,root,%name) %rtdir

%files contrib
%doc contrib/*

%files -f %name.lang locales


%changelog

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

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