From 21294ed058fae05b81e7e2b0e92956b2d5998fb3 Mon Sep 17 00:00:00 2001 From: DistroBaker Date: Thu, 11 Mar 2021 11:24:52 +0100 Subject: [PATCH] Merged update from upstream sources This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/ksc.git#dde9ff6bb09473eb18d18da9c0ce23f48a124d54 --- .gitignore | 1 + README.md | 3 +++ ksc.spec | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 54 insertions(+) create mode 100644 README.md create mode 100644 ksc.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..924b922 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/ksc-5955c6b.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..e364682 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ksc + +The ksc package diff --git a/ksc.spec b/ksc.spec new file mode 100644 index 0000000..a4b6d5d --- /dev/null +++ b/ksc.spec @@ -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 - 1.7-1 +- Initial Fedora commit. diff --git a/sources b/sources new file mode 100644 index 0000000..b205985 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ksc-5955c6b.tar.gz) = 61556ee8422e28124d6639cbded95a3fd8b3cdcd2db11e1f2b4f5f033c7d15b42f93b49f7d99a352d697a6fc1d8667fc205ebe3ea7067052dad3d8bbc0c50c0c