Compare commits

...

1 Commits
c8 ... c10

Author SHA1 Message Date
29cdb4b479 import UBI python-kmod-0.9.2-6.el10 2025-05-14 19:22:11 +00:00
4 changed files with 90 additions and 60 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/python-kmod-0.9.tar.gz
python-kmod-0.9.2.tar.gz

View File

@ -1 +0,0 @@
5a4513210915c4908569f2363bcfddac5212fa37 SOURCES/python-kmod-0.9.tar.gz

View File

@ -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 <cstratak@redhat.com> - 0.9-20
- Conditionalize the python2 subpackage
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.9.2-6
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.9.2-5
- Bump release for June 2024 mass rebuild
* Mon Feb 12 2024 Maurizio Lombardi <mlombard@redhat.com> - 0.9.2-4
- migrated to SPDX license
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 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 <releng@fedoraproject.org> - 0.9-38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.9-37
- Rebuilt for Python 3.12
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.9-34
- Rebuilt for Python 3.11
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.9-31
- Rebuilt for Python 3.10
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.9-28
- Rebuilt for Python 3.9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9-26
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9-25
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Dec 27 2018 Miro Hrončok <mhroncok@redhat.com> - 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 <releng@fedoraproject.org> - 0.9-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9-20
- Rebuilt for Python 3.7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (python-kmod-0.9.2.tar.gz) = 4106cdf9a28e9cb3b3e054fa44b79d44a2bce013ab6cd99d9d4baa4879f9864f9c024c6def07e02355b910fb738517ff86379abbcf9fdd80c429eeaa26ddc652