From a5d63f9bb723fb8298e4f401245722b75ac65d42 Mon Sep 17 00:00:00 2001 From: Vitezslav Crhonek Date: Mon, 21 Mar 2022 11:27:36 +0100 Subject: [PATCH] Remove example config file and service unit Include systemd related documentation from upstream contrib directory instead. Resolves: #2027047 Signed-off-by: Vitezslav Crhonek --- fetchmail.service | 11 ----------- fetchmail.spec | 21 +++++---------------- fetchmailrc.example | 2 -- 3 files changed, 5 insertions(+), 29 deletions(-) delete mode 100644 fetchmail.service delete mode 100644 fetchmailrc.example diff --git a/fetchmail.service b/fetchmail.service deleted file mode 100644 index f59312c..0000000 --- a/fetchmail.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=A remote-mail retrieval utility -After=local-fs.target network.target - -[Service] -User=mail -ExecStart=/usr/bin/fetchmail -d 300 --fetchmailrc /etc/fetchmailrc.example -RestartSec=1 - -[Install] -WantedBy=multi-user.target diff --git a/fetchmail.spec b/fetchmail.spec index 5f466a3..3c45e6f 100644 --- a/fetchmail.spec +++ b/fetchmail.spec @@ -4,14 +4,10 @@ Version: 6.4.29 Release: 1%{?dist} 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: GPL+ and Public Domain -BuildRequires: gcc gettext-devel krb5-devel openssl-devel systemd python3-devel +BuildRequires: gcc gettext-devel krb5-devel openssl-devel python3-devel BuildRequires: make %description @@ -38,14 +34,6 @@ make %install make install DESTDIR=$RPM_BUILD_ROOT -# install example systemd unit -mkdir -p $RPM_BUILD_ROOT%{_unitdir} -install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir}/fetchmail.service - -# install example config file -mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} -install -p -m 600 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/fetchmailrc.example - # remove fetchmailconf stuff rm -f $RPM_BUILD_ROOT%{_bindir}/fetchmailconf* rm -f $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1* @@ -55,15 +43,16 @@ rm -f $RPM_BUILD_ROOT%{python3_sitelib}/__pycache__/fetchmailconf* %find_lang %name %files -f %{name}.lang -%doc COPYING FAQ FEATURES NEWS NOTES README README.SSL TODO +%doc COPYING FAQ FEATURES NEWS NOTES README README.SSL TODO contrib/systemd %{_bindir}/fetchmail %{_mandir}/man1/fetchmail.1* -%{_unitdir}/fetchmail.service -%config(noreplace) %attr(0600, mail, mail) %{_sysconfdir}/fetchmailrc.example %changelog * Mon Mar 21 2022 Vitezslav Crhonek - 6.4.29-1 - Update to fetchmail-6.4.29 +- Remove example config file and service unit, include systemd related + documentation from upstream contrib directory + Resolves: #2027047 * Thu Mar 17 2022 Vitezslav Crhonek - 6.4.28-1 - Update to fetchmail-6.4.28 diff --git a/fetchmailrc.example b/fetchmailrc.example deleted file mode 100644 index e6c2c12..0000000 --- a/fetchmailrc.example +++ /dev/null @@ -1,2 +0,0 @@ -#poll pop.domain.com proto pop3 -# user 'user1' there with password 'secret' is user1 here