1736e3a
Name:		cppcheck
764f256
Version:	1.42
1736e3a
Release:	1%{?dist}
1736e3a
Summary:	A tool for static C/C++ code analysis
1736e3a
Group:		Development/Languages
1736e3a
License:	GPLv3+
1736e3a
URL:		http://cppcheck.wiki.sourceforge.net/
1736e3a
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
1736e3a
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
1736e3a
1736e3a
%description
1736e3a
This program tries to detect bugs that your C/C++ compiler don't see.
1736e3a
The goal is no false positives.
1736e3a
1736e3a
Your compiler can detect many problems that cppcheck don't try to detect.
1736e3a
We recommend that you enable as many warnings as possible in your compiler.
1736e3a
1736e3a
Cppcheck is versatile. You can check non-standard code that includes
1736e3a
various compiler extensions, inline assembly code, etc.
1736e3a
1736e3a
1736e3a
%prep
1736e3a
%setup -q
1736e3a
# Convert text files to UTF-8
1736e3a
for file in COPYING readme.txt; do
1736e3a
 iconv -f ASCII -t utf-8 $file > $file.new && \
1736e3a
 touch -r $file $file.new && \
1736e3a
 mv $file.new $file
1736e3a
done
1736e3a
1736e3a
# Fix end of line encodings
1736e3a
for file in readme.txt; do
1736e3a
 sed -e 's|\r||g' $file > $file.new && \
1736e3a
 touch -r $file $file.new && \
1736e3a
 mv $file.new $file
1736e3a
done
1736e3a
764f256
# Fix permissions
764f256
find -name "*.cpp" -exec chmod 644 {} \;
764f256
find -name "*.vcproj" -exec chmod 644 {} \;
764f256
1736e3a
%build
1736e3a
make CXXFLAGS="%{optflags}" %{?_smp_mflags}
1736e3a
1736e3a
%install
1736e3a
rm -rf %{buildroot}
1736e3a
install -D -p -m 755 cppcheck %{buildroot}%{_bindir}/cppcheck
1736e3a
1736e3a
%clean
1736e3a
rm -rf %{buildroot}
1736e3a
1736e3a
%files
1736e3a
%defattr(-,root,root,-)
1736e3a
%doc COPYING readme.txt test/
1736e3a
%{_bindir}/cppcheck
1736e3a
1736e3a
%changelog
764f256
* Wed Mar 10 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.42-1
764f256
- Update to 1.42.
764f256
764f256
* Mon Jan 18 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.40-1
764f256
- Update to 1.40.
764f256
82e7387
* Sun Dec 27 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.39-1
82e7387
- Update to 1.39.
82e7387
d042174
* Sat Nov 07 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.38-1
d042174
- Update to 1.38.
d042174
1df40ad
* Tue Sep 22 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.36-1
1df40ad
- Update to 1.36.
1df40ad
1df40ad
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.34-2
1df40ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1df40ad
1df40ad
* Thu Jul 16 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.34-1
574b63b
- Update to 1.34.
574b63b
1df40ad
* Mon Apr 27 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.31-1
1736e3a
- First release.