14
0

Accepting request 806809 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/806809
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-webruntime?expand=0&rev=3
This commit is contained in:
2020-05-19 12:46:53 +00:00
committed by Git OBS Bridge
2 changed files with 16 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 18 07:25:36 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Tue Mar 19 15:36:31 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-webruntime
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -30,6 +30,8 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-dialite
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module dialite}
@@ -51,15 +53,22 @@ desktop app, such as XUL (based on Firefox) or NW.js.
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/webruntime
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
%python_install_alternative webruntime
%postun
%python_uninstall_alternative webruntime
%files %{python_files}
%doc README.md
%license LICENSE
%python3_only %{_bindir}/webruntime
%python_alternative %{_bindir}/webruntime
%{python_sitelib}/*
%changelog