diff --git python-hardware/python-hardware.spec python-hardware/python-hardware.spec.tmp index b2c6e4c5f4..28d36411cb 100644 --- python-hardware/python-hardware.spec +++ python-hardware/python-hardware.spec.tmp @@ -7,7 +7,7 @@ Name: python-hardware Summary: Hardware detection and classification utilities Version: 0.18 -Release: 6%{?dist} +Release: 7%{?dist} License: ASL 2.0 URL: https://pypi.python.org/pypi/hardware @@ -26,12 +26,6 @@ BuildRequires: python-six BuildRequires: python-sphinx BuildRequires: python-oslo-sphinx BuildRequires: git -Requires: numpy -Requires: python-hardware-detect = %{version}-%{release} -Requires: python-babel -Requires: python-pandas -Requires: python-pbr -Requires: python-six %prep @@ -66,19 +60,33 @@ popd %{__python2} setup.py install -O1 --skip-build --root=%{buildroot} -%description -Hardware detection and classification utilities. -Features: -* detect hardware features of a Linux systems: -** RAID -** hard drives -** IPMI -** network cards -** DMI info -** memory settings -** processor features +%global _description\ +Hardware detection and classification utilities.\ +Features:\ +* detect hardware features of a Linux systems:\ +** RAID\ +** hard drives\ +** IPMI\ +** network cards\ +** DMI info\ +** memory settings\ +** processor features\ * filter hardware according to hardware profiles +%description %_description + +%package -n python2-hardware +Summary: %summary +Requires: numpy +Requires: python-hardware-detect = %{version}-%{release} +Requires: python-babel +Requires: python-pandas +Requires: python-pbr +Requires: python-six +%{?python_provide:%python_provide python2-hardware} + +%description -n python2-hardware %_description + %if 0%{?with_python3} %package -n python3-hardware Summary: Hardware detection and classification utilities @@ -136,7 +144,7 @@ Group: Documentation Documentation for Hardware detection and classification utilities. -%files +%files -n python2-hardware %license LICENSE %doc README.rst %{python2_sitelib}/hardware/cardiff @@ -164,6 +172,10 @@ Documentation for Hardware detection and classification utilities. %endif # with_python3 %changelog +* Thu Aug 10 2017 Zbigniew Jędrzejewski-Szmek - 0.18-7 +- Python 2 binary package renamed to python2-hardware + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 0.18-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild