2021-02-21 22:45:21 +00:00
|
|
|
%global forgeurl https://github.com/RedHatOfficial/ksc
|
2024-05-28 11:22:02 +00:00
|
|
|
%global commitdate 20230109
|
|
|
|
%global commit 869a25c7de8ed880a72f66ae4f3e8407f1aa4114
|
2021-02-21 22:45:21 +00:00
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
|
|
|
|
%{?python_enable_dependency_generator}
|
|
|
|
%forgemeta -i
|
|
|
|
|
|
|
|
Name: ksc
|
2024-05-28 11:22:02 +00:00
|
|
|
Version: 1.12
|
2024-11-18 15:19:06 +00:00
|
|
|
Release: 7%{?dist}
|
2021-02-21 22:45:21 +00:00
|
|
|
Summary: Kernel source code checker
|
|
|
|
Group: Development/Tools
|
|
|
|
AutoReqProv: no
|
2023-06-19 15:01:22 +00:00
|
|
|
License: GPL-2.0-or-later
|
2021-02-21 22:45:21 +00:00
|
|
|
URL: https://github.com/RedHatOfficial/ksc
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: kmod
|
|
|
|
Requires: binutils
|
|
|
|
Requires: kernel-devel
|
Add python3-requests ksc.spec to Requires
Without python3-requests, ksc will fail with
```
Traceback (most recent call last):
File "/usr/share/ksc/ksc.py", line 16, in <module>
from utils import run, read_list
File "/usr/share/ksc/utils.py", line 24, in <module>
from bugzilla import Bugzilla, BugzillaError
File "/usr/share/ksc/bugzilla/__init__.py", line 13, in <module>
from .base import Bugzilla
File "/usr/share/ksc/bugzilla/base.py", line 39, in <module>
from .transport import BugzillaError, _BugzillaServerProxy, _RequestsTransport
File "/usr/share/ksc/bugzilla/transport.py", line 21, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
```
So adding python3-requests into Requires in case it is not pre-installed.
2021-06-01 05:44:41 +00:00
|
|
|
Requires: python3-requests
|
2021-02-21 22:45:21 +00:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
Source0: https://github.com/RedHatOfficial/ksc/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
2024-05-28 11:22:02 +00:00
|
|
|
Patch0: 0001-manpage.patch
|
|
|
|
Patch1: 0002-c9s-notifications.patch
|
2024-11-18 15:19:06 +00:00
|
|
|
Patch2: 0003-cs-fix-invalid-escape.patch
|
2021-02-21 22:45:21 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
A kernel module source code checker to find usage of select symbols
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%forgesetup
|
2022-06-21 11:17:05 +00:00
|
|
|
# Fix build with setuptools 62.1
|
|
|
|
# https://github.com/RedHatOfficial/ksc/issues/3
|
|
|
|
sed -i "15i packages=[]," setup.py
|
2024-05-28 11:22:02 +00:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2024-11-18 15:19:06 +00:00
|
|
|
%patch2 -p1
|
2021-02-21 22:45:21 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%py3_install
|
|
|
|
install -D ksc.1 %{buildroot}%{_mandir}/man1/ksc.1
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license COPYING
|
|
|
|
%doc README PKG-INFO
|
|
|
|
%{_bindir}/ksc
|
|
|
|
%{_datadir}/ksc
|
|
|
|
%{_mandir}/man1/ksc.*
|
|
|
|
%config(noreplace) %{_sysconfdir}/ksc.conf
|
|
|
|
%{python3_sitelib}/ksc-%{version}*.egg-info
|
|
|
|
|
|
|
|
%changelog
|
2024-11-18 15:19:06 +00:00
|
|
|
* Mon Nov 18 2024 Čestmír Kalina <ckalina@redhat.com> - 1.12-7
|
|
|
|
- Resolves: RHEL-65759
|
|
|
|
|
2024-10-29 15:39:13 +00:00
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - Packaging variables read or set by %forgemeta
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
2024-06-24 16:38:01 +00:00
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - Packaging variables read or set by %forgemeta
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
2024-06-24 18:06:38 +00:00
|
|
|
* Tue May 28 2024 Čestmír Kalina <ckalina@redhat.com> - 1.12-4
|
2024-05-28 11:22:02 +00:00
|
|
|
- Resolves: JIRA: https://issues.redhat.com/browse/RHEL-35791
|
|
|
|
- Update to the latest ksc
|
|
|
|
|
2024-01-25 00:57:11 +00:00
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - Packaging variables read or set by %forgemeta
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2024-01-21 02:59:38 +00:00
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - Packaging variables read or set by %forgemeta
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2023-06-19 15:01:22 +00:00
|
|
|
* Mon Jun 19 2023 Čestmír Kalina <ckalina@redhat.com> - 1.7-8
|
|
|
|
- Migrate license to SPDX
|
|
|
|
|
2023-01-19 15:11:54 +00:00
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - Packaging variables read or set by %forgemeta
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-07-21 16:39:08 +00:00
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - Packaging variables read or set by %forgemeta
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-06-21 11:17:05 +00:00
|
|
|
* Tue Jun 21 2022 Lumír Balhar <lbalhar@redhat.com> - 1.7-5
|
|
|
|
- Fix compatibility with newer setuptools
|
|
|
|
|
2022-01-20 15:11:10 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - Packaging variables read or set by %forgemeta
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-07-22 10:24:40 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - Packaging variables read or set by %forgemeta
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
Add python3-requests ksc.spec to Requires
Without python3-requests, ksc will fail with
```
Traceback (most recent call last):
File "/usr/share/ksc/ksc.py", line 16, in <module>
from utils import run, read_list
File "/usr/share/ksc/utils.py", line 24, in <module>
from bugzilla import Bugzilla, BugzillaError
File "/usr/share/ksc/bugzilla/__init__.py", line 13, in <module>
from .base import Bugzilla
File "/usr/share/ksc/bugzilla/base.py", line 39, in <module>
from .transport import BugzillaError, _BugzillaServerProxy, _RequestsTransport
File "/usr/share/ksc/bugzilla/transport.py", line 21, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
```
So adding python3-requests into Requires in case it is not pre-installed.
2021-06-01 05:44:41 +00:00
|
|
|
* Tue Jun 01 2021 Zamir SUN <sztsian@gmail.com> - 1.7-2
|
|
|
|
- Add python3-requests into Requires
|
|
|
|
|
2021-02-21 22:45:21 +00:00
|
|
|
* Tue Jan 05 2021 Čestmír Kalina <ckalina@redhat.com> - 1.7-1
|
|
|
|
- Initial Fedora commit.
|