2024-01-05 16:22:48 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2-)
|
|
|
|
Name: python-py3dns
|
2024-02-26 16:43:34 +01:00
|
|
|
Version: 4.0.1
|
|
|
|
Release: 1mamba
|
2024-01-05 16:22:48 +01:00
|
|
|
Summary: Python 3 DNS library
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://launchpad.net/py3dns
|
|
|
|
Source: https://pypi.debian.net/py3dns/py3dns-%{version}.tar.gz
|
|
|
|
License: Python Software Foundation License
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-05 16:22:48 +01:00
|
|
|
BuildRequires: libpython311-devel
|
2024-01-05 16:22:48 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 16:22:48 +01:00
|
|
|
BuildRequires: python3-devel >= 3.11.5-3mamba
|
2024-01-05 16:22:48 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%if 0%{?with_pyver}
|
|
|
|
%define py_requires_append \
|
|
|
|
Obsoletes: pydns <= 2.3.6
|
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n py3dns-%{version}
|
|
|
|
|
2024-01-05 16:22:48 +01:00
|
|
|
|
|
|
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
2024-01-05 16:22:48 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 16:22:48 +01:00
|
|
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
|
|
|
|
|
|
|
#%if "%{?with_pyver}" != "3"
|
|
|
|
## Rename any conflicting file outside of python site packages tree
|
|
|
|
#for f in %{_bindir}/jsonschema; do
|
|
|
|
# mv %{buildroot}${f}{,-%{?pyappend}}
|
|
|
|
#done
|
|
|
|
#%endif
|
|
|
|
|
|
|
|
%files %{?pyappend}
|
2024-01-05 16:22:48 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-05 16:22:48 +01:00
|
|
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
|
|
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
|
|
|
%dir %{python_sitelib}/DNS
|
|
|
|
%{python_sitelib}/DNS/*
|
2024-01-05 16:22:48 +01:00
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2024-02-26 16:43:34 +01:00
|
|
|
* Mon Feb 26 2024 Automatic Build System <autodist@openmamba.org> 4.0.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:22:48 +01:00
|
|
|
* Fri Sep 29 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.0-2mamba
|
|
|
|
- rebuilt with python3 == 3.11
|
|
|
|
|
2024-01-05 16:22:48 +01:00
|
|
|
* Mon Sep 04 2023 Automatic Build System <autodist@mambasoft.it> 4.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:22:48 +01:00
|
|
|
* Tue Dec 07 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.1-1mamba
|
|
|
|
- package created using the webbuild interface
|