diff --git a/python-hwdata-2.3.7.tar.gz b/python-hwdata-2.3.7.tar.gz new file mode 100644 index 0000000..f0f5d8a Binary files /dev/null and b/python-hwdata-2.3.7.tar.gz differ diff --git a/python-hwdata.spec b/python-hwdata.spec new file mode 100644 index 0000000..fab54c2 --- /dev/null +++ b/python-hwdata.spec @@ -0,0 +1,70 @@ +Name: python-hwdata +Version: 2.3.7 +Release: 4 +Summary: Binding python to hwdata package +BuildArch: noarch +License: GPLv2 +URL: https://github.com/xsuchy/python-hwdata +Source0: %{name}-%{version}.tar.gz + +%description +Supply python interface for stored database in hwdata package. +This can make you get human readable description about PCI devices and USB. + +%package -n python2-hwdata +Summary: Binding python to hwdata package +BuildRequires: python2-devel +Requires: hwdata + +%{?python_provide:%python_provide python2-hwdata} + +%description -n python2-hwdata +Supply python interface for stored database in hwdata package. +This can make you get human readable description about PCI devices and USB. +This is the Python 2 build of the module. + +%package -n python3-hwdata +Summary: Binding python to hwdata package +BuildRequires: python3-devel python3-pylint +Requires: hwdata + +%{?python_provide:%python_provide python3-hwdata} + +%description -n python3-hwdata +Supply python interface for stored database in hwdata package. +This can make you get human readable description about PCI devices and USB. +This is the Python 3 build of the module. + +%prep +%autosetup -n %{name}-%{version} -p1 +rm -rf %{py3dir} +cp -a . %{py3dir} + +%build +%py2_build + +cd %{py3dir} +%py3_build + +%install +%py2_install + +cd %{py3dir} +%py3_install + +%check +pylint-3 hwdata.py example.py || : + +%files -n python2-hwdata +%license LICENSE +%doc README.md example.py html +%{python2_sitelib}/* + +%files -n python3-hwdata +%license LICENSE +%doc README.md example.py html +%{python3_sitelib}/* + +%changelog +* Fri Dec 20 2019 wutao - 2.3.7-4 +- Package init