2024-01-06 10:39:12 +01:00
|
|
|
%define majver %(echo %version | cut -d. -f1-2)
|
2024-01-06 10:39:12 +01:00
|
|
|
Name: pypolicyd-spf
|
2024-01-06 10:39:12 +01:00
|
|
|
Version: 2.0.2
|
|
|
|
Release: 1mamba
|
2024-01-06 10:39:12 +01:00
|
|
|
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/
|
2024-01-06 10:39:12 +01:00
|
|
|
Source: https://launchpad.net/pypolicyd-spf/%{majver}/%{version}/+download/pypolicyd-spf-%{version}.tar.gz
|
|
|
|
Patch0: pypolicy-spf-1.3.2-python2.patch
|
2024-01-06 10:39:12 +01:00
|
|
|
License: GPL, Apache License 2.0
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-06 10:39:12 +01:00
|
|
|
BuildRequires: libpython3-devel
|
|
|
|
BuildRequires: python3dist(pyspf)
|
2024-01-06 10:39:12 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 10:39:12 +01:00
|
|
|
Requires: python3dist(pyspf)
|
2024-01-06 10:39:12 +01:00
|
|
|
|
|
|
|
%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
|
2024-01-06 10:39:12 +01:00
|
|
|
#%patch0 -p1
|
2024-01-06 10:39:12 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 10:39:12 +01:00
|
|
|
CFLAGS="%{optflags}" %{__python3} setup.py build
|
2024-01-06 10:39:12 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 10:39:12 +01:00
|
|
|
%{__python3} setup.py install \
|
2024-01-06 10:39:12 +01:00
|
|
|
-O1 --skip-build \
|
|
|
|
--root="%{buildroot}" \
|
|
|
|
--install-headers=%{_includedir}/python \
|
2024-01-06 10:39:12 +01:00
|
|
|
--install-lib=%{python3_sitearch} \
|
2024-01-06 10:39:12 +01:00
|
|
|
--record=%{name}.filelist
|
|
|
|
|
|
|
|
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
|
|
|
|
|
|
|
%files -f %{name}.filelist
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 10:39:12 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/python-policyd-spf/policyd-spf.conf
|
2024-01-06 10:39:12 +01:00
|
|
|
%doc COPYING
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 10:39:12 +01:00
|
|
|
* Tue Dec 07 2021 Automatic Build System <autodist@mambasoft.it> 2.0.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:39:12 +01:00
|
|
|
* Wed Mar 16 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.2-2mamba
|
|
|
|
- require python-ipaddr
|
|
|
|
|
2024-01-06 10:39:12 +01:00
|
|
|
* 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
|
|
|
|
|
2024-01-06 10:39:12 +01:00
|
|
|
* Wed May 20 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.1-1mamba
|
|
|
|
- package created using the webbuild interface
|