From 061eacf9cae3784c809d29c7ac8df4d3d0c03c40 Mon Sep 17 00:00:00 2001 From: Susi Lehtola Date: Wed, 17 Jun 2020 11:48:46 +0200 Subject: [PATCH] No need for EPEL specifics in spec since cppcheck is included in RHEL8. --- cppcheck.spec | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/cppcheck.spec b/cppcheck.spec index da543c6..da6ba21 100644 --- a/cppcheck.spec +++ b/cppcheck.spec @@ -3,7 +3,7 @@ Name: cppcheck Version: 2.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Tool for static C/C++ code analysis License: GPLv3+ URL: http://cppcheck.wiki.sourceforge.net/ @@ -28,14 +28,9 @@ BuildRequires: qt5-qtbase-devel BuildRequires: qt5-linguist %if %{gui} -%if 0%{?rhel} >= 7 -BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: cmake3 -%else BuildRequires: python3-devel BuildRequires: cmake BuildRequires: z3-devel >= 4.7.1 -%endif %else Obsoletes: %{name}-gui < %{version}-%{release} %endif @@ -59,12 +54,7 @@ This package contains the graphical user interface for cppcheck. %package htmlreport Summary: HTML reporting for cppcheck Requires: %{name}%{?_isa} = %{version}-%{release} -%if 0%{?rhel} >= 7 -# RHEL packages aren't versioned -Requires: python%{python3_pkgversion}-pygments -%else Requires: python3-pygments -%endif %description htmlreport This package contains the Python utility for generating html reports @@ -88,11 +78,7 @@ pandoc man/reference-cfg-format.md -o man/reference-cfg-format.html -s --number- mkdir objdir-%{_target_platform} cd objdir-%{_target_platform} # Upstream doesn't support shared libraries (unversioned solib) -%if 0%{?rhel} >= 7 -%cmake3 .. -DCMAKE_BUILD_TYPE=Release -DUSE_MATCHCOMPILER=yes -DHAVE_RULES=yes -DBUILD_GUI=%{gui} -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_TESTS=yes -DFILESDIR=%{_datadir}/Cppcheck -%else %cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_MATCHCOMPILER=yes -DUSE_Z3=yes -DHAVE_RULES=yes -DBUILD_GUI=%{gui} -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_TESTS=yes -DFILESDIR=%{_datadir}/Cppcheck -%endif # SMP make doesn't seem to work make cppcheck @@ -136,6 +122,9 @@ cd objdir-%{_target_platform}/bin %{_bindir}/cppcheck-htmlreport %changelog +* Tue Jun 16 2020 Susi Lehtola - 2.1-3 +- Drop EPEL specifics since cppcheck is included in RHEL8. + * Tue Jun 16 2020 Wolfgang Stöggl - 2.1-2 - Enable Z3 on Fedora builds.