#
# Conditional build:
%bcond_without ssl # build without SSL support
-%bcond_without ipv6 # build without IPv6 support
#
Summary: Remote mail fetch daemon for POP2, POP3, APOP, IMAP
Summary(da.UTF-8): Alsidig POP/IMAP post-afhentnings dæmon
Summary(uk.UTF-8): Утиліта отримання пошти з віддаленої машини по протоколам POP/IMAP
Summary(zh_CN.UTF-8): 功能强大的 POP/IMAP 电子邮件收取守护进程
Name: fetchmail
-Version: 6.3.8
-Release: 2
-License: GPL
+Version: 6.3.20
+Release: 1
+License: GPL v2 with OpenSSL exception
Group: Applications/Mail
#Source0Download: http://developer.berlios.de/project/showfiles.php?group_id=1824
-Source0: http://download2.berlios.de/fetchmail/%{name}-%{version}.tar.bz2
-# Source0-md5: 66b97500b0a1e3c0916b3b5314f597f5
+Source0: http://download.berlios.de/fetchmail/%{name}-%{version}.tar.xz
+# Source0-md5: 76406dbb37471f911cbb483830afe068
Source1: %{name}conf.desktop
Source2: %{name}.sysconfig
Source3: %{name}.init
Source4: %{name}.logrotate
-Patch0: %{name}-pl.po-update.patch
URL: http://fetchmail.berlios.de/
BuildRequires: automake
-BuildRequires: bison
BuildRequires: flex
-BuildRequires: gettext-devel
+BuildRequires: gettext-devel >= 0.14.6
%{?with_ssl:BuildRequires: openssl-devel >= 0.9.7l}
+BuildRequires: python >= 2.0
+BuildRequires: python-modules >= 2.0
+BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
Requires: setup >= 2.3
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q
-%patch0 -p1
-
-# to rebuild po/pl.gmo
-rm -f po/stamp-po
%build
cp -f /usr/share/automake/config.* .
%configure \
+ ac_cv_header_md5_h=no \
+ ac_cv_search_MD5Init=no \
--enable-nls \
- --without-included-gettext \
- %{?with_ipv6:--enable-inet6} \
--enable-RPA \
--enable-NTLM \
--enable-SDPS \
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc FEATURES README NEWS NOTES README.NTLM *.html FAQ
+# COPYING contains detailed description of licenses
+%doc COPYING FEATURES README NEWS NOTES README.NTLM *.html FAQ
%attr(755,root,root) %{_bindir}/fetchmail
%{_mandir}/man1/fetchmail.1*