# check in RHEL-7 is too old %if 0%{?rhel} && 0%{?rhel} <= 7 %bcond_with tests %else %bcond_without tests %endif Summary: Static code analysis tool for SELinux policy source files Name: selint Version: 1.4.0 Release: 1%{?dist} URL: https://github.com/SELinuxProject/selint License: Apache-2.0 Source: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz BuildRequires: autoconf BuildRequires: autoconf-archive BuildRequires: automake BuildRequires: bison %if %{with tests} BuildRequires: pkgconfig(check) >= 0.11.0 %endif BuildRequires: flex BuildRequires: gcc BuildRequires: help2man BuildRequires: libconfuse-devel BuildRequires: make BuildRequires: uthash-devel %description SELint is a program to perform static code analysis on SELinux policy source files. SELint seeks to help policy developers write policy that is more maintainable, readable and secure, and to reduce the time spent debugging challenging policy issues. %prep %autosetup -p 1 %build autoreconf -fiv -Wall -Wno-portability %configure %{!?with_tests:--without-check} %make_build %install %make_install %if %{with tests} %check %make_build check %endif %files %license LICENSE NOTICE %doc CHANGELOG README %{_bindir}/selint %config(noreplace) %{_sysconfdir}/selint.conf %{_mandir}/man1/selint.1* %changelog * Wed Feb 08 2023 Juraj Marcin - 1.4.0-1 - v 1.4.0 * Mon Dec 19 2022 Vit Mojzis - 1.3.0-1 - v 1.3.0 - Silence warning in bison generated code - Drop dead stores - Declare file local variable static - Drop duplicate semicolons - Add missing fall through comment - Drop duplicate include - Update URLs after repository move - Add check example for W-012 - Add new check to warn about incorrect usage of audit_access permission - Warn on duplicate policy configuration files - Reduce recursion in free_policy_node - Support disable commands for tunable conditions - Support ifn?def in .if files * Fri Sep 02 2022 Vit Mojzis - 1.2.1-3 - v 1.2.1 * Tue Sep 22 2020 Vit Mojzis - 1.1.0-1 - First build