-
Notifications
You must be signed in to change notification settings - Fork 17
/
selint.spec
47 lines (40 loc) · 1.11 KB
/
selint.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
Summary: SELinux policy source file checker
Name: selint
Version: 1.1.0
Release: 1%{?dist}
URL: https://github.com/SELinuxProject/selint
License: ASL 2.0
%global forgeurl https://github.com/SELinuxProject/selint
%global branch master
# handle not having forge macros on el7
%{!?forgesoure: %define forgesource %forgeurl/archive/%branch/selint-%branch.tar.gz}
%{!?forgesetup: %define forgesetup %setup -n %name-%branch}
%{!?forgemeta: %define forgemeta %nil}
%forgemeta
Source0: %{forgesource}
BuildRequires: autoconf autoconf-archive automake bison check check-devel flex gcc help2man libconfuse libconfuse-devel uthash-devel
# pkgconfig
Requires: libconfuse
%if 0%{?fedora} || 0%{?rhel} >= 8
Requires: check
%endif
%description
SELint is a program to perform static code analysis on SELinux policy source files
%prep
%forgesetup
%build
[[ -x ./configure ]] || ./autogen.sh
%if 0%{?rhel} == 7
%{configure} --without-check
%else
%{configure}
%endif
%{make_build}
%install
%{make_install}
%files
%license LICENSE
%doc CHANGELOG README
%{_bindir}/selint
%config(noreplace) %{_sysconfdir}/selint.conf
%{_mandir}/man1/selint.1.gz