From baec91fcdacd31ed34f75f4d254c2dfc47e89ffc Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 14 May 2025 17:35:07 +0000 Subject: [PATCH] import UBI pyusb-1.2.1-11.el10 --- .gitignore | 2 +- .pyusb.metadata | 1 - SPECS/pyusb.spec => pyusb.spec | 133 +++++++++++++++++++++++---------- sources | 1 + 4 files changed, 94 insertions(+), 43 deletions(-) delete mode 100644 .pyusb.metadata rename SPECS/pyusb.spec => pyusb.spec (56%) create mode 100644 sources diff --git a/.gitignore b/.gitignore index e6aeac5..8182846 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/pyusb-1.0.0.zip +pyusb-1.2.1.tar.gz diff --git a/.pyusb.metadata b/.pyusb.metadata deleted file mode 100644 index 138362e..0000000 --- a/.pyusb.metadata +++ /dev/null @@ -1 +0,0 @@ -1cc42e901b580c7396830c74c87363a789e5c0cd SOURCES/pyusb-1.0.0.zip diff --git a/SPECS/pyusb.spec b/pyusb.spec similarity index 56% rename from SPECS/pyusb.spec rename to pyusb.spec index ae4f980..a8ddfe3 100644 --- a/SPECS/pyusb.spec +++ b/pyusb.spec @@ -1,18 +1,11 @@ -%if 0%{?rhel} > 7 -# Disable python2 build by default -%bcond_with python2 -%else -%bcond_without python2 -%endif - Name: pyusb -Version: 1.0.0 -Release: 9.1%{?dist} +Version: 1.2.1 +Release: 11%{?dist} Summary: Python bindings for libusb -License: BSD -URL: http://pyusb.sourceforge.net/ -Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.zip -BuildRequires: libusb-devel +License: BSD-3-Clause +URL: https://github.com/pyusb/pyusb/ +Source0: %{pypi_source} +BuildRequires: libusb1 BuildArch: noarch %global _description\ @@ -21,22 +14,13 @@ methods to support most USB operations. %description %_description -%if %{with python2} -%package -n python2-pyusb -Summary: %summary -%{?python_provide:%python_provide python2-pyusb} -BuildRequires: python2-devel -# Remove before F30 -Provides: pyusb = %{version}-%{release} -Obsoletes: pyusb < %{version}-%{release} - -%description -n python2-pyusb %_description -%endif # with python2 - %package -n python3-pyusb Summary: %summary %{?python_provide:%python_provide python3-pyusb} BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +Requires: libusb1 %description -n python3-pyusb PyUSB provides easy USB access to python. The module contains classes and @@ -47,23 +31,14 @@ methods to support most USB operations. sed -i -e 's/\r//g' README.rst %build -%if %{with python2} -%py2_build -%endif # with python2 %py3_build %install -%if %{with python2} -%py2_install -%endif # with python2 %py3_install -%if %{with python2} -%files -n python2-pyusb -%license LICENSE -%doc README.rst -%{python2_sitelib}/* -%endif # with python2 +%check +cd tests +%{py3_test_envvars} %{python3} ./testall.py %files -n python3-pyusb %license LICENSE @@ -71,11 +46,87 @@ sed -i -e 's/\r//g' README.rst %{python3_sitelib}/* %changelog -* Thu Jun 16 2022 Florence Blanc-Renaud - 1.0.0-9.1 -- Rebuilt to fix the NVR issue (#2094880) +* Tue Oct 29 2024 Troy Dawson - 1.2.1-11 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 -* Tue Jun 19 2018 Charalampos Stratakis - 1.0.0-9 -- Conditionalize the python2 subpackage +* Mon Jun 24 2024 Troy Dawson - 1.2.1-10 +- Bump release for June 2024 mass rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 1.2.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 1.2.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.2.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sun Jun 18 2023 Yaakov Selkowitz - 1.2.1-6 +- Update dependencies to libusb1 + +* Tue Jun 13 2023 Python Maint - 1.2.1-5 +- Rebuilt for Python 3.12 + +* Wed Mar 08 2023 Gwyn Ciesla - 1.2.1-4 +- migrated to SPDX license + +* Fri Jan 20 2023 Fedora Release Engineering - 1.2.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Feb 07 2022 Gwyn Ciesla - 1.2.1-1 +- 1.2.1 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.0.2-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.0.2-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 1.0.2-12 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.0.2-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 1.0.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jun 23 2020 Gwyn Ciesla - 1.0.2-9 +- BR python3-setuptools + +* Tue May 26 2020 Miro Hrončok - 1.0.2-8 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.0.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Oct 21 2019 Gwyn Ciesla - 1.0.2-6 +- Drop Python 2. + +* Thu Oct 03 2019 Miro Hrončok - 1.0.2-5 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Sun Aug 18 2019 Zbigniew Jędrzejewski-Szmek - 1.0.2-4 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.0.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 1.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Aug 10 2018 Gwyn Ciesla - 1.0.2-1 +- 1.0.2 + +* Sat Jul 14 2018 Fedora Release Engineering - 1.0.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 1.0.0-9 +- Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 1.0.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/sources b/sources new file mode 100644 index 0000000..b294b85 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pyusb-1.2.1.tar.gz) = 51d0c1165540afa21d6d0ab7315ac77b08083d1cb8e502173dfb1766bc542173f9d7b0070fd14bc71d147e31c3f0780b277093791a7c82485962a04ec62bf0f1