Include man page and more other docs.
Build with $RPM_LD_FLAGS. Improve summary and description.
This commit is contained in:
parent
68cf0f5c3c
commit
5165102588
@ -1,7 +1,7 @@
|
|||||||
Name: cppcheck
|
Name: cppcheck
|
||||||
Version: 1.51
|
Version: 1.51
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: A tool for static C/C++ code analysis
|
Summary: Tool for static C/C++ code analysis
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: http://cppcheck.wiki.sourceforge.net/
|
URL: http://cppcheck.wiki.sourceforge.net/
|
||||||
@ -10,16 +10,15 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|||||||
|
|
||||||
BuildRequires: pcre-devel
|
BuildRequires: pcre-devel
|
||||||
BuildRequires: tinyxml-devel
|
BuildRequires: tinyxml-devel
|
||||||
|
BuildRequires: docbook-style-xsl
|
||||||
|
BuildRequires: libxslt
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This program tries to detect bugs that your C/C++ compiler don't see.
|
Cppcheck is a static analysis tool for C/C++ code. Unlike C/C++
|
||||||
The goal is no false positives.
|
compilers and many other analysis tools it does not detect syntax
|
||||||
|
errors in the code. Cppcheck primarily detects the types of bugs that
|
||||||
Your compiler can detect many problems that cppcheck don't try to detect.
|
the compilers normally do not detect. The goal is to detect only real
|
||||||
We recommend that you enable as many warnings as possible in your compiler.
|
errors in the code (i.e. have zero false positives).
|
||||||
|
|
||||||
Cppcheck is versatile. You can check non-standard code that includes
|
|
||||||
various compiler extensions, inline assembly code, etc.
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -30,32 +29,37 @@ rm -r externals/tinyxml
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
# TINYXML= prevents use of bundled tinyxml
|
# TINYXML= prevents use of bundled tinyxml
|
||||||
%if 0%{?rhel} == 4
|
CXXFLAGS="%{optflags} -DNDEBUG $(pcre-config --cflags)" \
|
||||||
make CXXFLAGS="%{optflags} -I%{_includedir}/pcre -DNDEBUG -DHAVE_RULES" TINYXML= LDFLAGS="-ltinyxml -lpcre" %{?_smp_mflags}
|
LDFLAGS="$RPM_LD_FLAGS" LIBS=-ltinyxml make TINYXML= \
|
||||||
%else
|
DB2MAN=%{_datadir}/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl \
|
||||||
make CXXFLAGS="%{optflags} -DNDEBUG -DHAVE_RULES" TINYXML= LDFLAGS="-ltinyxml -lpcre" %{?_smp_mflags}
|
%{?_smp_mflags} all man
|
||||||
%endif
|
xsltproc --nonet -o man/manual.html \
|
||||||
|
%{_datadir}/sgml/docbook/xsl-stylesheets/xhtml/docbook.xsl \
|
||||||
|
man/manual.docbook
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
install -D -p -m 755 cppcheck %{buildroot}%{_bindir}/cppcheck
|
install -D -p -m 755 cppcheck %{buildroot}%{_bindir}/cppcheck
|
||||||
|
install -D -p -m 644 cppcheck.1 %{buildroot}%{_mandir}/man1/cppcheck.1
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if 0%{?rhel} == 4
|
make TINYXML= check
|
||||||
make CXXFLAGS="%{optflags} -I%{_includedir}/pcre -DNDEBUG -DHAVE_RULES" TINYXML= LDFLAGS="-ltinyxml -lpcre" %{?_smp_mflags} check
|
|
||||||
%else
|
|
||||||
make CXXFLAGS="%{optflags} -DNDEBUG -DHAVE_RULES" TINYXML= LDFLAGS="-ltinyxml -lpcre" %{?_smp_mflags} check
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING
|
%doc AUTHORS COPYING man/manual.html
|
||||||
%{_bindir}/cppcheck
|
%{_bindir}/cppcheck
|
||||||
|
%{_mandir}/man1/cppcheck.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 26 2011 Ville Skyttä <ville.skytta@iki.fi> - 1.51-2
|
||||||
|
- Include man page and more other docs.
|
||||||
|
- Build with $RPM_LD_FLAGS.
|
||||||
|
- Improve summary and description.
|
||||||
|
|
||||||
* Sun Oct 09 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.51-1
|
* Sun Oct 09 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.51-1
|
||||||
- Update to 1.51.
|
- Update to 1.51.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user