cppcheck/cppcheck.spec

101 lines
2.9 KiB
RPMSpec
Raw Normal View History

2009-04-30 05:52:27 +00:00
Name: cppcheck
2011-02-07 10:49:51 +00:00
Version: 1.47
2009-09-22 13:24:59 +00:00
Release: 1%{?dist}
2009-04-30 05:52:27 +00:00
Summary: A tool for static C/C++ code analysis
Group: Development/Languages
License: GPLv3+
URL: http://cppcheck.wiki.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
2011-02-07 12:36:52 +00:00
BuildRequires: pcre-devel
2009-04-30 05:52:27 +00:00
%description
This program tries to detect bugs that your C/C++ compiler don't see.
The goal is no false positives.
Your compiler can detect many problems that cppcheck don't try to detect.
We recommend that you enable as many warnings as possible in your compiler.
Cppcheck is versatile. You can check non-standard code that includes
various compiler extensions, inline assembly code, etc.
%prep
%setup -q
# Convert text files to UTF-8
2010-07-24 11:23:10 +00:00
for file in COPYING readme.txt test/tinyxml/tinystr.cpp test/tinyxml/changes.txt; do
iconv -f ISO-8859-15 -t utf-8 $file > $file.new && \
2009-04-30 05:52:27 +00:00
touch -r $file $file.new && \
mv $file.new $file
done
# Fix end of line encodings
2010-05-09 12:50:20 +00:00
for file in readme.txt test/test.vcproj test/test.vcxproj{,.filters}; do
2009-04-30 05:52:27 +00:00
sed -e 's|\r||g' $file > $file.new && \
touch -r $file $file.new && \
mv $file.new $file
done
2010-01-18 15:08:59 +00:00
# Fix permissions
find -name "*.cpp" -exec chmod 644 {} \;
find -name "*.vcproj" -exec chmod 644 {} \;
2009-04-30 05:52:27 +00:00
%build
make CXXFLAGS="%{optflags}" %{?_smp_mflags}
%install
rm -rf %{buildroot}
install -D -p -m 755 cppcheck %{buildroot}%{_bindir}/cppcheck
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc COPYING readme.txt test/
%{_bindir}/cppcheck
%changelog
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.
* 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.