fetchmail/fetchmail.spec

82 lines
2.7 KiB
RPMSpec
Raw Normal View History

2022-06-23 10:18:55 +08:00
Summary: A remote mail retrieval and forwarding utility
Name: fetchmail
Version: 6.4.30
Release: 1
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
Source1: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz.asc
# systemd service file
Source2: fetchmail.service
# example configuration file
Source3: fetchmailrc.example
URL: http://www.fetchmail.info/
# For a breakdown of the licensing, see COPYING
License: GPLv2+ and Public Domain
BuildRequires: gcc gettext-devel krb5-devel openssl-devel systemd python3-devel
BuildRequires: make
2019-12-14 18:54:03 +08:00
%description
2020-10-30 13:15:28 +08:00
Fetchmail is a remote mail retrieval and forwarding utility intended
for use over on-demand TCP/IP links, like SLIP or PPP connections.
Fetchmail supports every remote-mail protocol currently in use on the
Internet (POP2, POP3, RPOP, APOP, KPOP, all IMAPs, ESMTP ETRN, IPv6,
and IPSEC) for retrieval. Then Fetchmail forwards the mail through
SMTP so you can read it through your favorite mail client.
2022-06-23 10:18:55 +08:00
2020-10-30 13:15:28 +08:00
Install fetchmail if you need to retrieve mail over SLIP or PPP
connections.
2019-12-14 18:54:03 +08:00
%prep
2020-10-30 13:15:28 +08:00
%setup -q
2019-12-14 18:54:03 +08:00
%build
2020-10-30 13:15:28 +08:00
%configure --enable-POP3 --enable-IMAP --with-ssl --without-hesiod \
--enable-ETRN --enable-NTLM --enable-SDPS --enable-RPA \
--enable-nls --with-kerberos5 --with-gssapi \
--enable-fallback=no
2019-12-14 18:54:03 +08:00
make
%install
2020-10-30 13:15:28 +08:00
make install DESTDIR=$RPM_BUILD_ROOT
2022-06-23 10:18:55 +08:00
# install example systemd unit
2020-10-30 13:15:28 +08:00
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir}/fetchmail.service
2022-06-23 10:18:55 +08:00
# install example config file
2020-10-30 13:15:28 +08:00
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
install -p -m 600 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/fetchmailrc.example
2022-06-23 10:18:55 +08:00
# remove fetchmailconf stuff
2020-10-30 13:15:28 +08:00
rm -f $RPM_BUILD_ROOT%{_bindir}/fetchmailconf*
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1*
rm -f $RPM_BUILD_ROOT%{python3_sitelib}/fetchmailconf.py*
rm -f $RPM_BUILD_ROOT%{python3_sitelib}/__pycache__/fetchmailconf*
2022-06-23 10:18:55 +08:00
2020-10-30 13:15:28 +08:00
%find_lang %name
%files -f %{name}.lang
%doc COPYING FAQ FEATURES NEWS NOTES README README.SSL TODO
%{_bindir}/fetchmail
%{_mandir}/man1/fetchmail.1*
%{_unitdir}/fetchmail.service
2019-12-14 18:54:03 +08:00
%config(noreplace) %attr(0600, mail, mail) %{_sysconfdir}/fetchmailrc.example
%changelog
2022-06-23 10:18:55 +08:00
* Thu Jun 23 2022 tanyulong <tanyulong@kylinos.cn> - 6.4.30-1
- Update upstream version to 6.4.30
* Tue Sep 14 2021 yaoxin <yaoxin30@huawei.com> - 6.4.22-1
- Update to 6.4.22 for fix CVE-2021-39272
2021-08-10 16:04:13 +08:00
* Tue Aug 10 2021 houyingchao <houyingchao@huawei.com> - 6.4.21-1
- Update from 6.4.1 to 6.4.20
2020-10-30 13:15:28 +08:00
* Wed Oct 28 2020 jialei <jialei17@huawei.com> - 6.4.1-1
- update from 6.3.26 to 6.4.1
2020-09-08 09:57:57 +08:00
* Tue Sep 8 2020 baizhonggui <baizhonggui@huawei.com> - 6.3.26-24
- Modify Source0 and Source1.
2019-12-14 18:54:03 +08:00
* Thu Nov 28 2019 huyan <hu.huyan@huawei.com> - 6.3.26-23
- Package Initialization