|
|
de6d2a4 |
Name: pypolicyd-spf
|
|
|
7769b11 |
Version: 1.3.1
|
|
|
b8a3eec |
Release: 4%{?dist}
|
|
|
de6d2a4 |
Summary: SPF Policy Server for Postfix (Python implementation)
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
License: ASL 2.0
|
|
|
de6d2a4 |
URL: https://launchpad.net/%{name}
|
|
|
7769b11 |
Source0: https://launchpad.net/%{name}/1.3/%{version}/+download/%{name}-%{version}.tar.gz
|
|
|
de6d2a4 |
|
|
|
c36aee4 |
Patch0: pypolicyd-spf-1.3.1-ipaddress.patch
|
|
|
c36aee4 |
|
|
|
de6d2a4 |
BuildArch: noarch
|
|
|
c36aee4 |
Requires: postfix, python-pyspf, python-ipaddress
|
|
|
de6d2a4 |
BuildRequires: python2-devel
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
%description
|
|
|
de6d2a4 |
pypolicyd-spf is a Postfix policy engine for Sender Policy Framework (SPF)
|
|
|
de6d2a4 |
checking. It is implemented in pure Python and uses the python-spf (pyspf)
|
|
|
de6d2a4 |
module.
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
This SPF policy server implementation provides flexible options for different
|
|
|
de6d2a4 |
receiver policies and sender whitelisting to enable it to support a very wide
|
|
|
de6d2a4 |
range of requirements.
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
%prep
|
|
|
de6d2a4 |
%setup -q
|
|
|
c36aee4 |
%patch0 -p1 -b .ipaddress
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
%build
|
|
|
de6d2a4 |
%{__python} setup.py build
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
%install
|
|
|
53c22d2 |
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
de6d2a4 |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
de6d2a4 |
# We want the binary in Postfix libexec directory
|
|
|
53c22d2 |
%{__mkdir_p} $RPM_BUILD_ROOT%{_libexecdir}/postfix
|
|
|
53c22d2 |
%{__mv} $RPM_BUILD_ROOT%{_bindir}/policyd-spf $RPM_BUILD_ROOT%{_libexecdir}/postfix
|
|
|
53c22d2 |
%{__sed} -i -e 's/^HELO_reject = SPF_Not_Pass$/HELO_reject = Fail/' \
|
|
|
53c22d2 |
$RPM_BUILD_ROOT%{_sysconfdir}/python-policyd-spf/policyd-spf.conf
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
%files
|
|
|
de6d2a4 |
%doc README README.per_user_whitelisting CHANGES COPYING
|
|
|
de6d2a4 |
%doc policyd-spf.conf.commented
|
|
|
de6d2a4 |
%dir %{_sysconfdir}/python-policyd-spf
|
|
|
de6d2a4 |
%config(noreplace) %{_sysconfdir}/python-policyd-spf/policyd-spf.conf
|
|
|
de6d2a4 |
%{_libexecdir}/postfix/policyd-spf
|
|
|
de6d2a4 |
%{_mandir}/man1/*
|
|
|
de6d2a4 |
%{_mandir}/man5/*
|
|
|
de6d2a4 |
%{python_sitelib}/*
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
%changelog
|
|
|
b8a3eec |
* Thu Dec 1 2015 Bojan Smojver <bojan@rexursive.com> 1.3.1-4
|
|
|
b8a3eec |
- bump the release number to rebuild
|
|
|
b8a3eec |
|
|
|
c36aee4 |
* Thu Jun 18 2015 Bojan Smojver <bojan@rexursive.com> 1.3.1-3
|
|
|
b8a3eec |
- use python-ipaddress instead of python-ipaddr
|
|
|
c36aee4 |
|
|
|
53c22d2 |
* Wed Oct 1 2014 Bojan Smojver <bojan@rexursive.com> 1.3.1-2
|
|
|
53c22d2 |
- fix bug #1138206
|
|
|
53c22d2 |
|
|
|
7769b11 |
* Fri Sep 5 2014 Bojan Smojver <bojan@rexursive.com> 1.3.1-1
|
|
|
7769b11 |
- bump up to 1.3.1
|
|
|
7769b11 |
|
|
|
4b38cdf |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
|
|
|
4b38cdf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
4b38cdf |
|
|
|
de6d2a4 |
* Wed Aug 7 2013 Bojan Smojver <bojan@rexursive.com> 1.2-3
|
|
|
de6d2a4 |
- own the config dir
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
* Wed Aug 7 2013 Bojan Smojver <bojan@rexursive.com> 1.2-2
|
|
|
de6d2a4 |
- address issues from package review
|
|
|
de6d2a4 |
- specify python_sitelib only for EL5 or less
|
|
|
de6d2a4 |
- explicitly depend on python2-devel
|
|
|
de6d2a4 |
- remove CFLAGS
|
|
|
de6d2a4 |
- do not specify the whole directory as noreplace, but config file instead
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
* Tue Aug 6 2013 Bojan Smojver <bojan@rexursive.com> 1.2-1
|
|
|
de6d2a4 |
- bump up to 1.2
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
* Thu May 16 2013 Bojan Smojver <bojan@rexursive.com> 1.1.2-3
|
|
|
de6d2a4 |
- fix changelog
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
* Tue May 14 2013 Bojan Smojver <bojan@rexursive.com> 1.1.2-2
|
|
|
de6d2a4 |
- use macros in URLs
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
* Sun May 12 2013 Bojan Smojver <bojan@rexursive.com> 1.1.2-1
|
|
|
de6d2a4 |
- bump up to 1.1.2
|
|
|
de6d2a4 |
- use version macro in source
|
|
|
de6d2a4 |
- require postfix
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
* Fri Mar 15 2013 Bojan Smojver <bojan@rexursive.com> 1.1-1
|
|
|
de6d2a4 |
- initial release
|