forked from pool/cppcheck
- Updated to 1.43
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=9
This commit is contained in:
committed by
Git OBS Bridge
parent
59741efbf8
commit
b9bd843e77
@@ -1,16 +1,17 @@
|
||||
# norootforbuild
|
||||
|
||||
Name: cppcheck
|
||||
Version: 1.38
|
||||
Release: 1.0
|
||||
License: GNU GPL v3
|
||||
Group: Development/Languages/C and C++
|
||||
Url: http://cppcheck.wiki.sourceforge.net/
|
||||
Source: http://downloads.sourceforge.net/cppcheck/cppcheck-%{version}.tar.bz2
|
||||
Patch0: cppcheck-1.38-OptFlags.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: gcc-c++
|
||||
Summary: A tool for static C/C++ code analysis
|
||||
Name: cppcheck
|
||||
Version: 1.43
|
||||
Release: 1.0
|
||||
License: GNU GPL v3 or later
|
||||
Group: Development/Languages/C and C++
|
||||
Url: http://cppcheck.wiki.sourceforge.net/
|
||||
Source: http://downloads.sourceforge.net/cppcheck/cppcheck-%{version}.tar.bz2
|
||||
Patch0: cppcheck-1.43-OptFlags.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libqt4-devel
|
||||
Summary: A tool for static C/C++ code analysis
|
||||
|
||||
%description
|
||||
This program tries to detect bugs that your C/C++ compiler don't see. Cppcheck is versatile. You can check non-standard code that includes various compiler extensions, inline assembly code, etc. Checking covers for example these errors:
|
||||
@@ -35,10 +36,14 @@ This program tries to detect bugs that your C/C++ compiler don't see. Cppcheck i
|
||||
%patch0
|
||||
|
||||
%build
|
||||
%__make %{?jobs:-j%jobs}
|
||||
%__make %{_smp_mflags}
|
||||
cd gui
|
||||
qmake
|
||||
%__make %{_smp_mflags}
|
||||
|
||||
%check
|
||||
%__make %{?jobs:-j%jobs} test
|
||||
%__make %{_smp_mflags} test
|
||||
%__install -Dm 0755 gui/gui %{buildroot}%{_bindir}/cppcheck-gui
|
||||
|
||||
%install
|
||||
%makeinstall
|
||||
@@ -48,5 +53,6 @@ test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS Changelog
|
||||
%doc AUTHORS
|
||||
%{_bindir}/cppcheck
|
||||
%{_bindir}/cppcheck-gui
|
||||
|
Reference in New Issue
Block a user