From 19bffcf1b7796e892373a1baaca9a31da75fb581 Mon Sep 17 00:00:00 2001 From: Jussi Lehtola Date: Apr 30 2009 05:52:27 +0000 Subject: Package imported in Fedora. --- diff --git a/.cvsignore b/.cvsignore index e69de29..723818e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +cppcheck-1.31.tar.bz2 diff --git a/cppcheck.spec b/cppcheck.spec new file mode 100644 index 0000000..58b45cb --- /dev/null +++ b/cppcheck.spec @@ -0,0 +1,57 @@ +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 - 1.31-1 +- First release. diff --git a/import.log b/import.log new file mode 100644 index 0000000..dba44ed --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +cppcheck-1_31-1_fc10:HEAD:cppcheck-1.31-1.fc10.src.rpm:1241070717 diff --git a/sources b/sources index e69de29..ce7c895 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +db500cee39ceaa7379bb105046d36cce cppcheck-1.31.tar.bz2