diff --git python-hwdata/python-hwdata.spec python-hwdata/python-hwdata.spec.tmp index 4d1835bac6..0e65bedd9c 100644 --- python-hwdata/python-hwdata.spec +++ python-hwdata/python-hwdata.spec.tmp @@ -10,7 +10,7 @@ Name: python-hwdata Version: 2.3.4 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Python bindings to hwdata package BuildArch: noarch Group: Development/Libraries @@ -23,12 +23,20 @@ Source0: %{name}-%{version}.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: python-devel -Requires: hwdata -%description -Provide python interface to database stored in hwdata package. +%global _description\ +Provide python interface to database stored in hwdata package.\ It allows you to get human readable description of USB and PCI devices. +%description %_description + +%package -n python2-hwdata +Summary: %summary +Requires: hwdata +%{?python_provide:%python_provide python2-hwdata} + +%description -n python2-hwdata %_description + %if 0%{?with_python3} %package -n python3-hwdata Summary: Python bindings to hwdata package @@ -80,7 +88,7 @@ rm -rf $RPM_BUILD_ROOT python3-pylint hwdata.py example.py %endif -%files +%files -n python2-hwdata %license LICENSE %doc README.md example.py %doc html @@ -95,6 +103,10 @@ python3-pylint hwdata.py example.py %endif %changelog +* Thu Aug 10 2017 Zbigniew Jędrzejewski-Szmek - 2.3.4-5 +- Python 2 binary package renamed to python2-hwdata + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 2.3.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild