Compare commits

...

8 Commits
rawhide ... f11

Author SHA1 Message Date
Fedora Release Engineering 94fa9ed692 dist-git conversion 2010-07-28 12:15:01 +00:00
Jussi Lehtola 9e8e94864b Update to 1.39. 2009-12-27 15:23:34 +00:00
Bill Nottingham ef52008dda Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:33:47 +00:00
Jussi Lehtola cbfc593d44 Update to 1.38. 2009-11-07 10:28:02 +00:00
Jussi Lehtola 7461afc62a Update to upstream 1.36. 2009-09-22 13:47:23 +00:00
Jussi Lehtola 2854e8d7de Update to 1.34. 2009-07-16 13:50:04 +00:00
Jussi Lehtola 5540c22557 Package imported in Fedora. 2009-04-30 05:54:25 +00:00
Kevin Fenzi 1cffe408df Initialize branch F-11 for cppcheck 2009-04-30 04:57:31 +00:00
4 changed files with 71 additions and 21 deletions

View File

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: cppcheck
# $Id$
NAME := cppcheck
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

70
cppcheck.spec Normal file
View File

@ -0,0 +1,70 @@
Name: cppcheck
Version: 1.39
Release: 1%{?dist}
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)
%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
for file in COPYING readme.txt; do
iconv -f ASCII -t utf-8 $file > $file.new && \
touch -r $file $file.new && \
mv $file.new $file
done
# Fix end of line encodings
for file in readme.txt; do
sed -e 's|\r||g' $file > $file.new && \
touch -r $file $file.new && \
mv $file.new $file
done
%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
* Sun Dec 27 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.39-1
- Update to 1.39.
* Sat Nov 07 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.38-1
- Update to 1.38.
* 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
* Thu Jul 16 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.34-1
- Update to 1.34.
* Mon Apr 27 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.31-1
- First release.

View File

@ -0,0 +1 @@
6174bb32926035bc4ccf57979c5cb13a cppcheck-1.39.tar.bz2