19bffcf
Name:		cppcheck
fa69a69
Version:	1.39
3cd029b
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
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.