2019-02-26 08:54:01 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-cpplint
|
|
|
|
|
#
|
2020-04-01 14:59:59 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2019-02-26 08:54:01 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
Name: python-cpplint
|
2020-04-01 14:59:59 +00:00
|
|
|
Version: 1.4.5
|
2019-02-26 08:54:01 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: An automated checker to make sure a C++ file follows Google's C++ style guide
|
|
|
|
|
License: BSD-3-Clause
|
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
|
URL: https://github.com/cpplint/cpplint
|
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/c/cpplint/cpplint-%{version}.tar.gz
|
2020-04-01 14:59:59 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-02-26 08:54:01 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This project continues the work of cpplint, a C++ style checker
|
|
|
|
|
following Google's C++ style guide. It provides cpplint as a PyPI
|
|
|
|
|
package and adds a few features and fixes. It is maintained as a
|
|
|
|
|
fork of google/styleguide (https://github.com/google/styleguide)
|
|
|
|
|
in hopes that it can be merged in the future.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n cpplint-%{version}
|
|
|
|
|
sed -i -e '/^#!\//, 1d' cpplint.py
|
2020-04-01 14:59:59 +00:00
|
|
|
sed -i 's/pytest-runner//' setup.py
|
|
|
|
|
sed -i 's/pytest-cov//' test-requirements
|
|
|
|
|
sed -i 's/--cov-fail-under=75 --cov=cpplint//' setup.cfg
|
2019-02-26 08:54:01 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
2020-04-01 14:59:59 +00:00
|
|
|
%pytest
|
2019-02-26 08:54:01 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%python3_only %{_bindir}/cpplint
|
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|