15
0

Accepting request 808766 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/808766
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsbeautifier?expand=0&rev=15
This commit is contained in:
Tomáš Chvátal
2020-05-25 13:31:36 +00:00
committed by Git OBS Bridge
parent 2a4ff099f2
commit 6e0c217481
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 25 10:59:33 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Thu Apr 16 11:59:13 UTC 2020 - pgajdos@suse.com

View File

@@ -32,6 +32,8 @@ BuildRequires: python-rpm-macros
Requires: python-EditorConfig >= 0.12.2
Requires: python-setuptools
Requires: python-six >= 1.13.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module EditorConfig >= 0.12.2}
@@ -52,15 +54,22 @@ cp %{SOURCE1} .
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/js-beautify
%{python_expand %fdupes %{buildroot}%{$python_sitelib}}
%check
%pytest jsbeautifier/tests/testindentation.py
%pytest jsbeautifier/tests/generated/tests.py
%post
%python_install_alternative js-beautify
%postun
%python_uninstall_alternative js-beautify
%files %{python_files}
%license LICENSE
%python3_only %{_bindir}/js-beautify
%python_alternative %{_bindir}/js-beautify
%{python_sitelib}/jsbeautifier
%{python_sitelib}/jsbeautifier-%{version}-py*.egg-info