15
0

Accepting request 809587 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/809587
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cpplint?expand=0&rev=5
This commit is contained in:
Tomáš Chvátal
2020-05-27 14:46:35 +00:00
committed by Git OBS Bridge
parent b548620fdc
commit f9856803fa
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 27 09:36:50 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Wed Apr 1 14:13:44 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@@ -29,6 +29,8 @@ BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@@ -51,15 +53,22 @@ sed -i 's/--cov-fail-under=75 --cov=cpplint//' setup.cfg
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/cpplint
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
%python_install_alternative cpplint
%postun
%python_uninstall_alternative cpplint
%files %{python_files}
%license LICENSE
%doc README.rst
%python3_only %{_bindir}/cpplint
%python_alternative %{_bindir}/cpplint
%{python_sitelib}/*
%changelog