From 506e200531c459ee7f77acba5035c39fdebc2d41 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:39:12 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.3.1-1mamba;Wed May 20 2015] --- README.md | 3 +++ pypolicyd-spf.spec | 47 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 pypolicyd-spf.spec diff --git a/README.md b/README.md index de0b51c..7f382bb 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # pypolicyd-spf +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. Updated for RFC 7208. + diff --git a/pypolicyd-spf.spec b/pypolicyd-spf.spec new file mode 100644 index 0000000..b2480bf --- /dev/null +++ b/pypolicyd-spf.spec @@ -0,0 +1,47 @@ +Name: pypolicyd-spf +Version: 1.3.1 +Release: 1mamba +Summary: A Postfix policy engine for Sender Policy Framework (SPF) checking +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://launchpad.net/pypolicyd-spf/ +Source: https://launchpad.net/pypolicyd-spf/%{version}.3.1/+download/pypolicyd-spf-%{version}.tar.gz +License: GPL, Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython-devel +## AUTOBUILDREQ-END +Requires: python >= %python_version +Requires: pyspf +Requires: python-ipaddr +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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. Updated for RFC 7208. + +%prep +%setup -q + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/python \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist + +%files -f %{name}.filelist +%defattr(-,root,root) +%doc COPYING + +%changelog +* Wed May 20 2015 Silvan Calarco 1.3.1-1mamba +- package created using the webbuild interface