-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigk.spec
64 lines (47 loc) · 1.71 KB
/
configk.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
%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 <[email protected]> - 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 <[email protected]> - 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 <[email protected]> - 0.2-2
- Update spec file as per review comments BZ#2259602
* Wed Jan 10 2024 pjp <[email protected]> - 0.2-1
- Initial config-kernel package