2009-04-30 05:52:27 +00:00
|
|
|
Name: cppcheck
|
2011-12-11 12:00:19 +00:00
|
|
|
Version: 1.52
|
2012-01-05 10:49:45 +00:00
|
|
|
Release: 2%{?dist}
|
2011-10-28 19:27:45 +00:00
|
|
|
Summary: Tool for static C/C++ code analysis
|
2009-04-30 05:52:27 +00:00
|
|
|
Group: Development/Languages
|
|
|
|
License: GPLv3+
|
|
|
|
URL: http://cppcheck.wiki.sourceforge.net/
|
|
|
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
2012-01-05 10:49:45 +00:00
|
|
|
# Add missing includes
|
|
|
|
Patch0: cppcheck-1.52-include.patch
|
2009-04-30 05:52:27 +00:00
|
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
|
|
2011-02-07 12:36:52 +00:00
|
|
|
BuildRequires: pcre-devel
|
2011-05-01 08:05:46 +00:00
|
|
|
BuildRequires: tinyxml-devel
|
2011-10-28 19:27:45 +00:00
|
|
|
BuildRequires: docbook-style-xsl
|
|
|
|
BuildRequires: libxslt
|
2011-02-07 12:36:52 +00:00
|
|
|
|
2009-04-30 05:52:27 +00:00
|
|
|
%description
|
2011-10-28 19:27:45 +00:00
|
|
|
Cppcheck is a static analysis tool for C/C++ code. Unlike C/C++
|
|
|
|
compilers and many other analysis tools it does not detect syntax
|
|
|
|
errors in the code. Cppcheck primarily detects the types of bugs that
|
|
|
|
the compilers normally do not detect. The goal is to detect only real
|
|
|
|
errors in the code (i.e. have zero false positives).
|
2009-04-30 05:52:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2012-01-05 10:49:45 +00:00
|
|
|
%patch0 -p1 -b .include
|
2011-05-01 08:05:46 +00:00
|
|
|
|
|
|
|
# Make sure bundled tinyxml is not used
|
|
|
|
rm -r externals/tinyxml
|
2010-01-18 15:08:59 +00:00
|
|
|
|
2009-04-30 05:52:27 +00:00
|
|
|
%build
|
2011-05-01 08:05:46 +00:00
|
|
|
# TINYXML= prevents use of bundled tinyxml
|
2011-10-28 19:27:45 +00:00
|
|
|
CXXFLAGS="%{optflags} -DNDEBUG $(pcre-config --cflags)" \
|
|
|
|
LDFLAGS="$RPM_LD_FLAGS" LIBS=-ltinyxml make TINYXML= \
|
|
|
|
DB2MAN=%{_datadir}/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl \
|
|
|
|
%{?_smp_mflags} all man
|
|
|
|
xsltproc --nonet -o man/manual.html \
|
|
|
|
%{_datadir}/sgml/docbook/xsl-stylesheets/xhtml/docbook.xsl \
|
|
|
|
man/manual.docbook
|
2009-04-30 05:52:27 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
install -D -p -m 755 cppcheck %{buildroot}%{_bindir}/cppcheck
|
2011-10-28 19:27:45 +00:00
|
|
|
install -D -p -m 644 cppcheck.1 %{buildroot}%{_mandir}/man1/cppcheck.1
|
2009-04-30 05:52:27 +00:00
|
|
|
|
2011-05-01 08:05:46 +00:00
|
|
|
%check
|
2011-10-28 19:27:45 +00:00
|
|
|
make TINYXML= check
|
2011-05-01 08:05:46 +00:00
|
|
|
|
2009-04-30 05:52:27 +00:00
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2011-10-28 19:27:45 +00:00
|
|
|
%doc AUTHORS COPYING man/manual.html
|
2009-04-30 05:52:27 +00:00
|
|
|
%{_bindir}/cppcheck
|
2011-10-28 19:27:45 +00:00
|
|
|
%{_mandir}/man1/cppcheck.1*
|
2009-04-30 05:52:27 +00:00
|
|
|
|
|
|
|
%changelog
|
2012-01-05 10:49:45 +00:00
|
|
|
* Thu Jan 05 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.52-2
|
|
|
|
- Add missing includes (fix FTBFS in rawhide).
|
|
|
|
|
2011-12-11 12:00:19 +00:00
|
|
|
* Sun Dec 11 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.52-1
|
|
|
|
- Update to 1.52.
|
|
|
|
|
2011-10-28 19:27:45 +00:00
|
|
|
* 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.
|
|
|
|
|
2011-10-09 11:09:04 +00:00
|
|
|
* Sun Oct 09 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.51-1
|
|
|
|
- Update to 1.51.
|
|
|
|
|
2011-08-19 09:11:50 +00:00
|
|
|
* Fri Aug 19 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.50-2
|
|
|
|
- Fix build on EPEL-4.
|
|
|
|
|
2011-08-14 15:48:52 +00:00
|
|
|
* Sun Aug 14 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.50-1
|
|
|
|
- Update to 1.50.
|
|
|
|
|
2011-06-13 13:13:37 +00:00
|
|
|
* Mon Jun 13 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.49-1
|
|
|
|
- Update to 1.49.
|
|
|
|
|
2011-05-01 08:05:46 +00:00
|
|
|
* Sat Apr 30 2011 Ville Skyttä <ville.skytta@iki.fi> - 1.48-2
|
|
|
|
- Build with system tinyxml and support for rules.
|
|
|
|
- Run test suite during build, don't include its sources in docs.
|
|
|
|
- Drop readme.txt from docs, it doesn't contain useful info after installed.
|
|
|
|
|
2011-04-15 17:25:24 +00:00
|
|
|
* Fri Apr 15 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.48-1
|
|
|
|
- Update to 1.48.
|
|
|
|
|
2011-02-08 11:41:48 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.47-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-02-07 10:49:51 +00:00
|
|
|
* Mon Feb 07 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.47-1
|
|
|
|
- Update to 1.47.
|
|
|
|
|
2010-12-30 12:35:00 +00:00
|
|
|
* Thu Dec 30 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.46.1-1
|
|
|
|
- Update to 1.46.1.
|
|
|
|
|
2010-12-15 10:43:04 +00:00
|
|
|
* Wed Dec 15 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.46-1
|
|
|
|
- Update to 1.46.
|
|
|
|
|
2010-10-04 10:47:04 +00:00
|
|
|
* Mon Oct 4 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.45-1
|
|
|
|
- Update to 1.45.
|
|
|
|
|
2010-07-24 11:23:10 +00:00
|
|
|
* Sat Jul 24 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.44-1
|
|
|
|
- Update to 1.44.
|
|
|
|
|
2010-05-09 12:50:20 +00:00
|
|
|
* Sun May 9 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.43-1
|
|
|
|
- Update to 1.43.
|
|
|
|
|
2010-03-10 18:07:54 +00:00
|
|
|
* Wed Mar 10 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.42-1
|
|
|
|
- Update to 1.42.
|
|
|
|
|
2010-01-18 15:08:59 +00:00
|
|
|
* Mon Jan 18 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.40-1
|
|
|
|
- Update to 1.40.
|
|
|
|
|
2009-12-27 09:59:45 +00:00
|
|
|
* Sun Dec 27 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.39-1
|
|
|
|
- Update to 1.39.
|
|
|
|
|
2009-11-07 10:15:44 +00:00
|
|
|
* Sat Nov 07 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.38-1
|
|
|
|
- Update to 1.38.
|
|
|
|
|
2009-09-22 13:24:59 +00:00
|
|
|
* Tue Sep 22 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.36-1
|
|
|
|
- Update to 1.36.
|
|
|
|
|
2009-07-24 19:34:04 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.34-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-09-22 13:24:59 +00:00
|
|
|
* Thu Jul 16 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.34-1
|
2009-07-16 13:48:51 +00:00
|
|
|
- Update to 1.34.
|
|
|
|
|
2009-09-22 13:24:59 +00:00
|
|
|
* Mon Apr 27 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.31-1
|
2009-04-30 05:52:27 +00:00
|
|
|
- First release.
|