14
0

Accepting request 807151 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/807151
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-spark_parser?expand=0&rev=6
This commit is contained in:
2020-05-20 16:44:04 +00:00
committed by Git OBS Bridge
2 changed files with 16 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 19 08:03:00 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Sep 10 10:10:05 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com> Tue Sep 10 10:10:05 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-spark_parser # spec file for package python-spark_parser
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -32,6 +32,8 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-click Requires: python-click
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -52,15 +54,22 @@ grammar. These are grammars which are left-recursive.
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/spark-parser-coverage
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%pytest test %pytest test
%post
%python_install_alternative spark-parser-coverage
%postun
%python_uninstall_alternative spark-parser-coverage
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc ChangeLog README.rst %doc ChangeLog README.rst
%python3_only %{_bindir}/spark-parser-coverage %python_alternative %{_bindir}/spark-parser-coverage
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog