Compare commits

...

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
99054d9544
!15 update to version 2.4.1
From: @Venland 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
2024-02-27 02:19:06 +00:00
lwg
2f0085a5c3 update to version 2.4.1 2024-01-11 17:15:46 +08:00
openeuler-ci-bot
b0d25645a2
!14 Upgrade to 2.3.8
From: @wu-leilei 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
2023-04-12 06:05:49 +00:00
wu-leilei
fce6547f3e Upgrade package to version 2.3.8 2023-04-12 09:31:57 +08:00
openeuler-ci-bot
bac0d4d3d9 !13 remove python2
From: @jlwwlsqc
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-11-02 12:00:26 +08:00
openeuler-ci-bot
2ade9cac65 remove python2
From: @wang--ge
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-11-02 10:21:23 +08:00
openeuler-ci-bot
73265a279f !9 Modify Source0 Url of package python-hwdata
From: @wang--ge
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-09-14 09:26:03 +08:00
wangge
8190e190e6 Modify Source0 Url 2020-09-11 19:14:01 +08:00
openeuler-ci-bot
3eab04e1c3 !4 python-hwdata
Merge pull request !4 from 符样清/master
2020-06-19 11:23:07 +08:00
fyq_950317
fbdcf88fe4 Merge branch 'master' of https://gitee.com/fyq_950317/python-hwdata 2020-06-19 11:19:02 +08:00
fyq_950317
602fab9280 change spec hardcode the dependent python version number 2020-06-18 16:36:45 +08:00
3 changed files with 20 additions and 31 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,12 +1,12 @@
%bcond_without python2
Name: python-hwdata
Version: 2.3.7
Release: 6
Name: python-hwdata
Version: 2.4.1
Release: 1
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,21 @@ popd
%doc example.py README.md html
%changelog
* Thu Jan 11 2024 Paul Thomas <paulthomas100199@gmail.com> - 2.4.1-1
- update to version 2.4.1
* Fri Apr 07 2023 wulei <wu_lei@hoperun.com> - 2.3.8-1
- Upgrade package to version 2.3.8
* 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