diff --git a/python-dnspython.spec b/python-dnspython.spec index b87f4a7..4b1af40 100644 --- a/python-dnspython.spec +++ b/python-dnspython.spec @@ -1,6 +1,6 @@ Name: python-dnspython Version: 2.1.0 -Release: 1mamba +Release: 2mamba Summary: A DNS toolkit for Python Group: System/Libraries Vendor: openmamba @@ -10,16 +10,16 @@ URL: https://www.dnspython.org/ Source: https://pypi.debian.net/dnspython/dnspython-%{version}.zip License: ISC ## AUTOBUILDREQ-BEGIN -## note: run 'autospec -u -a6 python-dnspython' to get the list of build requirements. +BuildRequires: libpython3-devel ## AUTOBUILDREQ-END -BuildRequires: libpython-devel -Requires: python >= %python_version -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description %{summary}. %if 0%{?with_pyver} +%py_requires_append \ +Provides: dnspython +Obsoletes: dnspython <= 1.10.0 %pyver_package %endif @@ -38,18 +38,18 @@ CFLAGS="%{optflags}" %{__python} setup.py build --install-lib=%{python_sitearch} \ --record=%{name}.filelist -sed -i "s,.*/man/.*,&.gz," %{name}.filelist +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) -## note: this list is just an example; modify as required -# %{python_sitearch}/%{name}.py* -# %{python_sitearch}/%{name}.so +%dir %{python_sitearch}/dnspython-%{version}-py*.egg-info +%{python_sitearch}/dnspython-%{version}-py*.egg-info/* %doc LICENSE -## note: add extra documentation (if any) -# %doc README.md %changelog +* Mon Apr 05 2021 Silvan Calarco 2.1.0-2mamba +- obsolete dnspython + * Sun Feb 21 2021 Automatic Build System 2.1.0-1mamba - automatic version update by autodist