This action will force synchronization from src-openEuler/cppcheck, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
Name: cppcheckVersion: 2.18.0Release: 1Summary: Tool for static C/C++ code analysisLicense: GPL-3.0-or-laterURL: https://cppcheck.sourceforge.io/Source0: https://github.com/danmar/%{name}/archive/%{version}/%{name}-%{version}.tar.gzPatch0000: cppcheck-2.2-translations.patchBuildRequires: gcc-c++ pcre-devel docbook-style-xsl libxslt desktop-file-utils tinyxml2-devel >= 2.1.0BuildRequires: cmake >= 3.13BuildRequires: cmake(Qt6Core)BuildRequires: cmake(Qt6Gui)BuildRequires: cmake(Qt6Help)BuildRequires: cmake(Qt6LinguistTools)BuildRequires: cmake(Qt6Network)BuildRequires: cmake(Qt6PrintSupport)BuildRequires: cmake(Qt6Widgets)BuildRequires: qt6-doctoolsBuildRequires: boost-develBuildRequires: python3 >= 3.7Requires: python3-pygments python3-unversioned-commandProvides: %{name}-htmlreport = %{version}-%{release}Obsoletes: %{name}-htmlreport < %{version}-%{release}%descriptionCppcheck is a static analysis tool for C/C++ code.Cppcheck primarily detects only real errors in the code (i.e. have zero false positives)instead of syntax errors which C/C++ compilers and many other analysis tools detect commonly.%package guiSummary: Graphical user interface for cppcheckRequires: %{name}%{?_isa} = %{version}-%{release}%description guiThis package contains the graphical user interface for cppcheck.%package_help%prep%autosetup -p1rm -r externals/tinyxml2cd gui/help%{_qt6_libexecdir}/qhelpgenerator online-help.qhcp -o online-help.qhc%build%make_build DB2MAN=%{_datadir}/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl manxsltproc --nonet -o man/manual.html %{_datadir}/sgml/docbook/xsl-stylesheets/xhtml/docbook.xsl man/manual-ja.docbook%cmake \-DCMAKE_BUILD_TYPE=Release \-DHAVE_RULES=1 \-DUSE_MATCHCOMPILER=yes \-DBUILD_GUI=1 \-DUSE_QT6=1 \-DBUILD_SHARED_LIBS:BOOL=OFF \-DBUILD_TESTS=1 \-DCFGDIR=%{_datadir}/CppCheck \-DUSE_BUNDLED_TINYXML2=OFF \-DENABLE_OSS_FUZZ=OFF \-DUSE_BOOST=1%cmake_build%install%cmake_installinstall -D -p -m 644 cppcheck.1 %{buildroot}%{_mandir}/man1/cppcheck.1install -D -p -m 755 htmlreport/cppcheck-htmlreport %{buildroot}%{_bindir}/cppcheck-htmlreport# Install desktop filedesktop-file-validate %{buildroot}%{_datadir}/applications/cppcheck-gui.desktop# Install logoinstall -D -p -m 644 gui/cppcheck-gui.png %{buildroot}%{_datadir}/pixmaps/cppcheck-gui.png# Install the Qt online-help fileinstall -D -p -m 644 gui/help/online-help.qhc %{buildroot}%{_datadir}/Cppcheck/help/online-help.qhcinstall -D -p -m 644 gui/help/online-help.qch %{buildroot}%{_datadir}/Cppcheck/help/online-help.qchrm -fr %{buildroot}%{_libidr} %{buildroot}%{_usrsrc}%check%ctest -E "TestCppcheck|TestCondition"%files%license COPYING%doc AUTHORS%{_datadir}/Cppcheck%{_bindir}/cppcheck%{_bindir}/cppcheck-htmlreport%files gui%{_bindir}/cppcheck-gui%{_datadir}/applications/cppcheck-gui.desktop%{_datadir}/pixmaps/cppcheck-gui.png%{_datadir}/icons/hicolor/64x64/apps/cppcheck-gui.png%{_datadir}/icons/hicolor/scalable/apps/cppcheck-gui.svg%files help%doc man/manual.html%{_mandir}/man1/cppcheck.1*%changelog* Thu Jul 24 2025 Funda Wang <fundawang@yeah.net> - 2.18.0-1- update to 2.18.0* Thu Jul 03 2025 wangkai <13474090681@163.com> - 2.17.1-1- Update to 2.17.1* Thu Nov 28 2024 xu_ping <707078654@qq.com> - 2.16.0-1- Upgrade to version 2.16.0.* Removed CMake option 'USE_THREADS' in favor of 'DISALLOW_THREAD_EXECUTOR'.* Removed deprecated 'Makefile' option 'SRCDIR'.* Added CMake option 'DISALLOW_THREAD_EXECUTOR' to control the inclusion ofthe executor which performs the analysis within a thread of the main process.* Removed deprecated platform type 'Unspecified'* Do not show messages during analysis that are inactivated in the toolbar* implement evaluation order checker for c++11 and later* Add "remark comments" that can be used to generate reports with justifications for warnings* Added command-line option --cpp-header-probe* The maximum value for --max-ctu-depth is currently capped at 10* The previously deprecated support for Python 2.7 has been removed* The new option --check-level= has been added that controls how much checking is made by Cppcheck.The default checking level is "normal". If you feel that you can wait longer on results you can use --check-level=exhaustive.* Thu Nov 21 2024 Funda Wang <fundawang@yeah.net> - 2.13.2-2- adopt to new cmake macro* Thu Feb 1 2024 liyanan <liyanan61@h-partners.com> - 2.13.2-1- Upgrade to version 2.13.2.* Tue Jul 25 2023 xu_ping <707078654@qq.com> - 2.11.1-1- Upgrade to version 2.11.1.* Tue Jan 18 2022 SimpleUpdate Robot <tc@openeuler.org> - 2.6.3-1- Upgrade to version 2.6.3* Tue Aug 10 2021 Shenmei Tu <tushenmei@huawei.com> - 1.83-8- bugfix-SIGSTKSZ-not-constant.patch* Thu Mar 04 2021 maminjie <maminjie1@huawei.com> - 1.83-7- Add requires python3-unversioned-command to resolve compatibility* Fri Sep 11 2020 wutao <wutao61@huawei.com> - 1.83-6- change requires to python3* Mon Nov 18 2019 lihao <lihao129@huawei.com> - 1.83-5- Package Init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。