2021-03-11 10:24:52 +00:00
|
|
|
%global forgeurl https://github.com/RedHatOfficial/ksc
|
2023-01-09 19:26:50 +00:00
|
|
|
%global commitdate 20230109
|
|
|
|
%global commit 869a25c7de8ed880a72f66ae4f3e8407f1aa4114
|
2021-03-11 10:24:52 +00:00
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
|
|
|
|
%{?python_enable_dependency_generator}
|
|
|
|
%forgemeta -i
|
|
|
|
|
|
|
|
Name: ksc
|
2023-01-09 19:26:50 +00:00
|
|
|
Version: 1.12
|
2023-03-27 12:38:28 +00:00
|
|
|
Release: 4%{?dist}
|
2021-03-11 10:24:52 +00:00
|
|
|
Summary: Kernel source code checker
|
|
|
|
Group: Development/Tools
|
|
|
|
AutoReqProv: no
|
|
|
|
License: GPLv2+
|
|
|
|
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.
Resolves: rhbz#1966411
Signed-off-by: Ziqian SUN (Zamir) <zsun@redhat.com>
2021-06-01 05:48:37 +00:00
|
|
|
Requires: python3-requests
|
2021-03-11 10:24:52 +00:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
Source0: https://github.com/RedHatOfficial/ksc/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
2023-01-23 13:16:39 +00:00
|
|
|
Patch0: 0001-manpage.patch
|
2023-03-06 19:31:43 +00:00
|
|
|
Patch1: 0002-c9s-notifications.patch
|
2021-03-11 10:24:52 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
A kernel module source code checker to find usage of select symbols
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%forgesetup
|
2023-01-23 13:16:39 +00:00
|
|
|
%patch0 -p1
|
2023-03-06 19:31:43 +00:00
|
|
|
%patch1 -p1
|
2021-03-11 10:24:52 +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
|
2023-03-06 19:31:43 +00:00
|
|
|
* Mon Mar 06 2023 Čestmír Kalina <ckalina@redhat.com> - 1.12-3
|
|
|
|
- Resolves: #2165820 - The email method always mark CentOS Stream as release
|
|
|
|
|
2023-01-23 13:16:39 +00:00
|
|
|
* Mon Jan 23 2023 Čestmír Kalina <ckalina@redhat.com> - 1.12-2
|
|
|
|
- Resolves: #2066231 - add manpage docs
|
|
|
|
|
2023-01-09 19:26:50 +00:00
|
|
|
* Mon Jan 09 2023 Čestmír Kalina <ckalina@redhat.com> - 1.12-1
|
|
|
|
- Resolves: #2066231 - update to ksc 1.12
|
|
|
|
|
2022-06-13 08:50:03 +00:00
|
|
|
* Mon Jun 13 2022 Čestmír Kalina <ckalina@redhat.com> - 1.11-2
|
|
|
|
- Resolves: #2066228 - Explicitly require target specification
|
|
|
|
|
2022-05-18 15:33:08 +00:00
|
|
|
* Wed May 18 2022 Čestmír Kalina <ckalina@redhat.com> - 1.11-1
|
|
|
|
- Resolves: #2066228 - Explicitly require target specification
|
|
|
|
|
2022-04-13 13:04:16 +00:00
|
|
|
* Wed Apr 13 2022 Čestmír Kalina <ckalina@redhat.com> - 1.10-1
|
|
|
|
- Resolves: #2066226 Drop mandatory kernel-abi-stablelist dependency
|
|
|
|
|
2022-02-09 06:26:06 +00:00
|
|
|
* Wed Feb 09 2022 Čestmír Kalina <ckalina@redhat.com> - 1.9-1
|
|
|
|
- Resolves: #2043447 ksc: Support Authorization header in bugzilla API
|
|
|
|
|
2021-12-19 21:15:44 +00:00
|
|
|
* Sun Dec 19 2021 Čestmír Kalina <ckalina@redhat.com> - 1.8-5
|
|
|
|
- Resolves: #2032138 add Red Hat Enterprise Linux 9 support
|
|
|
|
|
2021-11-21 23:05:09 +00:00
|
|
|
* Mon Nov 22 2021 Čestmír Kalina <ckalina@redhat.com> - 1.8-4
|
|
|
|
- Resolves: #1761398 Add symbol namespace support to ksc
|
|
|
|
|
2021-08-09 21:13:01 +00:00
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - Forge-specific packaging variables
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
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.
Resolves: rhbz#1966411
Signed-off-by: Ziqian SUN (Zamir) <zsun@redhat.com>
2021-06-01 05:48:37 +00:00
|
|
|
* Tue Jun 01 2021 Ziqian SUN <zsun@redhat.com> - 1.8-2
|
|
|
|
- Adding python3-requests into Requires.
|
|
|
|
|
2021-05-17 20:09:59 +00:00
|
|
|
* Mon May 17 2021 Čestmír Kalina <ckalina@redhat.com> - 1.8-1
|
|
|
|
- Resolves: #1954495 ksc: i18n issues
|
|
|
|
|
2021-04-16 00:56:48 +00:00
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - Forge-specific packaging variables
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
2021-03-11 10:24:52 +00:00
|
|
|
* Tue Jan 05 2021 Čestmír Kalina <ckalina@redhat.com> - 1.7-1
|
|
|
|
- Initial Fedora commit.
|