Remove example config file and service unit
Include systemd related documentation from upstream contrib directory instead. Resolves: #2027047 Signed-off-by: Vitezslav Crhonek <vcrhonek@redhat.com>
This commit is contained in:
parent
2224c5a217
commit
a5d63f9bb7
@ -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
|
@ -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 <vcrhonek@redhat.com> - 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 <vcrhonek@redhat.com> - 6.4.28-1
|
||||
- Update to fetchmail-6.4.28
|
||||
|
@ -1,2 +0,0 @@
|
||||
#poll pop.domain.com proto pop3
|
||||
# user 'user1' there with password 'secret' is user1 here
|
Loading…
Reference in New Issue
Block a user