Name: smatch Version: 1.73 Release: 1%{?dist} Summary: A static analyzer for C License: GPL-2.0-or-later AND MIT AND BSD-3-Clause URL: https://%{name}.sourceforge.net Source0: https://github.com/error27/%{name}/archive/refs/tags/%{version}.tar.gz Patch0: do-not-build-sparse-binaries.patch Patch1: fix-datadir-path.patch Patch2: use-distribution-ldflags.patch BuildRequires: gcc BuildRequires: make BuildRequires: openssl-devel BuildRequires: sqlite-devel Provides: bundled(sparse) %description Smatch is a static analysis tool for C. %prep %autosetup %build %if 0%{?rhel} %set_build_flags export CFLAGS="-std=gnu99 $CFLAGS" %endif %make_build PREFIX='%{_prefix}' %install %make_install PREFIX='%{_prefix}' %files %doc README %license GPL-2 LICENSE %{_bindir}/smatch %{_datadir}/%{name} %changelog * Tue Mar 14 2023 Lukáš Zaoral - 1.73-1 - Initial import