No pandoc in epel9. Build without html docs
This commit is contained in:
parent
055678f7d2
commit
0f9c2091de
|
@ -1,8 +1,10 @@
|
|||
%undefine __cmake_in_source_build
|
||||
# pandoc not available in epel9, yet. Do not do html docs
|
||||
%global html_docs 0
|
||||
|
||||
Name: cppcheck
|
||||
Version: 2.7.4
|
||||
Release: 1%{?dist}
|
||||
Release: 1%{?dist}.1
|
||||
Summary: Tool for static C/C++ code analysis
|
||||
License: GPLv3+
|
||||
URL: http://cppcheck.wiki.sourceforge.net/
|
||||
|
@ -17,7 +19,6 @@ BuildRequires: gcc-c++
|
|||
BuildRequires: pcre-devel
|
||||
BuildRequires: docbook-style-xsl
|
||||
BuildRequires: libxslt
|
||||
BuildRequires: pandoc
|
||||
BuildRequires: cmake
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: tinyxml2-devel >= 2.1.0
|
||||
|
@ -28,8 +29,10 @@ BuildRequires: z3-devel >= 4.7.1
|
|||
BuildRequires: qt5-qtbase-devel
|
||||
BuildRequires: qt5-qttools-devel
|
||||
BuildRequires: qt5-linguist
|
||||
BuildRequires: make
|
||||
|
||||
BuildRequires: make
|
||||
%if 0%{?html_docs}
|
||||
BuildRequires: pandoc
|
||||
%endif
|
||||
|
||||
%description
|
||||
Cppcheck is a static analysis tool for C/C++ code. Unlike C/C++
|
||||
|
@ -67,8 +70,10 @@ qhelpgenerator-qt5 online-help.qhcp -o online-help.qhc
|
|||
%build
|
||||
# Manuals
|
||||
make DB2MAN=%{_datadir}/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl man
|
||||
%if 0%{?html_docs}
|
||||
pandoc man/manual.md -o man/manual.html -s --number-sections --toc
|
||||
pandoc man/reference-cfg-format.md -o man/reference-cfg-format.html -s --number-sections --toc
|
||||
%endif
|
||||
|
||||
# Binaries
|
||||
# Upstream doesn't support shared libraries (unversioned solib)
|
||||
|
@ -96,7 +101,11 @@ cd %{_vpath_builddir}/bin
|
|||
./testrunner -g -q
|
||||
|
||||
%files
|
||||
%if 0%{?html_docs}
|
||||
%doc AUTHORS man/manual.html man/reference-cfg-format.html
|
||||
%else
|
||||
%doc AUTHORS
|
||||
%endif
|
||||
%license COPYING
|
||||
%{_datadir}/Cppcheck/
|
||||
%{_bindir}/cppcheck
|
||||
|
@ -113,6 +122,9 @@ cd %{_vpath_builddir}/bin
|
|||
%{_bindir}/cppcheck-htmlreport
|
||||
|
||||
%changelog
|
||||
* Thu May 05 2022 Troy Dawson <tdawson@redhat.com> - 2.7.4-1.1
|
||||
- No pandoc in epel9. Build without html docs
|
||||
|
||||
* Fri Mar 25 2022 Wolfgang Stöggl <c72578@yahoo.de> - 2.7.4-1
|
||||
- Update to 2.7.4
|
||||
|
||||
|
|
Loading…
Reference in New Issue