Blame ksc.spec

dde9ff6
%global forgeurl https://github.com/RedHatOfficial/ksc
dde9ff6
%global commitdate 20210216
dde9ff6
%global commit 5955c6b2288353c5b093677221cc91a83a2c800c
dde9ff6
%global shortcommit %(c=%{commit}; echo ${c:0:7})
dde9ff6
dde9ff6
%{?python_enable_dependency_generator}
dde9ff6
%forgemeta -i
dde9ff6
dde9ff6
Name:		ksc
dde9ff6
Version:	1.7
eacfe3d
Release:	7%{?dist}
dde9ff6
Summary:	Kernel source code checker
dde9ff6
Group:		Development/Tools
dde9ff6
AutoReqProv:	no
dde9ff6
License:	GPLv2+
dde9ff6
URL:		https://github.com/RedHatOfficial/ksc
dde9ff6
BuildArch:	noarch
dde9ff6
Requires:	kmod
dde9ff6
Requires:	binutils
dde9ff6
Requires:	kernel-devel
787f478
Requires:	python3-requests
dde9ff6
BuildRequires:	python3-devel
dde9ff6
BuildRequires:	python3-setuptools
dde9ff6
Source0:	https://github.com/RedHatOfficial/ksc/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
dde9ff6
dde9ff6
%description
dde9ff6
A kernel module source code checker to find usage of select symbols
dde9ff6
dde9ff6
%prep
dde9ff6
%forgesetup
c8550e5
# Fix build with setuptools 62.1
c8550e5
# https://github.com/RedHatOfficial/ksc/issues/3
c8550e5
sed -i "15i packages=[]," setup.py
dde9ff6
dde9ff6
%build
dde9ff6
%py3_build
dde9ff6
dde9ff6
%install
dde9ff6
%py3_install
dde9ff6
install -D ksc.1 %{buildroot}%{_mandir}/man1/ksc.1
dde9ff6
dde9ff6
%files
dde9ff6
%license COPYING
dde9ff6
%doc README PKG-INFO
dde9ff6
%{_bindir}/ksc
dde9ff6
%{_datadir}/ksc
dde9ff6
%{_mandir}/man1/ksc.*
dde9ff6
%config(noreplace) %{_sysconfdir}/ksc.conf
dde9ff6
%{python3_sitelib}/ksc-%{version}*.egg-info
dde9ff6
dde9ff6
%changelog
eacfe3d
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - Packaging variables read or set by %forgemeta
eacfe3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
eacfe3d
324f9e3
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - Packaging variables read or set by %forgemeta
324f9e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
324f9e3
c8550e5
* Tue Jun 21 2022 Lumír Balhar <lbalhar@redhat.com> - 1.7-5
c8550e5
- Fix compatibility with newer setuptools
c8550e5
eb65d48
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - Packaging variables read or set by %forgemeta
eb65d48
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
eb65d48
df247e4
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - Packaging variables read or set by %forgemeta
df247e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
df247e4
787f478
* Tue Jun 01 2021 Zamir SUN <sztsian@gmail.com> - 1.7-2
787f478
- Add python3-requests into Requires
787f478
dde9ff6
* Tue Jan 05 2021 Čestmír Kalina <ckalina@redhat.com> - 1.7-1
dde9ff6
- Initial Fedora commit.