forked from pool/fetchmail
da45cb295f
checked in (request 38214) OBS-URL: https://build.opensuse.org/request/show/38214 OBS-URL: https://build.opensuse.org/package/show/server:mail/fetchmail?expand=0&rev=21
173 lines
5.2 KiB
RPMSpec
173 lines
5.2 KiB
RPMSpec
#
|
|
# spec file for package fetchmail (Version 6.3.16)
|
|
#
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: fetchmail
|
|
BuildRequires: ed openssl-devel opie postfix procmail pwdutils python-devel
|
|
%if 0%{?suse_version} > 1000
|
|
%define with_krb5 1
|
|
%endif
|
|
%if 0%{?with_krb5}
|
|
BuildRequires: krb5-devel
|
|
%endif
|
|
License: GPLv2+ ; Other uncritical OpenSource License ; Public Domain, Freeware
|
|
Group: Productivity/Networking/Email/Utilities
|
|
AutoReqProv: on
|
|
Version: 6.3.16
|
|
Release: 2
|
|
Source: %{name}-%{version}.tar.bz2
|
|
Source1: %{name}.init
|
|
Source2: %{name}.logrotate
|
|
Source3: sysconfig.%{name}
|
|
Patch0: fetchmail-6.3.8-smtp_errors.patch
|
|
PreReq: %insserv_prereq %fillup_prereq coreutils pwdutils
|
|
Url: http://fetchmail.berlios.de/
|
|
Icon: fetchmail.xpm
|
|
Requires: smtp_daemon logrotate
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Summary: Full-Featured POP and IMAP Mail Retrieval Daemon
|
|
|
|
%description
|
|
Fetchmail is a 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).
|
|
|
|
Fetchmail retrieves mail from remote mail servers and forwards it to
|
|
your local machine's delivery system, so it can be read by normal mail
|
|
user agents, such as mutt, elm, pine, (x)emacs/gnus, or mailx.
|
|
|
|
fetchmailconf, an interactive GUI configurator suitable for end-users,
|
|
is included in the fetchmailconf package.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Eric S. Raymond <esr@snark.thyrsus.com>
|
|
Matthias Andree <matthias.andree@gmx.de>
|
|
Carl E. Harris <ceharris@mal.com>
|
|
George M. Sipe <gsipe@pobox.com>
|
|
Sunil Shetye <shetye@bombay.retortsoft.com>
|
|
|
|
%package -n fetchmailconf
|
|
License: GPLv2+
|
|
Summary: Fetchmail Configuration Utility
|
|
Group: Productivity/Networking/Email/Utilities
|
|
Requires: %{name} = %{version} python-tk
|
|
|
|
%description -n fetchmailconf
|
|
A GUI configuration utility for generating fetchmail configuration
|
|
files (.fetchmailrc).
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Eric S. Raymond <esr@snark.thyrsus.com>
|
|
Matthias Andree <matthias.andree@gmx.de>
|
|
Carl E. Harris <ceharris@mal.com>
|
|
George M. Sipe <gsipe@pobox.com>
|
|
Sunil Shetye <shetye@bombay.retortsoft.com>
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
cp -a %{S:1} %{S:2} %{S:3} .
|
|
|
|
%build
|
|
%if %suse_version > 1010
|
|
ACLOCAL="aclocal -I m4 -I m4-local" autoreconf -f -i
|
|
%endif
|
|
if [ -f /usr/%_lib/libkrb5.so ] ; then
|
|
GSS="--with-gssapi"
|
|
else
|
|
GSS=""
|
|
fi
|
|
%configure\
|
|
--enable-POP2\
|
|
--enable-RPA\
|
|
--enable-NTLM\
|
|
--enable-SDPS\
|
|
--enable-opie\
|
|
%if 0%{?with_krb5}
|
|
--with-kerberos5\
|
|
$GSS\
|
|
%endif
|
|
--with-ssl=/usr
|
|
make %{?jobs:-j%jobs}
|
|
|
|
%install
|
|
%makeinstall
|
|
ln -sf fetchmail.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1/fetchmailconf.1.gz
|
|
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
|
|
cp fetchmail.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/fetchmail
|
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
|
mkdir -p $RPM_BUILD_ROOT/sbin
|
|
cp fetchmail.init $RPM_BUILD_ROOT/etc/init.d/fetchmail
|
|
chmod +x $RPM_BUILD_ROOT/etc/init.d/fetchmail
|
|
ln -s ../etc/init.d/fetchmail $RPM_BUILD_ROOT/sbin/rcfetchmail
|
|
touch $RPM_BUILD_ROOT%{_sysconfdir}/fetchmailrc
|
|
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
|
|
cp sysconfig.%{name} $RPM_BUILD_ROOT/var/adm/fillup-templates
|
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log
|
|
touch $RPM_BUILD_ROOT%{_localstatedir}/log/fetchmail
|
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/fetchmail
|
|
%find_lang %{name}
|
|
|
|
%pre
|
|
usr/sbin/useradd -r -o -g daemon -s /bin/false \
|
|
-c "mail retrieval daemon" -d /var/lib/fetchmail fetchmail 2>/dev/null || :
|
|
|
|
%post
|
|
%{fillup_and_insserv}
|
|
# Ensure that all files are readable by fetchmail with non-root UID.
|
|
touch var/log/fetchmail
|
|
chown fetchmail var/log/fetchmail
|
|
chmod 0600 var/log/fetchmail
|
|
|
|
%postun
|
|
%{insserv_cleanup}
|
|
if [ $1 == 0 ]; then
|
|
rm -rf var/lib/fetchmail
|
|
fi
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-, root, root)
|
|
%doc COPYING FAQ FEATURES NEWS NOTES OLDNEWS README README.NTLM README.SSL README.SSL-SERVER TODO contrib *.html *.txt *.pdf
|
|
%{_bindir}/fetchmail
|
|
%dir %attr (0700, fetchmail, root) %{_localstatedir}/lib/fetchmail
|
|
%ghost %attr (0600, fetchmail, root) %{_localstatedir}/log/fetchmail
|
|
%doc %{_mandir}/man1/fetchmail.1.gz
|
|
%ghost %config(noreplace) %attr (0600, fetchmail, root) %{_sysconfdir}/fetchmailrc
|
|
%config(noreplace) /etc/logrotate.d/fetchmail
|
|
/etc/init.d/fetchmail
|
|
/sbin/rcfetchmail
|
|
/var/adm/fillup-templates/sysconfig.%{name}
|
|
|
|
%files -n fetchmailconf
|
|
%defattr(-, root, root)
|
|
%{_bindir}/fetchmailconf
|
|
%doc %{_mandir}/man1/fetchmailconf.1.gz
|
|
%{python_sitelib}/fetchmailconf.*
|
|
|
|
%changelog
|