pypolicyd-spf/pypolicyd-spf.spec

55 lines
1.7 KiB
RPMSpec
Raw Normal View History

%define majver %(echo %version | cut -d. -f1-2)
Name: pypolicyd-spf
Version: 1.3.2
Release: 1mamba
Summary: A Postfix policy engine for Sender Policy Framework (SPF) checking
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://launchpad.net/pypolicyd-spf/
Source: https://launchpad.net/pypolicyd-spf/%{majver}/%{version}/+download/pypolicyd-spf-%{version}.tar.gz
Patch0: pypolicy-spf-1.3.2-python2.patch
License: GPL, Apache License 2.0
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython-devel
## AUTOBUILDREQ-END
Requires: python >= %python_version
Requires: pyspf
Requires: python-ipaddress
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
%patch0 -p1
%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
* Thu Dec 10 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.2-1mamba
- update to 1.3.2
- patch for use with python-ipaddress with python2
* Wed May 20 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.1-1mamba
- package created using the webbuild interface