Add htmlreport tool.
This commit is contained in:
parent
da69b0aa3f
commit
1d82217884
@ -6,9 +6,8 @@
|
|||||||
|
|
||||||
Name: cppcheck
|
Name: cppcheck
|
||||||
Version: 1.83
|
Version: 1.83
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Tool for static C/C++ code analysis
|
Summary: Tool for static C/C++ code analysis
|
||||||
Group: Development/Languages
|
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: http://cppcheck.wiki.sourceforge.net/
|
URL: http://cppcheck.wiki.sourceforge.net/
|
||||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||||
@ -44,13 +43,26 @@ errors in the code (i.e. have zero false positives).
|
|||||||
%if %{gui}
|
%if %{gui}
|
||||||
%package gui
|
%package gui
|
||||||
Summary: Graphical user interface for cppcheck
|
Summary: Graphical user interface for cppcheck
|
||||||
Group: Applications/Engineering
|
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
%description gui
|
%description gui
|
||||||
This package contains the graphical user interface for cppcheck.
|
This package contains the graphical user interface for cppcheck.
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%package htmlreport
|
||||||
|
Summary: HTML reporting for cppcheck
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
%if 0%{?rhel} > 0 && 0%{?rhel} < 8
|
||||||
|
# RHEL packages aren't versioned
|
||||||
|
Requires: python-pygments
|
||||||
|
%else
|
||||||
|
Requires: python2-pygments
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description htmlreport
|
||||||
|
This package contains the Python utility for generating html reports
|
||||||
|
from xml files first generated using cppcheck.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .tinyxml
|
%patch0 -p1 -b .tinyxml
|
||||||
@ -86,6 +98,10 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/cppcheck-gui.desktop
|
|||||||
install -D -p -m 644 gui/cppcheck-gui.png %{buildroot}%{_datadir}/pixmaps/cppcheck-gui.png
|
install -D -p -m 644 gui/cppcheck-gui.png %{buildroot}%{_datadir}/pixmaps/cppcheck-gui.png
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Install htmlreport
|
||||||
|
install -D -p -m 755 htmlreport/cppcheck-htmlreport %{buildroot}%{_bindir}/cppcheck-htmlreport
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
cd objdir-%{_target_platform}/bin
|
cd objdir-%{_target_platform}/bin
|
||||||
./testrunner -g -q
|
./testrunner -g -q
|
||||||
@ -105,7 +121,13 @@ cd objdir-%{_target_platform}/bin
|
|||||||
%{_datadir}/icons/hicolor/scalable/apps/cppcheck-gui.svg
|
%{_datadir}/icons/hicolor/scalable/apps/cppcheck-gui.svg
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%files htmlreport
|
||||||
|
%{_bindir}/cppcheck-htmlreport
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jun 02 2018 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.83-2
|
||||||
|
- Add htmlreport tool.
|
||||||
|
|
||||||
* Sat Apr 14 2018 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.83-1
|
* Sat Apr 14 2018 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.83-1
|
||||||
- GUI no longer available on RHEL 7 due to Qt5 dependency.
|
- GUI no longer available on RHEL 7 due to Qt5 dependency.
|
||||||
- Update to 1.83.
|
- Update to 1.83.
|
||||||
|
Loading…
Reference in New Issue
Block a user