|
|
19bffcf |
Name: cppcheck
|
|
|
1331bca |
Version: 1.59
|
|
|
4950016 |
Release: 1%{?dist}
|
|
|
5165102 |
Summary: Tool for static C/C++ code analysis
|
|
|
19bffcf |
Group: Development/Languages
|
|
|
19bffcf |
License: GPLv3+
|
|
|
19bffcf |
URL: http://cppcheck.wiki.sourceforge.net/
|
|
|
19bffcf |
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
|
|
19bffcf |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
19bffcf |
|
|
|
deaab33 |
BuildRequires: pcre-devel
|
|
|
3edc4fb |
BuildRequires: tinyxml-devel
|
|
|
5165102 |
BuildRequires: docbook-style-xsl
|
|
|
5165102 |
BuildRequires: libxslt
|
|
|
deaab33 |
|
|
|
19bffcf |
%description
|
|
|
5165102 |
Cppcheck is a static analysis tool for C/C++ code. Unlike C/C++
|
|
|
5165102 |
compilers and many other analysis tools it does not detect syntax
|
|
|
5165102 |
errors in the code. Cppcheck primarily detects the types of bugs that
|
|
|
5165102 |
the compilers normally do not detect. The goal is to detect only real
|
|
|
5165102 |
errors in the code (i.e. have zero false positives).
|
|
|
19bffcf |
|
|
|
19bffcf |
|
|
|
19bffcf |
%prep
|
|
|
19bffcf |
%setup -q
|
|
|
3edc4fb |
|
|
|
3edc4fb |
# Make sure bundled tinyxml is not used
|
|
|
3edc4fb |
rm -r externals/tinyxml
|
|
|
3e13dbe |
|
|
|
19bffcf |
%build
|
|
|
3edc4fb |
# TINYXML= prevents use of bundled tinyxml
|
|
|
5165102 |
CXXFLAGS="%{optflags} -DNDEBUG $(pcre-config --cflags)" \
|
|
|
5165102 |
LDFLAGS="$RPM_LD_FLAGS" LIBS=-ltinyxml make TINYXML= \
|
|
|
5165102 |
DB2MAN=%{_datadir}/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl \
|
|
|
5165102 |
%{?_smp_mflags} all man
|
|
|
5165102 |
xsltproc --nonet -o man/manual.html \
|
|
|
5165102 |
%{_datadir}/sgml/docbook/xsl-stylesheets/xhtml/docbook.xsl \
|
|
|
5165102 |
man/manual.docbook
|
|
|
19bffcf |
|
|
|
19bffcf |
%install
|
|
|
19bffcf |
rm -rf %{buildroot}
|
|
|
19bffcf |
install -D -p -m 755 cppcheck %{buildroot}%{_bindir}/cppcheck
|
|
|
5165102 |
install -D -p -m 644 cppcheck.1 %{buildroot}%{_mandir}/man1/cppcheck.1
|
|
|
19bffcf |
|
|
|
3edc4fb |
%check
|
|
|
5165102 |
make TINYXML= check
|
|
|
3edc4fb |
|
|
|
19bffcf |
%clean
|
|
|
19bffcf |
rm -rf %{buildroot}
|
|
|
19bffcf |
|
|
|
19bffcf |
%files
|
|
|
19bffcf |
%defattr(-,root,root,-)
|
|
|
5165102 |
%doc AUTHORS COPYING man/manual.html
|
|
|
19bffcf |
%{_bindir}/cppcheck
|
|
|
5165102 |
%{_mandir}/man1/cppcheck.1*
|
|
|
19bffcf |
|
|
|
19bffcf |
%changelog
|
|
|
1331bca |
* Mon Apr 01 2013 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.59-1
|
|
|
1331bca |
- Update to 1.59.
|
|
|
1331bca |
|
|
|
2483d96 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.58-2
|
|
|
2483d96 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
2483d96 |
|
|
|
c943825 |
* Sun Jan 13 2013 François Cami <fcami@fedoraproject.org> - 1.58-1
|
|
|
c943825 |
- Update to 1.58.
|
|
|
c943825 |
|
|
|
a7dee13 |
* Tue Sep 18 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.57-1
|
|
|
a7dee13 |
- Update to 1.57.
|
|
|
a7dee13 |
|
|
|
7839e1e |
* Tue Sep 18 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.56-1
|
|
|
7839e1e |
- Update to 1.56.
|
|
|
7839e1e |
|
|
|
3fec5d1 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.55-2
|
|
|
3fec5d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
3fec5d1 |
|
|
|
b4fb2ce |
* Tue Jul 10 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.55-1
|
|
|
b4fb2ce |
- Update to 1.55.
|
|
|
b4fb2ce |
|
|
|
c0488c2 |
* Sun Apr 15 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.54-1
|
|
|
c0488c2 |
- Update to 1.54.
|
|
|
c0488c2 |
|
|
|
9932020 |
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.53-2
|
|
|
9932020 |
- Rebuilt for c++ ABI breakage
|
|
|
9932020 |
|
|
|
4950016 |
* Sat Feb 11 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.53-1
|
|
|
4950016 |
- Update to 1.53.
|
|
|
4950016 |
|
|
|
0241ca4 |
* Thu Jan 05 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.52-2
|
|
|
0241ca4 |
- Add missing includes (fix FTBFS in rawhide).
|
|
|
0241ca4 |
|
|
|
a9052bd |
* Sun Dec 11 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.52-1
|
|
|
a9052bd |
- Update to 1.52.
|
|
|
a9052bd |
|
|
|
5165102 |
* Wed Oct 26 2011 Ville Skyttä <ville.skytta@iki.fi> - 1.51-2
|
|
|
5165102 |
- Include man page and more other docs.
|
|
|
5165102 |
- Build with $RPM_LD_FLAGS.
|
|
|
5165102 |
- Improve summary and description.
|
|
|
5165102 |
|
|
|
07c17df |
* Sun Oct 09 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.51-1
|
|
|
07c17df |
- Update to 1.51.
|
|
|
07c17df |
|
|
|
c99f4ad |
* Fri Aug 19 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.50-2
|
|
|
c99f4ad |
- Fix build on EPEL-4.
|
|
|
c99f4ad |
|
|
|
ec4b373 |
* Sun Aug 14 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.50-1
|
|
|
ec4b373 |
- Update to 1.50.
|
|
|
ec4b373 |
|
|
|
66f27f4 |
* Mon Jun 13 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.49-1
|
|
|
66f27f4 |
- Update to 1.49.
|
|
|
66f27f4 |
|
|
|
3edc4fb |
* Sat Apr 30 2011 Ville Skyttä <ville.skytta@iki.fi> - 1.48-2
|
|
|
3edc4fb |
- Build with system tinyxml and support for rules.
|
|
|
3edc4fb |
- Run test suite during build, don't include its sources in docs.
|
|
|
3edc4fb |
- Drop readme.txt from docs, it doesn't contain useful info after installed.
|
|
|
3edc4fb |
|
|
|
ba6e1d3 |
* Fri Apr 15 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.48-1
|
|
|
ba6e1d3 |
- Update to 1.48.
|
|
|
ba6e1d3 |
|
|
|
746669a |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.47-2
|
|
|
746669a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
746669a |
|
|
|
05c3775 |
* Mon Feb 07 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.47-1
|
|
|
05c3775 |
- Update to 1.47.
|
|
|
05c3775 |
|
|
|
7b0f564 |
* Thu Dec 30 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.46.1-1
|
|
|
7b0f564 |
- Update to 1.46.1.
|
|
|
7b0f564 |
|
|
|
9a43d50 |
* Wed Dec 15 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.46-1
|
|
|
9a43d50 |
- Update to 1.46.
|
|
|
9a43d50 |
|
|
|
9268f9f |
* Mon Oct 4 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.45-1
|
|
|
9268f9f |
- Update to 1.45.
|
|
|
9268f9f |
|
|
|
9407102 |
* Sat Jul 24 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.44-1
|
|
|
9407102 |
- Update to 1.44.
|
|
|
9407102 |
|
|
|
04f6a9f |
* Sun May 9 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.43-1
|
|
|
04f6a9f |
- Update to 1.43.
|
|
|
04f6a9f |
|
|
|
3011d50 |
* Wed Mar 10 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.42-1
|
|
|
3011d50 |
- Update to 1.42.
|
|
|
3011d50 |
|
|
|
3e13dbe |
* Mon Jan 18 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.40-1
|
|
|
3e13dbe |
- Update to 1.40.
|
|
|
3e13dbe |
|
|
|
fa69a69 |
* Sun Dec 27 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.39-1
|
|
|
fa69a69 |
- Update to 1.39.
|
|
|
fa69a69 |
|
|
|
c259711 |
* Sat Nov 07 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.38-1
|
|
|
c259711 |
- Update to 1.38.
|
|
|
c259711 |
|
|
|
3cd029b |
* Tue Sep 22 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.36-1
|
|
|
3cd029b |
- Update to 1.36.
|
|
|
3cd029b |
|
|
|
6d50dff |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.34-2
|
|
|
6d50dff |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
6d50dff |
|
|
|
3cd029b |
* Thu Jul 16 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.34-1
|
|
|
632af98 |
- Update to 1.34.
|
|
|
632af98 |
|
|
|
3cd029b |
* Mon Apr 27 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.31-1
|
|
|
19bffcf |
- First release.
|