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:
parent
fe9bdee298
commit
2e21d8a8ab
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:6be40d8422c545959d1cc44ce3f80be9f6d3d18f70d65b8d2e1b65284aa38f6e
|
|
||||||
size 1243616
|
|
3
cppcheck-1.63.tar.bz2
Normal file
3
cppcheck-1.63.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:924bfc4593215b7bab6b049dbbce9a6f343dbf15f4bdd869ef1d378f09f92064
|
||||||
|
size 1157231
|
@ -1,3 +1,20 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 10 20:18:57 UTC 2014 - adam@mizerski.pl
|
||||||
|
|
||||||
|
- update to 1.63
|
||||||
|
* See http://sourceforge.net/p/cppcheck/news/ for changes.
|
||||||
|
- spec cleanups:
|
||||||
|
* Used format_spec_file service for general cleanup.
|
||||||
|
* Everything compiles with %optflags now.
|
||||||
|
* Added SRCDIR=build CFGDIR=cfg HAVE_RULES=yes options as suggested
|
||||||
|
in the readme.txt
|
||||||
|
* Added cppcheck.1 man page creation.
|
||||||
|
* Cleaned up BuildRequires tags.
|
||||||
|
* Added missing Requires: python* tags.
|
||||||
|
* Removed unneded "python ./setup.py install".
|
||||||
|
* Added COPYING to installed docs.
|
||||||
|
* Updated homepage URL.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 11 09:30:47 UTC 2013 - dalgaaf@suse.de
|
Thu Apr 11 09:30:47 UTC 2013 - dalgaaf@suse.de
|
||||||
|
|
||||||
|
@ -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
|
Name: cppcheck
|
||||||
Version: 1.59
|
Version: 1.63
|
||||||
Release: 0
|
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++
|
Group: Development/Languages/C and C++
|
||||||
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
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Summary: A tool for static C/C++ code analysis
|
BuildRequires: docbook-xsl-stylesheets
|
||||||
#Requires: python-pygments
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: pcre-devel
|
||||||
|
BuildRequires: python
|
||||||
|
BuildRequires: xsltproc
|
||||||
|
Requires: python
|
||||||
|
Requires: python-Pygments
|
||||||
|
Requires: python-xml
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This program tries to detect bugs that your C/C++ compiler don't see. Cppcheck
|
This program tries to detect bugs that your C/C++ compiler don't see. Cppcheck
|
||||||
@ -35,12 +55,11 @@ errors:
|
|||||||
* Unusual pointer arithmetic
|
* Unusual pointer arithmetic
|
||||||
|
|
||||||
%package gui
|
%package gui
|
||||||
License: GNU GPL v3 or later
|
|
||||||
Group: Development/Languages/C and C++
|
|
||||||
Summary: A tool for static C/C++ code analysis
|
Summary: A tool for static C/C++ code analysis
|
||||||
Requires: cppcheck
|
Group: Development/Languages/C and C++
|
||||||
BuildRequires: python-qt4-devel
|
|
||||||
BuildRequires: libqt4-devel >= 4.8.0
|
BuildRequires: libqt4-devel >= 4.8.0
|
||||||
|
Requires: cppcheck
|
||||||
|
|
||||||
%description gui
|
%description gui
|
||||||
|
|
||||||
This is the gui for Cppcheck, a program to detect bugs that your C/C++ compiler
|
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
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CXXFLAGS="-DNDEBUG %optflags" %__make %{_smp_mflags}
|
make %{?_smp_mflags} \
|
||||||
|
CXXFLAGS="-DNDEBUG %{optflags}" \
|
||||||
|
SRCDIR=build \
|
||||||
|
CFGDIR=cfg \
|
||||||
|
HAVE_RULES=yes
|
||||||
|
|
||||||
pushd gui
|
pushd gui
|
||||||
qmake
|
qmake \
|
||||||
%__make %{_smp_mflags}
|
QMAKE_CXXFLAGS="-DNDEBUG %{optflags}" \
|
||||||
|
HAVE_RULES=yes
|
||||||
|
make %{?_smp_mflags}
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
make man \
|
||||||
|
DB2MAN=%{_datadir}/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%__make %{_smp_mflags} test
|
make %{?_smp_mflags} test \
|
||||||
|
CXXFLAGS="-DNDEBUG %{optflags}" \
|
||||||
|
HAVE_RULES=yes
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall
|
install -m 0755 -D cppcheck %{buildroot}%{_bindir}/cppcheck
|
||||||
%{__install} -m 0755 gui/cppcheck-gui %{buildroot}%{_bindir}/cppcheck-gui
|
install -m 0755 -D htmlreport/cppcheck-htmlreport %{buildroot}%{_bindir}/cppcheck-htmlreport
|
||||||
|
install -m 0755 -D gui/cppcheck-gui %{buildroot}%{_bindir}/cppcheck-gui
|
||||||
pushd htmlreport
|
install -m 0644 -D cppcheck.1 %{buildroot}%{_mandir}/man1/cppcheck.1
|
||||||
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
||||||
popd
|
|
||||||
|
|
||||||
%clean
|
|
||||||
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS
|
%doc AUTHORS COPYING
|
||||||
%{_bindir}/cppcheck
|
%{_bindir}/cppcheck
|
||||||
%{_bindir}/cppcheck-htmlreport
|
%{_bindir}/cppcheck-htmlreport
|
||||||
%{python_sitelib}/cppcheck*.egg-info
|
%{_mandir}/man1/cppcheck.1*
|
||||||
|
|
||||||
%files gui
|
%files gui
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user