|
@@ -1,43 +1,37 @@
|
|
|
-
|
|
|
-%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
+%bcond_with systemd
|
|
|
+%bcond_with fetchmailconf
|
|
|
|
|
|
Summary: A remote mail retrieval and forwarding utility.
|
|
|
Summary(ja): 遠隔メール取得/フォワード用ユーティリティ
|
|
|
Name: fetchmail
|
|
|
-Version: 6.3.26
|
|
|
-Release: 3%{_dist_release}
|
|
|
-Requires: smtpdaemon
|
|
|
+Version: 6.4.4
|
|
|
+Release: 1%{_dist_release}%{?with_systemd:.systemd}
|
|
|
License: GPL
|
|
|
Group: Applications/Internet
|
|
|
-URL: http://fetchmail.berlios.de/
|
|
|
-Source0: http://download.berlios.de/fetchmail/fetchmail-%{version}.tar.xz
|
|
|
-Source1: fetchmailconf.1
|
|
|
+URL: http://www.fetchmail.info/
|
|
|
+%define shortver %(echo %{version} | sed -e 's/\\.[0-9]*$//')
|
|
|
+Source0: https://downloads.sourceforge.net/project/fetchmail/branch_%{shortver}/fetchmail-%{version}.tar.xz
|
|
|
|
|
|
-Patch1: fetchmail-6.3.22-stripnul.patch
|
|
|
-Patch2: fetchmail-6.3.22-nonewline.patch
|
|
|
-# Patch3: fetchmail-6.3.5-malformed_spam_crash.patch
|
|
|
-
|
|
|
-# security
|
|
|
-# Patch100: fetchmail-6.3.8_CVE-2007-4565.patch
|
|
|
-# Patch110: fetchmail-6.3.8_CVE-2008-2711.patch
|
|
|
+Source1: fetchmailconf.1
|
|
|
+Source2: fetchmail.service
|
|
|
+Source3: fetchmail@.service
|
|
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
|
+%if %{with systemd}
|
|
|
+%{?systemd_requires}
|
|
|
+%endif
|
|
|
BuildRequires: openssl-devel
|
|
|
BuildRequires: krb5-devel
|
|
|
-BuildRequires: python-devel
|
|
|
BuildRequires: flex, bison
|
|
|
Requires: krb5-libs
|
|
|
+%if %{without fetchmailconf}
|
|
|
+Obsoletes: fetchmailconf < 6.4.0
|
|
|
+%endif
|
|
|
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
|
Packager: iwamoto, inagaki
|
|
|
|
|
|
-%package -n fetchmailconf
|
|
|
-Summary: A GUI utility for configuring your fetchmail preferences.
|
|
|
-Summary(ja): fetchmail を設定する為の GUI ユーティリティ
|
|
|
-Group: Applications/Internet
|
|
|
-Requires: python, tk, tkinter, fetchmail = %{version}-%{release}
|
|
|
-
|
|
|
%description
|
|
|
Fetchmail is a remote mail retrieval and forwarding utility intended
|
|
|
for use over on-demand TCP/IP links, like SLIP or PPP connections.
|
|
@@ -60,6 +54,15 @@ fetchmail はメールのフォワードには SMTP を用います.
|
|
|
SLIP や PPP 接続でメールを取得したい場合は fetchmail を
|
|
|
インストールして下さい.
|
|
|
|
|
|
+%if %{with fetchmailconf}
|
|
|
+%package -n fetchmailconf
|
|
|
+Summary: A GUI utility for configuring your fetchmail preferences.
|
|
|
+Summary(ja): fetchmail を設定する為の GUI ユーティリティ
|
|
|
+Group: Applications/Internet
|
|
|
+BuildRequires: python-devel
|
|
|
+BuildRequires: python-rpm-macros
|
|
|
+Requires: python, tk, tkinter, fetchmail = %{version}-%{release}
|
|
|
+
|
|
|
%description -n fetchmailconf
|
|
|
Fetchmailconf is a Tcl/Tk GUI application which edits your
|
|
|
.fetchmailrc file, in order to configure the fetchmail mail retrieval
|
|
@@ -78,50 +81,93 @@ fetchmailconf を使うと混乱すること無く設定が行えます.
|
|
|
fetchmail の設定を簡単に行いたい場合は fetchmailconf をインストール
|
|
|
して下さい.fetchmail を使うには python と tk もインストールされている
|
|
|
必要があります.
|
|
|
+%endif
|
|
|
+
|
|
|
|
|
|
%prep
|
|
|
%setup -q
|
|
|
|
|
|
-%patch1 -p1 -b .stripnul
|
|
|
-%patch2 -p1 -b .nonewline
|
|
|
-# %patch3 -p0 -b .malformed_spam
|
|
|
-
|
|
|
-# %patch100 -p0 -b .CVE-2007-4565
|
|
|
-# %patch110 -p1 -b .CVE-2008-2711
|
|
|
|
|
|
%build
|
|
|
+%if %{without fetchmailconf}
|
|
|
+export PYTHON=":"
|
|
|
+%endif
|
|
|
+
|
|
|
%configure \
|
|
|
+ --enable-POP3 \
|
|
|
+ --enable-IMAP \
|
|
|
--enable-NTLM \
|
|
|
--with-ssl \
|
|
|
--with-kerberos5 \
|
|
|
- --with-gssapi
|
|
|
+ --with-gssapi \
|
|
|
+ --enable-fallback=no
|
|
|
|
|
|
%__make %{?_smp_mflags}
|
|
|
|
|
|
+
|
|
|
%install
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
+rm -rf %{buildroot}
|
|
|
%makeinstall
|
|
|
-rm -f $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1*
|
|
|
-install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1/
|
|
|
+
|
|
|
+rm -f %{buildroot}%{_mandir}/man1/fetchmailconf.1*
|
|
|
+%if %{with fetchmailconf}
|
|
|
+install -p -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man1/
|
|
|
+%else
|
|
|
+rm -f %{buildroot}%{_bindir}/fetchmailconf
|
|
|
+%endif
|
|
|
+
|
|
|
+%if %{with systemd}
|
|
|
+install -Dpm644 %{SOURCE2} %{buildroot}%{_unitdir}/fetchmail.service
|
|
|
+install -Dpm644 %{SOURCE3} %{buildroot}%{_unitdir}/fetchmail@.service
|
|
|
+%endif
|
|
|
|
|
|
%find_lang %name
|
|
|
|
|
|
+
|
|
|
%clean
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
+rm -rf %{buildroot}
|
|
|
+
|
|
|
+
|
|
|
+%if %{with systemd}
|
|
|
+%post
|
|
|
+%systemd_post %{name}.service
|
|
|
+
|
|
|
+%preun
|
|
|
+%systemd_preun %{name}.service
|
|
|
+
|
|
|
+%postun
|
|
|
+%systemd_postun_with_restart %{name}.service
|
|
|
+%endif
|
|
|
+
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
%defattr(-,root,root)
|
|
|
-%doc FEATURES README NEWS NOTES *.html FAQ COPYING INSTALL
|
|
|
+%license COPYING
|
|
|
+%doc FEATURES README NEWS NOTES *.html FAQ INSTALL
|
|
|
%{_bindir}/fetchmail
|
|
|
%{_mandir}/man1/fetchmail.1*
|
|
|
+%if %{with systemd}
|
|
|
+%{_unitdir}/*
|
|
|
+%endif
|
|
|
|
|
|
+%if %{with fetchmailconf}
|
|
|
%files -n fetchmailconf
|
|
|
%defattr(-,root,root)
|
|
|
%{_bindir}/fetchmailconf
|
|
|
%{python_sitelib}/fetchmailconf.py*
|
|
|
%{_mandir}/man1/fetchmailconf.1*
|
|
|
+%endif
|
|
|
|
|
|
%changelog
|
|
|
+* Fri May 01 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.4.4-1
|
|
|
+- new upstream release.
|
|
|
+- added systemd support (disabled as default).
|
|
|
+- dropped R:smtpdaemon.
|
|
|
+
|
|
|
+* Fri Oct 04 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.4.1-1
|
|
|
+- new upstream release.
|
|
|
+- disabled to build fetchmailconf as default.
|
|
|
+
|
|
|
* Mon Nov 05 2018 Toshiaki Ara <ara_t@384.jp> 6.3.26-3
|
|
|
- rebuild with openssl-1.1.1
|
|
|
|