%define versionmajor 7 %define versionminor 0 %define versionpatch 0 %define prerel alpha11 %if 0%{!?mkrel:1} %define mkrel(c) %{1}%{?dist} %endif Summary: Full-featured POP/IMAP mail retrieval daemon Name: fetchmail Version: %{versionmajor}.%{versionminor}.%{versionpatch} Release: %mkrel 0.%{prerel}.1 License: GPLv2 Group: Networking/Mail URL: https://www.fetchmail.info %if 0%{?prerel:1} Source0: https://gitlab.com/fetchmail/fetchmail/-/archive/%{version}-%{prerel}/%{name}-%{version}-%{prerel}.tar.bz2 %else Source0: https://gitlab.com/fetchmail/fetchmail/-/archive/%{version}/%{name}-%{version}.tar.xz Source2: https://gitlab.com/fetchmail/fetchmail/-/archive/%{version}/%{name}-%{version}.tar.xz.asc %endif Source4: fetchmail.sysconfig Source5: fetchmail.service # From OpenSUSE Patch100: fetchmail-6.3.8-smtp_errors.patch %if 0%{!?_unitdir:1} %define _unitdir %{_prefix}/lib/systemd/system %endif BuildRequires: autoconf >= 2.71 BuildRequires: automake BuildRequires: libtool BuildRequires: (gcc or clang) BuildRequires: bison BuildRequires: flex BuildRequires: gettext BuildRequires: gettext-devel BuildRequires: lynx BuildRequires: (pkgconfig(openssl) >= 3.0.9) BuildRequires: pkgconfig(krb5) BuildRequires: python3 # By default, fetchmail sends the mail to a local mail server. Requires: (mail-server or postfix or exim or sendmail) # The mail server will then send the mail to a delivery agent (based on # ~/.forward). The delivery agent can also be used directly. Requires: (MailTransportAgent or maildrop or procmail) # Not much use without a mail client. Elmo and alpine are the modern clones of # elm and pine, respectively. Recommends: (mailx or mutt or neomutt or elmo or alpine) Obsoletes: fetchyahoo < 2.14.9-2 %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 all standard mail-retrieval protocols in use on the Internet: POP3, IMAP4rev1 (also IMAP4), ETRN, and ODMR. On the output side, fetchmail supports ESMTP/SMTP, LMTP, and invocation of a local delivery agent. Fetchmail also fully supports authentication via GSSAPI, Kerberos 5, RFC1938 one-time passwords, Compuserve's POP3 with RPA, Microsoft's NTLM, Demon Internet's SDPS, or CRAM-MD5 authentication a la RFC2195. Fetchmail supports end-to-end encryption with OpenSSL or wolfSSL. Do read README.SSL for details on fetchmail's configuration and README.SSL-SERVER for server-side requirements. %package daemon Summary: SySV init script for demonize fetchmail for retrieving emails Group: System/Base Requires: %{name} = %{version} Requires(preun): rpm-helper Requires(post): rpm-helper %description daemon Systemd service for fetchmail for sucking emails. %prep %autosetup -p1 -n %{name}-%{version}%{?prerel:-%{prerel}} %build # Just sets up CFLAGS; fetchmail should compile fine without them. %{?serverbuild} autoreconf --force --install %configure \ --enable-RPA \ --enable-NTLM \ --enable-SDPS \ --with-gssapi \ --with-kerberos5 \ --with-ssl=%{_prefix} \ --with-python=%{_prefix}/python3 # (tv) do not use %%make in order to workaround buggy parallel build: %__make all FAQ FEATURES NOTES %install %make_install mkdir -p \ %{buildroot}{%_sysconfdir/sysconfig,%_mandir/man1,%_unitdir} install -m0644 %SOURCE4 %{buildroot}%{_sysconfdir}/sysconfig/fetchmail install -m0755 %SOURCE5 %{buildroot}%{_unitdir}/fetchmail.service echo -e "# Put here each user config\n" > %{buildroot}/etc/fetchmailrc %find_lang %name %post -n fetchmail-daemon %_post_service fetchmail %postun -n fetchmail-daemon %_preun_service fetchmail %files -f %name.lang %doc FAQ FEATURES NOTES %doc INSTALL NEWS README* %doc contrib fetchmail-features.html fetchmail-FAQ.html design-notes.html %license COPYING %attr(2755, root, mail) %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %files daemon %attr(600,mail,mail) %config(noreplace,missingok) %{_sysconfdir}/%{name}rc %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %{_unitdir}/%{name}.service %changelog * Wed Dec 08 2021 neoclust 6.4.24-1.mga8 + Revision: 1761230 - New version 6.4.24: Fixes CVE-2021-39272 (mga#29420) - Add P100: Fixes CVE-2021-36386 (mga#29297) + tmb - fix CVE-2021-36386 regression (mga#29349) * Sun Jul 19 2020 wally 6.4.8-4.mga8 + Revision: 1607191 - increase systemd service default polling interval to 300 seconds * Sat Jul 18 2020 wally 6.4.8-3.mga8 + Revision: 1607010 - drop norootwarning patch - log to syslog when used as a systemd service * Sat Jul 18 2020 wally 6.4.8-2.mga8 + Revision: 1606903 - switch from old init script to systemd service (mga#26969) * Sat Jul 18 2020 wally 6.4.8-1.mga8 + Revision: 1606898 - new version 6.4.8 * Wed Mar 25 2020 danf 6.4.2-1.mga8 + Revision: 1559577 - Upgraded to 6.4.2 + umeabot - Mageia 8 Mass Rebuild + wally - replace deprecated %%configure2_5x