[cppcheck/el6] Update to 1.49.
Jussi Lehtola
jussilehtola at fedoraproject.org
Tue Jun 14 06:36:46 UTC 2011
commit 177220b6bd7d3c04870617720b03bca4c195f2c4
Author: Jussi Lehtola <jussilehtola at fedoraproject.org>
Date: Tue Jun 14 09:36:32 2011 +0300
Update to 1.49.
cppcheck.spec | 39 +++++++++++++++++++--------------------
sources | 2 +-
2 files changed, 20 insertions(+), 21 deletions(-)
---
diff --git a/cppcheck.spec b/cppcheck.spec
index 2384430..4551061 100644
--- a/cppcheck.spec
+++ b/cppcheck.spec
@@ -1,5 +1,5 @@
Name: cppcheck
-Version: 1.48
+Version: 1.49
Release: 1%{?dist}
Summary: A tool for static C/C++ code analysis
Group: Development/Languages
@@ -9,6 +9,7 @@ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: pcre-devel
+BuildRequires: tinyxml-devel
%description
This program tries to detect bugs that your C/C++ compiler don't see.
@@ -23,40 +24,38 @@ various compiler extensions, inline assembly code, etc.
%prep
%setup -q
-# Convert text files to UTF-8
-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 && \
- touch -r $file $file.new && \
- mv $file.new $file
-done
-
-# Fix end of line encodings
-for file in readme.txt test/test.vcproj test/test.vcxproj{,.filters}; do
- sed -e 's|\r||g' $file > $file.new && \
- touch -r $file $file.new && \
- mv $file.new $file
-done
-
-# Fix permissions
-find -name "*.cpp" -exec chmod 644 {} \;
-find -name "*.vcproj" -exec chmod 644 {} \;
+
+# Make sure bundled tinyxml is not used
+rm -r externals/tinyxml
%build
-make CXXFLAGS="%{optflags}" %{?_smp_mflags}
+# TINYXML= prevents use of bundled tinyxml
+make CXXFLAGS="%{optflags} -DNDEBUG -DHAVE_RULES" TINYXML= LDFLAGS="-ltinyxml -lpcre" %{?_smp_mflags}
%install
rm -rf %{buildroot}
install -D -p -m 755 cppcheck %{buildroot}%{_bindir}/cppcheck
+%check
+make CXXFLAGS="%{optflags} -DNDEBUG -DHAVE_RULES" TINYXML= LDFLAGS="-ltinyxml -lpcre" %{?_smp_mflags} check
+
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
-%doc COPYING readme.txt test/
+%doc COPYING
%{_bindir}/cppcheck
%changelog
+* Mon Jun 13 2011 Jussi Lehtola <jussilehtola at fedoraproject.org> - 1.49-1
+- Update to 1.49.
+
+* Sat Apr 30 2011 Ville Skyttä <ville.skytta at iki.fi> - 1.48-2
+- Build with system tinyxml and support for rules.
+- Run test suite during build, don't include its sources in docs.
+- Drop readme.txt from docs, it doesn't contain useful info after installed.
+
* Fri Apr 15 2011 Jussi Lehtola <jussilehtola at fedoraproject.org> - 1.48-1
- Update to 1.48.
diff --git a/sources b/sources
index 9e1e802..b04bce2 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-64e09239da434f644ef785c9036d081a cppcheck-1.48.tar.bz2
+3af62285e268343fb9b8261364a1c1ef cppcheck-1.49.tar.bz2
More information about the scm-commits
mailing list