python-hwdata init
This commit is contained in:
parent
87b41afd0a
commit
7ba995f1cb
BIN
python-hwdata-2.3.7.tar.gz
Normal file
BIN
python-hwdata-2.3.7.tar.gz
Normal file
Binary file not shown.
70
python-hwdata.spec
Normal file
70
python-hwdata.spec
Normal file
@ -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 <wutao61@huawei.com> - 2.3.7-4
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user