From 6f2de14351dd0c80da553ff71048de590890dd28 Mon Sep 17 00:00:00 2001 From: rdobuilder Date: Jan 18 2022 14:06:30 +0000 Subject: Add requirement on importlib-metadata for CentOS 8 Required since version 0.6.2 for python < 3.8 [1]. [1] https://github.com/svinota/pyroute2/commit/a346c76569bed5b7b5d81b9ee299ae27d950a730 Related-to: https://review.rdoproject.org/r/q/I2f7b166bab7bdf43aec4ae56bdb746f65348b426 --- diff --git a/SPECS/python-pyroute2.spec b/SPECS/python-pyroute2.spec index c5e887d..3fdb74c 100644 --- a/SPECS/python-pyroute2.spec +++ b/SPECS/python-pyroute2.spec @@ -9,7 +9,7 @@ Name: python-%{srcname} Version: 0.6.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Pure Python netlink library License: GPLv2+ URL: https://github.com/svinota/%{srcname} @@ -35,6 +35,9 @@ IPQ. Summary: %{summary} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools +%if 0%{?rhel} && 0%{?rhel} < 9 +Requires: python3-importlib-metadata +%endif %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %description -n python%{python3_pkgversion}-%{srcname} @@ -96,7 +99,10 @@ cd ../pyroute2.ndb-%{version} %{python3_sitelib}/pr2modules %changelog -* Fri Jan 14 2022 Alfredo Moralejo - 0.6.5-1 +* Tue Jan 18 2022 Alfredo Moralejo - 0.6.5-2 +- Added requirement on imporlib-metadata for CS8 + +* Fri Jan 14 2022 Alfredo Moralejo - 0.6.5-1 - Update to 0.6.5 * Fri Jul 23 2021 Fedora Release Engineering - 0.5.14-3