Remove EPEL 7 build-time support

This commit is contained in:
Robert Scheck 2024-08-23 17:43:02 +02:00
commit 7f233a43af

View file

@ -25,7 +25,6 @@ Summary: Python module to compress an unsorted list of IPv4 and IPv6 pref
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-py-radix >= 0.10.0
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}}
%{?el7:Requires:python%{python3_pkgversion}-py-radix >= 0.10.0}
%endif
%description -n python%{python3_pkgversion}-%{name}
@ -57,7 +56,6 @@ filters.
%else
%py3_install
%{?el8:%py3_shebang_fix $RPM_BUILD_ROOT%{_bindir}/%{name}}
%{?el7:pathfix.py -pni "%{__python3} %{py3_shbang_opts}" $RPM_BUILD_ROOT%{_bindir}/%{name}}
%endif
# Correct man page installation path
@ -69,11 +67,7 @@ sed -e '1{\|^#![[:space:]]*/|d}' -i $RPM_BUILD_ROOT%{python3_sitelib}/%{name}/%{
touch -c -r %{name}/%{name}.py $RPM_BUILD_ROOT%{python3_sitelib}/%{name}/%{name}.py
%check
%if 0%{?rhel} && 0%{?rhel} < 8
PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitelib} pytest-3
%else
%pytest
%endif
%files
%doc README.md