|
|
19bffcf |
Name: cppcheck
|
|
|
8d99f05 |
Version: 1.43
|
|
|
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
|
|
|
8d99f05 |
for file in readme.txt test/test.vcproj test/test.vcxproj{,.filters}; do
|
|
|
19bffcf |
sed -e 's|\r||g' $file > $file.new && \
|
|
|
19bffcf |
touch -r $file $file.new && \
|
|
|
19bffcf |
mv $file.new $file
|
|
|
19bffcf |
done
|
|
|
19bffcf |
|
|
|
aefe005 |
# Fix permissions
|
|
|
aefe005 |
find -name "*.cpp" -exec chmod 644 {} \;
|
|
|
aefe005 |
find -name "*.vcproj" -exec chmod 644 {} \;
|
|
|
aefe005 |
|
|
|
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
|
|
|
8d99f05 |
* Sun May 9 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.43-1
|
|
|
8d99f05 |
- Update to 1.43.
|
|
|
8d99f05 |
|
|
|
aefe005 |
* Wed Mar 10 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.42-1
|
|
|
aefe005 |
- Update to 1.42.
|
|
|
aefe005 |
|
|
|
aefe005 |
* Mon Jan 18 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.40-1
|
|
|
aefe005 |
- Update to 1.40.
|
|
|
aefe005 |
|
|
|
0da437d |
* Sun Dec 27 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.39-1
|
|
|
0da437d |
- Update to 1.39.
|
|
|
0da437d |
|
|
|
2fd08a7 |
* Sat Nov 07 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.38-1
|
|
|
2fd08a7 |
- Update to 1.38.
|
|
|
2fd08a7 |
|
|
|
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.
|