19bffcf
Name:		cppcheck
084b1e7
Version:	1.53
61e94c5
Release:	1%{?dist}
fa577fc
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
2888fb3
BuildRequires:	tinyxml-devel
fa577fc
BuildRequires:	docbook-style-xsl
fa577fc
BuildRequires:	libxslt
deaab33
19bffcf
%description
fa577fc
Cppcheck is a static analysis tool for C/C++ code. Unlike C/C++
fa577fc
compilers and many other analysis tools it does not detect syntax
fa577fc
errors in the code. Cppcheck primarily detects the types of bugs that
fa577fc
the compilers normally do not detect. The goal is to detect only real
fa577fc
errors in the code (i.e. have zero false positives).
19bffcf
19bffcf
19bffcf
%prep
19bffcf
%setup -q
2888fb3
2888fb3
# Make sure bundled tinyxml is not used
2888fb3
rm -r externals/tinyxml
3e13dbe
19bffcf
%build
2888fb3
# TINYXML= prevents use of bundled tinyxml
fa577fc
CXXFLAGS="%{optflags} -DNDEBUG $(pcre-config --cflags)" \
fa577fc
    LDFLAGS="$RPM_LD_FLAGS" LIBS=-ltinyxml make TINYXML= \
fa577fc
    DB2MAN=%{_datadir}/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl \
fa577fc
    %{?_smp_mflags} all man
fa577fc
xsltproc --nonet -o man/manual.html \
fa577fc
    %{_datadir}/sgml/docbook/xsl-stylesheets/xhtml/docbook.xsl \
fa577fc
    man/manual.docbook
19bffcf
19bffcf
%install
19bffcf
rm -rf %{buildroot}
19bffcf
install -D -p -m 755 cppcheck %{buildroot}%{_bindir}/cppcheck
fa577fc
install -D -p -m 644 cppcheck.1 %{buildroot}%{_mandir}/man1/cppcheck.1
19bffcf
2888fb3
%check
fa577fc
make TINYXML= check
2888fb3
19bffcf
%clean
19bffcf
rm -rf %{buildroot}
19bffcf
19bffcf
%files
19bffcf
%defattr(-,root,root,-)
fa577fc
%doc AUTHORS COPYING man/manual.html
19bffcf
%{_bindir}/cppcheck
fa577fc
%{_mandir}/man1/cppcheck.1*
19bffcf
19bffcf
%changelog
084b1e7
* Sat Feb 11 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.53-1
084b1e7
- Update to 1.53.
084b1e7
084b1e7
* Thu Jan 05 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.52-2
084b1e7
- Add missing includes (fix FTBFS in rawhide).
084b1e7
fa577fc
* Sun Dec 11 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.52-1
fa577fc
- Update to 1.52.
fa577fc
fa577fc
* Wed Oct 26 2011 Ville Skyttä <ville.skytta@iki.fi> - 1.51-2
fa577fc
- Include man page and more other docs.
fa577fc
- Build with $RPM_LD_FLAGS.
fa577fc
- Improve summary and description.
fa577fc
d008f8c
* Sun Oct 09 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.51-1
d008f8c
- Update to 1.51.
d008f8c
d008f8c
* Fri Aug 19 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.50-2
d008f8c
- Fix build on EPEL-4.
d008f8c
1d57432
* Sun Aug 14 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.50-1
1d57432
- Update to 1.50.
1d57432
2888fb3
* Mon Jun 13 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.49-1
2888fb3
- Update to 1.49.
2888fb3
2888fb3
* Sat Apr 30 2011 Ville Skyttä <ville.skytta@iki.fi> - 1.48-2
2888fb3
- Build with system tinyxml and support for rules.
2888fb3
- Run test suite during build, don't include its sources in docs.
2888fb3
- Drop readme.txt from docs, it doesn't contain useful info after installed.
2888fb3
61e94c5
* Fri Apr 15 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.48-1
61e94c5
- Update to 1.48.
61e94c5
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.