Commit 3dc83a0c authored by Rocky Automation's avatar Rocky Automation 📺
Browse files

import cppcheck-2.4-1.el8

parent e04fb002
2a7da43886aa2b18ede075cb153b5cf0d569a2c2 SOURCES/cppcheck-1.83.tar.gz
b8be5b9cb040608af7bb7f9de88fd94f7cc59c12 SOURCES/cppcheck-2.4.tar.bz2
Name: cppcheck
Version: 1.83
Version: 2.4
Release: 1%{?dist}
Summary: Tool for static C/C++ code analysis
Group: Development/Languages
License: GPLv3+
# Use system tinyxml2
Patch0: cppcheck-1.83-tinyxml.patch
# Fix location of translations
Patch1: cppcheck-1.81-translations.patch
# Set location of config files
Patch2: cppcheck-1.78-cfgdir.patch
BuildRequires: gcc-c++
BuildRequires: pcre-devel
BuildRequires: tinyxml2-devel >= 2.1.0
BuildRequires: tinyxml2-devel >= 2.6.0
BuildRequires: docbook-style-xsl
BuildRequires: libxslt
BuildRequires: pandoc
BuildRequires: qt5-devel
BuildRequires: cmake
BuildRequires: desktop-file-utils
......@@ -41,18 +35,11 @@ This package contains the graphical user interface for cppcheck.
%setup -q
%patch0 -p1 -b .tinyxml
%patch1 -p1 -b .translations
%patch2 -p1 -b .cfgdir
# Make sure bundled tinyxml is not used
rm -r externals/tinyxml
# Manuals
make DB2MAN=%{_datadir}/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl man
xsltproc --nonet -o man/manual.html \
%{_datadir}/sgml/docbook/xsl-stylesheets/xhtml/docbook.xsl \
make DB2MAN=%{_datadir}/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl man
man/ man/manual
# Binaries
mkdir objdir-%{_target_platform}
......@@ -78,8 +65,9 @@ cd objdir-%{_target_platform}/bin
%doc AUTHORS COPYING man/manual.html
%files gui
......@@ -91,6 +79,17 @@ cd objdir-%{_target_platform}/bin
* Wed Jun 16 2021 Dodji Seketeli <> - 2.4-1
- Update to 2.4 upstream tarball
- Drop patches: cppcheck-1.83-tinyxml.patch, cppcheck-1.81-translations.patch, cppcheck-1.78-cfgdir.patch.
- Bump BuildRequires for tinyxml2-devel to 2.6.0 at least.
- Add BuildRequires pandoc.
- There is no more bundled tinyxml in this new version of cppcheck.
- Use the man/ script to build the html version of the manual
- Adjust $datadir/CppCheck to $datadir/Cppcheck.
- Add $bindir/cppcheck*.qm files to the package.
- Resolves: rhbz#1959478
* Sat Apr 14 2018 Susi Lehtola <> - 1.83-1
- Update to 1.83.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment