forked from pool/cppcheck
Accepting request 49701 from home:etamPL:branches:devel:tools
looks good thanks for the update OBS-URL: https://build.opensuse.org/request/show/49701 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=15
This commit is contained in:
parent
a0b8b92f97
commit
782e0779da
@ -1,10 +0,0 @@
|
|||||||
Index: Makefile
|
|
||||||
===================================================================
|
|
||||||
--- Makefile.orig 2010-05-08 15:37:19.000000000 +0200
|
|
||||||
+++ Makefile 2010-06-01 23:06:48.496942411 +0200
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
-CXXFLAGS=-O2 -DNDEBUG -Wall
|
|
||||||
+CXXFLAGS=${RPM_OPT_FLAGS}
|
|
||||||
CXX=g++
|
|
||||||
BIN=${DESTDIR}/usr/bin
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:def48679f66f5909d063375431d4a924f12fcf9348d116b962da2b936a6aa4c6
|
|
||||||
size 574457
|
|
3
cppcheck-1.45.tar.bz2
Normal file
3
cppcheck-1.45.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:371ffee020d6e28583b424643452509518f01153ac8f95a80273a04803b64109
|
||||||
|
size 630091
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Oct 3 22:58:13 UTC 2010 - adam@mizerski.pl
|
||||||
|
|
||||||
|
- update to 1.45
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Aug 22 17:03:39 UTC 2010 - mrdocs@opensuse.org
|
Sun Aug 22 17:03:39 UTC 2010 - mrdocs@opensuse.org
|
||||||
|
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# norootforbuild
|
# norootforbuild
|
||||||
|
|
||||||
Name: cppcheck
|
Name: cppcheck
|
||||||
Version: 1.44
|
Version: 1.45
|
||||||
Release: 0
|
Release: 0
|
||||||
License: GNU GPL v3 or later
|
License: GNU GPL v3 or later
|
||||||
Group: Development/Languages/C and C++
|
Group: Development/Languages/C and C++
|
||||||
Url: http://cppcheck.wiki.sourceforge.net/
|
Url: http://cppcheck.wiki.sourceforge.net/
|
||||||
Source: http://downloads.sourceforge.net/cppcheck/cppcheck-%{version}.tar.bz2
|
Source: http://downloads.sourceforge.net/cppcheck/cppcheck-%{version}.tar.bz2
|
||||||
Patch0: cppcheck-1.43-OptFlags.patch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libqt4-devel
|
BuildRequires: libqt4-devel
|
||||||
@ -30,23 +29,21 @@ This program tries to detect bugs that your C/C++ compiler don't see. Cppcheck i
|
|||||||
* Unsigned division. The result will be wrong.
|
* Unsigned division. The result will be wrong.
|
||||||
* Unusual pointer arithmetic
|
* Unusual pointer arithmetic
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%__make %{_smp_mflags}
|
CXXFLAGS="-DNDEBUG %optflags" %__make %{_smp_mflags}
|
||||||
cd gui
|
cd gui
|
||||||
qmake
|
qmake
|
||||||
%__make %{_smp_mflags}
|
%__make %{_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%__make %{_smp_mflags} test
|
%__make %{_smp_mflags} test
|
||||||
%__install -Dm 0755 gui/gui %{buildroot}%{_bindir}/cppcheck-gui
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall
|
%makeinstall
|
||||||
|
%__install -Dm 0755 gui/cppcheck-gui %{buildroot}%{_bindir}/cppcheck-gui
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
|
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
|
||||||
|
Loading…
Reference in New Issue
Block a user