From 29cdb4b4792da31c8ea65cc4e8f07c648ed25098 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 14 May 2025 19:22:11 +0000 Subject: [PATCH] import UBI python-kmod-0.9.2-6.el10 --- .gitignore | 2 +- .python-kmod.metadata | 1 - SPECS/python-kmod.spec => python-kmod.spec | 146 +++++++++++++-------- sources | 1 + 4 files changed, 90 insertions(+), 60 deletions(-) delete mode 100644 .python-kmod.metadata rename SPECS/python-kmod.spec => python-kmod.spec (52%) create mode 100644 sources diff --git a/.gitignore b/.gitignore index b23e4c5..14d3038 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/python-kmod-0.9.tar.gz +python-kmod-0.9.2.tar.gz diff --git a/.python-kmod.metadata b/.python-kmod.metadata deleted file mode 100644 index e864eb2..0000000 --- a/.python-kmod.metadata +++ /dev/null @@ -1 +0,0 @@ -5a4513210915c4908569f2363bcfddac5212fa37 SOURCES/python-kmod-0.9.tar.gz diff --git a/SPECS/python-kmod.spec b/python-kmod.spec similarity index 52% rename from SPECS/python-kmod.spec rename to python-kmod.spec index 6aacc90..e1aea64 100644 --- a/SPECS/python-kmod.spec +++ b/python-kmod.spec @@ -1,57 +1,25 @@ -%if 0%{?rhel} > 7 -# Disable python2 build by default -%bcond_with python2 -%else -%bcond_without python2 -%endif - Name: python-kmod -License: LGPLv2+ -Group: Development/Libraries +License: LGPL-2.0-or-later Summary: Python module to work with kernel modules -Version: 0.9 -Release: 20%{?dist} -URL: https://github.com/agrover/python-kmod/ -Source0: https://github.com/downloads/agrover/%{name}/%{name}-%{version}.tar.gz - - -%if %{with python2} -BuildRequires: python2-devel -BuildRequires: python2-setuptools -BuildRequires: python2-Cython -%endif # with python2 - +Version: 0.9.2 +Release: 6%{?dist} +URL: https://github.com/maurizio-lombardi/python-kmod/ +Source0: https://github.com/downloads/maurizio-lombardi/%{name}/%{name}-%{version}.tar.gz +BuildRequires: gcc +BuildRequires: python3-Cython BuildRequires: python3-devel BuildRequires: python3-setuptools -BuildRequires: python3-Cython - +BuildRequires: python3 BuildRequires: kmod-devel -%if %{with python2} -%{?filter_setup: -%filter_provides_in %{python2_sitearch}.*\.so$ -%filter_setup -} -%endif # with python2 - %global _description\ Python module to allow listing, loading, and unloading\ Linux kernel modules, using libkmod. %description %_description -%if %{with python2} -%package -n python2-kmod -Summary: %summary -%{?python_provide:%python_provide python2-kmod} - -%description -n python2-kmod %_description -%endif # with python2 - %package -n python3-kmod -Group: Development/Libraries Summary: Python module to work with kernel modules -%{?python_provide:%python_provide python3-kmod} %description -n python3-kmod Python module to allow listing, loading, and unloading @@ -61,34 +29,96 @@ Linux kernel modules, using libkmod. %setup -q %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-kmod -%{python2_sitearch}/kmod/ -%{python2_sitearch}/kmod*.egg-info -%doc README -%license COPYING.LESSER -%endif # with python2 - %files -n python3-kmod %{python3_sitearch}/kmod/ %{python3_sitearch}/kmod*.egg-info -%doc README -%license COPYING.LESSER +%doc COPYING.LESSER README %changelog -* Fri Jun 08 2018 Charalampos Stratakis - 0.9-20 -- Conditionalize the python2 subpackage +* Tue Oct 29 2024 Troy Dawson - 0.9.2-6 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* Mon Jun 24 2024 Troy Dawson - 0.9.2-5 +- Bump release for June 2024 mass rebuild + +* Mon Feb 12 2024 Maurizio Lombardi - 0.9.2-4 +- migrated to SPDX license + +* Fri Jan 26 2024 Fedora Release Engineering - 0.9.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 0.9.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Tue Aug 01 2023 Maurizio Lombardi - 0.9.2-1 +- Release a new version and take over maintainership upstream + +* Mon Jul 24 2023 Maurizio Lombardi - 0.9-39 +- Build for Cython < 3 + +* Fri Jul 21 2023 Fedora Release Engineering - 0.9-38 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 13 2023 Python Maint - 0.9-37 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.9-36 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 0.9-35 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 0.9-34 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.9-33 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.9-32 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 0.9-31 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.9-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.9-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 0.9-28 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.9-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 0.9-26 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 0.9-25 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.9-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 0.9-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Dec 27 2018 Miro Hrončok - 0.9-22 +- Subpackage python2-kmod has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Sat Jul 14 2018 Fedora Release Engineering - 0.9-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 0.9-20 +- Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.9-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/sources b/sources new file mode 100644 index 0000000..2994395 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (python-kmod-0.9.2.tar.gz) = 4106cdf9a28e9cb3b3e054fa44b79d44a2bce013ab6cd99d9d4baa4879f9864f9c024c6def07e02355b910fb738517ff86379abbcf9fdd80c429eeaa26ddc652