%global commit 66403648970d7cb11d1e48555b014cb9ce78818d %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: config-kernel Version: 0.2^%{shortcommit} Release: 4%{?dist} Summary: An easy way to edit kernel configuration files and templates License: GPL-2.0-or-later URL: https://github.com/pjps/config-kernel Source0: %{URL}/archive/%{commit}/%{name}-%{commit}.tar.gz BuildRequires: bison BuildRequires: bison-devel BuildRequires: flex BuildRequires: gcc BuildRequires: make %description config-kernel tool helps to edit kernel configuration files and templates. User can query, enable, disable or toggle CONFIG options via command line switch or an $EDITOR program, without worrying about option dependencies. %prep %autosetup -n %{name}-%{commit} %build CFLAGS="${CFLAGS} -g -fPIE -pie" \ %make_build %{?_smp_mlags} %check ./configk -h > /dev/null ./configk -v %install mkdir -p %{buildroot}/%{_bindir} mkdir -p %{buildroot}/%{_mandir}/man1 install -m 0755 configk %{buildroot}/%{_bindir}/ install -m 0644 configk.1 %{buildroot}/%{_mandir}/man1/ %files %doc README.md %license COPYING %{_bindir}/configk %{_mandir}/man1/configk.1.gz %changelog * Fri Feb 09 2024 pjp - 0.2^6640364-4 - Add "-fPIE -pie" to CFLAGS to make pie executable - Remove linkage to -lfl to avoid rpmlint(1) warning * Tue Feb 06 2024 pjp - 0.2^18b6853-3 - Fix compiler warnings and install a user manual - Revise spec file as per review comments BZ#2259602 * Wed Jan 31 2024 pjp - 0.2-2 - Update spec file as per review comments BZ#2259602 * Wed Jan 10 2024 pjp - 0.2-1 - Initial config-kernel package