19bffcf
Name:		cppcheck
632af98
Version:	1.34
19bffcf
Release:	1%{?dist}
19bffcf
Summary:	A 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
19bffcf
%description
19bffcf
This program tries to detect bugs that your C/C++ compiler don't see.
19bffcf
The goal is no false positives.
19bffcf
19bffcf
Your compiler can detect many problems that cppcheck don't try to detect.
19bffcf
We recommend that you enable as many warnings as possible in your compiler.
19bffcf
19bffcf
Cppcheck is versatile. You can check non-standard code that includes
19bffcf
various compiler extensions, inline assembly code, etc.
19bffcf
19bffcf
19bffcf
%prep
19bffcf
%setup -q
19bffcf
# Convert text files to UTF-8
19bffcf
for file in COPYING readme.txt; do
19bffcf
 iconv -f ASCII -t utf-8 $file > $file.new && \
19bffcf
 touch -r $file $file.new && \
19bffcf
 mv $file.new $file
19bffcf
done
19bffcf
19bffcf
# Fix end of line encodings
19bffcf
for file in readme.txt; do
19bffcf
 sed -e 's|\r||g' $file > $file.new && \
19bffcf
 touch -r $file $file.new && \
19bffcf
 mv $file.new $file
19bffcf
done
19bffcf
19bffcf
%build
19bffcf
make CXXFLAGS="%{optflags}" %{?_smp_mflags}
19bffcf
19bffcf
%install
19bffcf
rm -rf %{buildroot}
19bffcf
install -D -p -m 755 cppcheck %{buildroot}%{_bindir}/cppcheck
19bffcf
19bffcf
%clean
19bffcf
rm -rf %{buildroot}
19bffcf
19bffcf
%files
19bffcf
%defattr(-,root,root,-)
19bffcf
%doc COPYING readme.txt test/
19bffcf
%{_bindir}/cppcheck
19bffcf
19bffcf
%changelog
632af98
* Thu Jul 16 2009 Jussi Lehtola <jussi.lehtola@iki.fi> - 1.34-1
632af98
- Update to 1.34.
632af98
19bffcf
* Mon Apr 27 2009 Jussi Lehtola <jussi.lehtola@iki.fi> - 1.31-1
19bffcf
- First release.