Initial import.

Signed-off-by: Čestmír Kalina <ckalina@redhat.com>
This commit is contained in:
Čestmír Kalina 2021-02-21 23:45:21 +01:00
parent d3f54e9f6a
commit dde9ff6bb0
3 changed files with 51 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/ksc-5955c6b.tar.gz

49
ksc.spec Normal file
View File

@ -0,0 +1,49 @@
%global forgeurl https://github.com/RedHatOfficial/ksc
%global commitdate 20210216
%global commit 5955c6b2288353c5b093677221cc91a83a2c800c
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%{?python_enable_dependency_generator}
%forgemeta -i
Name: ksc
Version: 1.7
Release: 1%{?dist}
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
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Source0: https://github.com/RedHatOfficial/ksc/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
%description
A kernel module source code checker to find usage of select symbols
%prep
%forgesetup
%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
* Tue Jan 05 2021 Čestmír Kalina <ckalina@redhat.com> - 1.7-1
- Initial Fedora commit.

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (ksc-5955c6b.tar.gz) = 61556ee8422e28124d6639cbded95a3fd8b3cdcd2db11e1f2b4f5f033c7d15b42f93b49f7d99a352d697a6fc1d8667fc205ebe3ea7067052dad3d8bbc0c50c0c