diff --git a/python-hwdata-2.3.7-1.tar.gz b/python-hwdata-2.3.7-1.tar.gz new file mode 100644 index 0000000..7c6fde2 Binary files /dev/null and b/python-hwdata-2.3.7-1.tar.gz differ diff --git a/python-hwdata-2.3.7.tar.gz b/python-hwdata-2.3.7.tar.gz deleted file mode 100644 index 89782aa..0000000 Binary files a/python-hwdata-2.3.7.tar.gz and /dev/null differ diff --git a/python-hwdata.spec b/python-hwdata.spec index c8c384a..1d40d50 100644 --- a/python-hwdata.spec +++ b/python-hwdata.spec @@ -2,11 +2,11 @@ Name: python-hwdata Version: 2.3.7 -Release: 6 +Release: 8 Summary: Python bindings to hwdata package License: GPLv2 URL: https://github.com/xsuchy/python-hwdata -Source0: %{name}-%{version}.tar.gz +Source0: https://github.com/xsuchy/python-hwdata/archive/%{name}-%{version}-1.tar.gz BuildArch: noarch @@ -14,18 +14,6 @@ BuildArch: noarch Provide python interface to database stored in hwdata package. It allows you to get human readable description of USB and PCI devices. -%if %{with python2} -%package -n python2-hwdata -Summary: Python bindings to hwdata package -BuildRequires: python2-devel -Requires: hwdata -%{?python_provide:%python_provide python2-hwdata} - -%description -n python2-hwdata -Provide python interface to database stored in hwdata package. -It allows you to get human readable description of USB and PCI devices. -%endif - %package -n python3-hwdata Summary: Python bindings to hwdata package @@ -40,36 +28,22 @@ It allows you to get human readable description of USB and PCI devices. %package_help %prep -%autosetup -n %{name}-%{version} -p1 +%autosetup -n %{name}-%{name}-%{version}-1 -p1 rm -rf %{py3dir} cp -a . %{py3dir} %build -%if %{with python2} -%_bindir/python2 setup.py build '--executable=%_bindir/python2 -s' -%endif # with python2 - pushd %{py3dir} %_bindir/python3 setup.py build '--executable=%_bindir/python3 -s' popd %install -%if %{with python2} -%_bindir/python2 setup.py install -O1 --skip-build --root %buildroot -%endif - pushd %{py3dir} %_bindir/python3 setup.py install -O1 --skip-build --root %buildroot popd %check -%if %{with python2} -%files -n python2-hwdata -%defattr(-,root,root) -%license LICENSE -%{python2_sitelib}/* -%endif # with python2 %files -n python3-hwdata %defattr(-,root,root) @@ -81,6 +55,15 @@ popd %doc example.py README.md html %changelog +* Mon Nov 2 2020 wangjie -2.3.7-8 +- Type:NA +- ID:NA +- SUG:NA +- DESC:remove python2 + +* Mon Sep 7 2020 Ge Wang - 2.3.7-7 +- Modify Source0 Url + * Fri Jun 19 2020 fuyangqing - 2.3.7-6 -Type:bugfix -ID:NA