[pypolicyd-spf] Initial package release.

bojan bojan at fedoraproject.org
Fri Aug 9 11:40:12 UTC 2013


commit de6d2a4525ef677abc722acb3160d4d46aca3bfe
Author: Bojan Smojver <bojan at rexursive.com>
Date:   Fri Aug 9 21:39:56 2013 +1000

    Initial package release.

 .gitignore         |    1 +
 pypolicyd-spf.spec |   80 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 82 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5cb47e8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pypolicyd-spf-1.2.tar.gz
diff --git a/pypolicyd-spf.spec b/pypolicyd-spf.spec
new file mode 100644
index 0000000..3e18489
--- /dev/null
+++ b/pypolicyd-spf.spec
@@ -0,0 +1,80 @@
+%if 0%{?rhel} && 0%{?rhel} <= 5
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+Name:           pypolicyd-spf
+Version:        1.2
+Release:        3%{?dist}
+Summary:        SPF Policy Server for Postfix (Python implementation)
+
+License:        ASL 2.0
+URL:            https://launchpad.net/%{name}
+Source0:        https://launchpad.net/%{name}/1.2/%{version}/+download/%{name}-%{version}.tar.gz
+
+BuildArch:      noarch
+Requires:       postfix, python-pyspf, python-ipaddr
+BuildRequires:  python2-devel
+
+%description
+pypolicyd-spf is a Postfix policy engine for Sender Policy Framework (SPF)
+checking. It is implemented in pure Python and uses the python-spf (pyspf)
+module.
+
+This SPF policy server implementation provides flexible options for different
+receiver policies and sender whitelisting to enable it to support a very wide
+range of requirements.
+
+%prep
+%setup -q
+
+
+%build
+%{__python} setup.py build
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+# We want the binary in Postfix libexec directory
+mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/postfix
+mv $RPM_BUILD_ROOT%{_bindir}/policyd-spf $RPM_BUILD_ROOT%{_libexecdir}/postfix
+ 
+%files
+%doc README README.per_user_whitelisting CHANGES COPYING
+%doc policyd-spf.conf.commented
+%dir %{_sysconfdir}/python-policyd-spf
+%config(noreplace) %{_sysconfdir}/python-policyd-spf/policyd-spf.conf
+%{_libexecdir}/postfix/policyd-spf
+%{_mandir}/man1/*
+%{_mandir}/man5/*
+%{python_sitelib}/*
+
+
+%changelog
+* Wed Aug  7 2013 Bojan Smojver <bojan at rexursive.com> 1.2-3
+- own the config dir
+
+* Wed Aug  7 2013 Bojan Smojver <bojan at rexursive.com> 1.2-2
+- address issues from package review
+- specify python_sitelib only for EL5 or less
+- explicitly depend on python2-devel
+- remove CFLAGS
+- do not specify the whole directory as noreplace, but config file instead
+
+* Tue Aug  6 2013 Bojan Smojver <bojan at rexursive.com> 1.2-1
+- bump up to 1.2
+
+* Thu May 16 2013 Bojan Smojver <bojan at rexursive.com> 1.1.2-3
+- fix changelog
+
+* Tue May 14 2013 Bojan Smojver <bojan at rexursive.com> 1.1.2-2
+- use macros in URLs
+
+* Sun May 12 2013 Bojan Smojver <bojan at rexursive.com> 1.1.2-1
+- bump up to 1.1.2
+- use version macro in source
+- require postfix
+
+* Fri Mar 15 2013 Bojan Smojver <bojan at rexursive.com> 1.1-1
+- initial release
diff --git a/sources b/sources
index e69de29..28d4595 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0899572d5e63f3bb3faa9041cf58020e  pypolicyd-spf-1.2.tar.gz


More information about the scm-commits mailing list