%global forgeurl https://github.com/RedHatOfficial/ksc %global commitdate 20210216 %global commit 5955c6b2288353c5b093677221cc91a83a2c800c %global shortcommit %(c=%{commit}; echo ${c:0:7}) %forgemeta Name: ksc Version: 1.7 Release: 16%{?dist} Summary: Kernel source code checker Group: Development/Tools AutoReqProv: no License: GPL-2.0-or-later URL: https://github.com/RedHatOfficial/ksc BuildArch: noarch Requires: kmod Requires: binutils Requires: kernel-devel Requires: python3-requests BuildRequires: python3-devel Source0: https://github.com/RedHatOfficial/ksc/archive/%{commit}/%{name}-%{shortcommit}.tar.gz # Use prefix-relative data_files paths instead of absolute ones to enable wheel-based installation # Not sent upstream yet # Requires %%install fixup for /etc Patch: ksc-no-absolute-datafiles.patch %description A kernel module source code checker to find usage of select symbols %prep %forgeautosetup -p1 # Fix build with setuptools 62.1 # https://github.com/RedHatOfficial/ksc/issues/3 sed -i "15i packages=[]," setup.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l -M mv %{buildroot}%{_prefix}/etc %{buildroot}%{_sysconfdir} install -D ksc.1 %{buildroot}%{_mandir}/man1/ksc.1 %files -f %{pyproject_files} %doc README PKG-INFO %{_bindir}/ksc %{_datadir}/ksc %{_mandir}/man1/ksc.* %config(noreplace) %{_sysconfdir}/ksc.conf %changelog * Thu Nov 05 2026 Miro Hrončok - 1.7-16 - Convert to pyproject RPM macros (rhbz#2377303) * Thu Jul 16 2026 Fedora Release Engineering - 1.7-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Fri Jan 16 2026 Fedora Release Engineering - 1.7-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Thu Jul 24 2025 Fedora Release Engineering - 1.7-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Fri Jan 17 2025 Fedora Release Engineering - 1.7-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 1.7-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 1.7-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.7-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jun 19 2023 Čestmír Kalina - 1.7-8 - Migrate license to SPDX * Thu Jan 19 2023 Fedora Release Engineering - 1.7-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 1.7-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 21 2022 Lumír Balhar - 1.7-5 - Fix compatibility with newer setuptools * Thu Jan 20 2022 Fedora Release Engineering - 1.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jun 01 2021 Zamir SUN - 1.7-2 - Add python3-requests into Requires * Tue Jan 05 2021 Čestmír Kalina - 1.7-1 - Initial Fedora commit.