|
|
de6d2a4 |
%if 0%{?rhel} && 0%{?rhel} <= 5
|
|
|
de6d2a4 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
de6d2a4 |
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
de6d2a4 |
%endif
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
Name: pypolicyd-spf
|
|
|
de6d2a4 |
Version: 1.2
|
|
|
de6d2a4 |
Release: 3%{?dist}
|
|
|
de6d2a4 |
Summary: SPF Policy Server for Postfix (Python implementation)
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
License: ASL 2.0
|
|
|
de6d2a4 |
URL: https://launchpad.net/%{name}
|
|
|
de6d2a4 |
Source0: https://launchpad.net/%{name}/1.2/%{version}/+download/%{name}-%{version}.tar.gz
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
BuildArch: noarch
|
|
|
de6d2a4 |
Requires: postfix, python-pyspf, python-ipaddr
|
|
|
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
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
%build
|
|
|
de6d2a4 |
%{__python} setup.py build
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
|
|
|
de6d2a4 |
%install
|
|
|
de6d2a4 |
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
|
|
|
de6d2a4 |
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/postfix
|
|
|
de6d2a4 |
mv $RPM_BUILD_ROOT%{_bindir}/policyd-spf $RPM_BUILD_ROOT%{_libexecdir}/postfix
|
|
|
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
|
|
|
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
|