pyspf/pyspf.spec

62 lines
1.8 KiB
RPMSpec
Raw Permalink Normal View History

%define pkgname pyspf
Name: pyspf
Version: 2.0.14
Release: 2mamba
Summary: SPF (Sender Policy Framework) implemented in Python.
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/sdgathman/pyspf/
Source: https://pypi.debian.net/pyspf/pyspf-%{version}.tar.gz
License: Python Software Foundation License
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
BuildRequires: python3dist(py3dns)
## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
%description
%{summary}.
%if 0%{?with_pyver}
%define py_requires_append \
Requires: python%{with_pyver}dist(py3dns)
%pyver_package
%endif
%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 %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info
%{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/*
%changelog
* Fri Sep 29 2023 Automatic Build System <autodist@mambasoft.it> 2.0.14-2mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
* Tue Dec 07 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.14-1mamba
- update to 2.0.14
* Thu Dec 10 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.12-1mamba
- update to 2.0.12
* Wed May 20 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.11-1mamba
- package created using the webbuild interface