Compare commits
No commits in common. "bac0d4d3d9e77fd789688d1e60cd3a3c117b8a52" and "b541faa2ac0d82e93522c6f3215513c6466be16e" have entirely different histories.
bac0d4d3d9
...
b541faa2ac
Binary file not shown.
BIN
python-hwdata-2.3.7.tar.gz
Normal file
BIN
python-hwdata-2.3.7.tar.gz
Normal file
Binary file not shown.
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
Name: python-hwdata
|
Name: python-hwdata
|
||||||
Version: 2.3.7
|
Version: 2.3.7
|
||||||
Release: 8
|
Release: 5
|
||||||
Summary: Python bindings to hwdata package
|
Summary: Python bindings to hwdata package
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://github.com/xsuchy/python-hwdata
|
URL: https://github.com/xsuchy/python-hwdata
|
||||||
Source0: https://github.com/xsuchy/python-hwdata/archive/%{name}-%{version}-1.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -14,6 +14,18 @@ BuildArch: noarch
|
|||||||
Provide python interface to database stored in hwdata package.
|
Provide python interface to database stored in hwdata package.
|
||||||
It allows you to get human readable description of USB and PCI devices.
|
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
|
%package -n python3-hwdata
|
||||||
Summary: Python bindings to hwdata package
|
Summary: Python bindings to hwdata package
|
||||||
|
|
||||||
@ -28,47 +40,46 @@ It allows you to get human readable description of USB and PCI devices.
|
|||||||
|
|
||||||
%package_help
|
%package_help
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{name}-%{name}-%{version}-1 -p1
|
%autosetup -n %{name}-%{version} -p1
|
||||||
rm -rf %{py3dir}
|
rm -rf %{py3dir}
|
||||||
cp -a . %{py3dir}
|
cp -a . %{py3dir}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with python2}
|
||||||
|
%_bindir/python2 setup.py build '--executable=%_bindir/python2 -s'
|
||||||
|
%endif # with python2
|
||||||
|
|
||||||
pushd %{py3dir}
|
pushd %{py3dir}
|
||||||
%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s'
|
%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s'
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if %{with python2}
|
||||||
|
%_bindir/python2 setup.py install -O1 --skip-build --root %buildroot
|
||||||
|
%endif
|
||||||
|
|
||||||
pushd %{py3dir}
|
pushd %{py3dir}
|
||||||
%_bindir/python3 setup.py install -O1 --skip-build --root %buildroot
|
%_bindir/python3 setup.py install -O1 --skip-build --root %buildroot
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
|
||||||
|
%if %{with python2}
|
||||||
|
%files -n python2-hwdata
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%license LICENSE
|
||||||
|
%_prefix/lib/python2.7/site-packages/*
|
||||||
|
%endif # with python2
|
||||||
|
|
||||||
%files -n python3-hwdata
|
%files -n python3-hwdata
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python3_sitelib}/*
|
%_prefix/lib/python3.7/site-packages/*
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc example.py README.md html
|
%doc example.py README.md html
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Nov 2 2020 wangjie<wangjie294@huawei.com> -2.3.7-8
|
|
||||||
- Type:NA
|
|
||||||
- ID:NA
|
|
||||||
- SUG:NA
|
|
||||||
- DESC:remove python2
|
|
||||||
|
|
||||||
* Mon Sep 7 2020 Ge Wang<wangge20@huawei.com> - 2.3.7-7
|
|
||||||
- Modify Source0 Url
|
|
||||||
|
|
||||||
* 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
|
* Tue Feb 11 2020 huzunhao<huzunhao2@huawei.com> - 2.3.7-5
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
version_control: github
|
|
||||||
src_repo: xsuchy/python-hwdata
|
|
||||||
tag_prefix: python-hwdata-
|
|
||||||
seperator: .
|
|
||||||
Loading…
x
Reference in New Issue
Block a user