Accepting request 1266321 from home:AndreasStieger:branches:devel:tools

- build without rules support on Tumbleweed to remove pcre
  dependency


See https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/BK3SPPFOM3LI6K5PTXPKZMKMIUIPOEXS/

OBS-URL: https://build.opensuse.org/request/show/1266321
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=148
This commit is contained in:
2025-04-02 07:38:15 +00:00
committed by Git OBS Bridge
parent 41a12228e3
commit 8d5bce45ed
2 changed files with 18 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Apr 1 21:02:32 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- build without rules support on Tumbleweed to remove pcre
dependency
-------------------------------------------------------------------
Wed Feb 26 09:39:24 UTC 2025 - Dirk Müller <dmueller@suse.com>

View File

@@ -16,6 +16,11 @@
#
%if 0%{?suse_version} > 1600
%bcond_with rules
%else
%bcond_without rules
%endif
Name: cppcheck
Version: 2.17.1
Release: 0
@@ -39,7 +44,9 @@ BuildRequires: pkgconfig(Qt6Network)
BuildRequires: pkgconfig(Qt6PrintSupport)
BuildRequires: pkgconfig(Qt6Test)
BuildRequires: pkgconfig(Qt6Widgets)
%if %{with rules}
BuildRequires: pkgconfig(libpcre)
%endif
ExcludeArch: %ix86 %arm
Requires: python3-Pygments
@@ -82,7 +89,11 @@ doesn't see.
-DFILESDIR="%{_datadir}/%{name}" \
-DBUILD_GUI=ON \
-DBUILD_TESTS=ON \
-DHAVE_RULES=yes \
%if %{with rules}
-DHAVE_RULES=ON \
%else
-DHAVE_RULES=OFF \
%endif
-DUSE_QT6=yes \
-DUSE_Z3=yes
%cmake_build