rpms/cppcheck/EL-5 cppcheck.spec,NONE,1.1 sources,1.1,1.2

Jussi Lehtola jussilehtola at fedoraproject.org
Thu Apr 30 05:54:54 UTC 2009


Author: jussilehtola

Update of /cvs/pkgs/rpms/cppcheck/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv27547/EL-5

Modified Files:
	sources 
Added Files:
	cppcheck.spec 
Log Message:
Package imported in Fedora.



--- NEW FILE cppcheck.spec ---
Name:		cppcheck
Version:	1.31
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)

BuildRequires:	gcc-c++

%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
* Mon Apr 27 2009 Jussi Lehtola <jussi.lehtola at iki.fi> - 1.31-1
- First release.


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/cppcheck/EL-5/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	30 Apr 2009 04:57:29 -0000	1.1
+++ sources	30 Apr 2009 05:54:24 -0000	1.2
@@ -0,0 +1 @@
+db500cee39ceaa7379bb105046d36cce  cppcheck-1.31.tar.bz2




More information about the scm-commits mailing list