forked from pool/python-snimpy
- Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-snimpy?expand=0&rev=18
This commit is contained in:
@@ -33,24 +33,19 @@ BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libsmi-devel
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module cffi >= 1.0.0}
|
||||
BuildRequires: %{python_module pysnmp >= 5}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
%if 0%{?suse_version} >= 1699
|
||||
# The classic "if %%python-base > 3.11" made the build unresolvable (at least for me). Sorry for this, feel free to rewrite.
|
||||
BuildRequires: python312-pyasyncore
|
||||
%endif
|
||||
# /SECTION
|
||||
Requires: python-cffi >= 1.0.0
|
||||
Requires: python-pysnmp >= 5
|
||||
Requires: python-setuptools
|
||||
%if 0%{?python_version_nodots} > 311
|
||||
Requires: python-pyasyncore
|
||||
%endif
|
||||
Requires: (python-pyasyncore if python-base > 3.11)
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module cffi >= 1.0.0}
|
||||
BuildRequires: %{python_module pyasyncore if %python-base > 3.11}
|
||||
BuildRequires: %{python_module pysnmp >= 5}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
|
Reference in New Issue
Block a user