python-hwdata/python-hwdata.spec

81 lines
1.8 KiB
RPMSpec
Raw Normal View History

2020-02-20 19:25:49 +08:00
%bcond_without python2
2024-01-11 17:15:46 +08:00
Name: python-hwdata
Version: 2.4.1
2023-04-12 09:31:57 +08:00
Release: 1
2020-02-20 19:25:49 +08:00
Summary: Python bindings to hwdata package
License: GPLv2
URL: https://github.com/xsuchy/python-hwdata
2020-09-11 19:14:01 +08:00
Source0: https://github.com/xsuchy/python-hwdata/archive/%{name}-%{version}-1.tar.gz
2020-02-20 19:25:49 +08:00
BuildArch: noarch
2019-12-23 16:57:58 +08:00
%description
2020-02-20 19:25:49 +08:00
Provide python interface to database stored in hwdata package.
It allows you to get human readable description of USB and PCI devices.
2019-12-23 16:57:58 +08:00
%package -n python3-hwdata
2020-02-20 19:25:49 +08:00
Summary: Python bindings to hwdata package
BuildRequires: python3-devel
Requires: hwdata
2019-12-23 16:57:58 +08:00
%{?python_provide:%python_provide python3-hwdata}
%description -n python3-hwdata
2020-02-20 19:25:49 +08:00
Provide python interface to database stored in hwdata package.
It allows you to get human readable description of USB and PCI devices.
2019-12-23 16:57:58 +08:00
2020-02-20 19:25:49 +08:00
%package_help
2019-12-23 16:57:58 +08:00
%prep
2020-09-11 19:14:01 +08:00
%autosetup -n %{name}-%{name}-%{version}-1 -p1
2019-12-23 16:57:58 +08:00
rm -rf %{py3dir}
cp -a . %{py3dir}
%build
2020-02-20 19:25:49 +08:00
pushd %{py3dir}
%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s'
popd
2019-12-23 16:57:58 +08:00
%install
2020-02-20 19:25:49 +08:00
pushd %{py3dir}
%_bindir/python3 setup.py install -O1 --skip-build --root %buildroot
popd
2019-12-23 16:57:58 +08:00
%check
%files -n python3-hwdata
2020-02-20 19:25:49 +08:00
%defattr(-,root,root)
2019-12-23 16:57:58 +08:00
%license LICENSE
%{python3_sitelib}/*
2020-02-20 19:25:49 +08:00
%files help
%defattr(-,root,root)
%doc example.py README.md html
2019-12-23 16:57:58 +08:00
%changelog
2024-01-11 17:15:46 +08:00
* Thu Jan 11 2024 Paul Thomas <paulthomas100199@gmail.com> - 2.4.1-1
- update to version 2.4.1
2023-04-12 09:31:57 +08:00
* 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
2020-09-11 19:14:01 +08:00
* 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
2020-02-20 20:56:28 +08:00
* Tue Feb 11 2020 huzunhao<huzunhao2@huawei.com> - 2.3.7-5
2019-12-23 16:57:58 +08:00
- Package init