1 Star 0 Fork 11

符样清/python-hwdata

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-hwdata.spec 2.05 KB
一键复制 编辑 原始数据 按行查看 历史
%bcond_without python2
Name: python-hwdata
Version: 2.3.7
Release: 6
Summary: Python bindings to hwdata package
License: GPLv2
URL: https://github.com/xsuchy/python-hwdata
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
%description
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
BuildRequires: python3-devel
Requires: hwdata
%{?python_provide:%python_provide python3-hwdata}
%description -n python3-hwdata
Provide python interface to database stored in hwdata package.
It allows you to get human readable description of USB and PCI devices.
%package_help
%prep
%autosetup -n %{name}-%{version} -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)
%license LICENSE
%{python3_sitelib}/*
%files help
%defattr(-,root,root)
%doc example.py README.md html
%changelog
* Fri Jun 19 2020 fuyangqing<fuyangqing@huawei.com> - 2.3.7-6
-Type:bugfix
-ID:NA
-SUG:NA
-DESC:change sepc hardcode the dependent python version number
* Tue Feb 11 2020 huzunhao<huzunhao2@huawei.com> - 2.3.7-5
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fyq_950317/python-hwdata.git
git@gitee.com:fyq_950317/python-hwdata.git
fyq_950317
python-hwdata
python-hwdata
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385