forked from pool/cppcheck
Accepting request 213540 from home:etamPL:branches:devel:tools
Update to 1.63 OBS-URL: https://build.opensuse.org/request/show/213540 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=35
This commit is contained in:
committed by
Git OBS Bridge
parent
fe9bdee298
commit
2e21d8a8ab
@@ -1,17 +1,37 @@
|
||||
# norootforbuild
|
||||
#
|
||||
# spec file for package cppcheck
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
BuildRequires: gcc-c++ libqt4-devel pcre-devel python
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
Name: cppcheck
|
||||
Version: 1.59
|
||||
Version: 1.63
|
||||
Release: 0
|
||||
License: GNU GPL v3 or later
|
||||
License: GPL-3.0+
|
||||
Summary: A tool for static C/C++ code analysis
|
||||
Url: http://cppcheck.sourceforge.net/
|
||||
Group: Development/Languages/C and C++
|
||||
Url: http://cppcheck.wiki.sourceforge.net/
|
||||
Source: http://downloads.sourceforge.net/cppcheck/cppcheck-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Summary: A tool for static C/C++ code analysis
|
||||
#Requires: python-pygments
|
||||
BuildRequires: docbook-xsl-stylesheets
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pcre-devel
|
||||
BuildRequires: python
|
||||
BuildRequires: xsltproc
|
||||
Requires: python
|
||||
Requires: python-Pygments
|
||||
Requires: python-xml
|
||||
|
||||
%description
|
||||
This program tries to detect bugs that your C/C++ compiler don't see. Cppcheck
|
||||
@@ -35,12 +55,11 @@ errors:
|
||||
* Unusual pointer arithmetic
|
||||
|
||||
%package gui
|
||||
License: GNU GPL v3 or later
|
||||
Group: Development/Languages/C and C++
|
||||
Summary: A tool for static C/C++ code analysis
|
||||
Requires: cppcheck
|
||||
BuildRequires: python-qt4-devel
|
||||
Group: Development/Languages/C and C++
|
||||
BuildRequires: libqt4-devel >= 4.8.0
|
||||
Requires: cppcheck
|
||||
|
||||
%description gui
|
||||
|
||||
This is the gui for Cppcheck, a program to detect bugs that your C/C++ compiler
|
||||
@@ -50,32 +69,39 @@ doesn't see.
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
CXXFLAGS="-DNDEBUG %optflags" %__make %{_smp_mflags}
|
||||
make %{?_smp_mflags} \
|
||||
CXXFLAGS="-DNDEBUG %{optflags}" \
|
||||
SRCDIR=build \
|
||||
CFGDIR=cfg \
|
||||
HAVE_RULES=yes
|
||||
|
||||
pushd gui
|
||||
qmake
|
||||
%__make %{_smp_mflags}
|
||||
qmake \
|
||||
QMAKE_CXXFLAGS="-DNDEBUG %{optflags}" \
|
||||
HAVE_RULES=yes
|
||||
make %{?_smp_mflags}
|
||||
popd
|
||||
|
||||
make man \
|
||||
DB2MAN=%{_datadir}/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl
|
||||
|
||||
%check
|
||||
%__make %{_smp_mflags} test
|
||||
make %{?_smp_mflags} test \
|
||||
CXXFLAGS="-DNDEBUG %{optflags}" \
|
||||
HAVE_RULES=yes
|
||||
|
||||
%install
|
||||
%makeinstall
|
||||
%{__install} -m 0755 gui/cppcheck-gui %{buildroot}%{_bindir}/cppcheck-gui
|
||||
|
||||
pushd htmlreport
|
||||
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
popd
|
||||
|
||||
%clean
|
||||
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
|
||||
install -m 0755 -D cppcheck %{buildroot}%{_bindir}/cppcheck
|
||||
install -m 0755 -D htmlreport/cppcheck-htmlreport %{buildroot}%{_bindir}/cppcheck-htmlreport
|
||||
install -m 0755 -D gui/cppcheck-gui %{buildroot}%{_bindir}/cppcheck-gui
|
||||
install -m 0644 -D cppcheck.1 %{buildroot}%{_mandir}/man1/cppcheck.1
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS
|
||||
%doc AUTHORS COPYING
|
||||
%{_bindir}/cppcheck
|
||||
%{_bindir}/cppcheck-htmlreport
|
||||
%{python_sitelib}/cppcheck*.egg-info
|
||||
%{_mandir}/man1/cppcheck.1*
|
||||
|
||||
%files gui
|
||||
%defattr(-,root,root)
|
||||
|
Reference in New Issue
Block a user