2018-10-29 15:39:48 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-webruntime
|
|
|
|
|
#
|
2025-06-13 02:56:10 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2018-10-29 15:39:48 +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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%define skip_python2 1
|
|
|
|
|
Name: python-webruntime
|
2022-10-11 17:59:44 +00:00
|
|
|
Version: 0.5.8
|
2018-10-29 15:39:48 +00:00
|
|
|
Release: 0
|
2018-10-30 15:59:56 +00:00
|
|
|
Summary: A python package to launch HTML5 apps in the browser or a desktop-like runtime
|
2018-10-29 15:39:48 +00:00
|
|
|
License: BSD-2-Clause
|
|
|
|
|
Group: Development/Languages/Python
|
2019-03-19 15:41:10 +00:00
|
|
|
URL: https://github.com/flexxui/webruntime
|
2018-10-29 15:39:48 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/w/webruntime/webruntime-%{version}.tar.gz
|
2025-06-13 02:56:10 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2018-10-29 15:39:48 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-06-13 02:56:10 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-10-29 15:39:48 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
Requires: python-dialite
|
2020-05-18 08:12:17 +00:00
|
|
|
Requires(post): update-alternatives
|
2025-06-13 02:56:10 +00:00
|
|
|
Requires(postun): update-alternatives
|
2018-10-29 15:39:48 +00:00
|
|
|
BuildArch: noarch
|
2019-03-19 15:41:10 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
|
BuildRequires: %{python_module dialite}
|
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
BuildRequires: MozillaFirefox
|
|
|
|
|
# /SECTION
|
2018-10-29 15:39:48 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The webruntime module can be used to launch applications based on
|
|
|
|
|
HTML/JS/CSS. This can be a browser or a runtime that looks like a
|
|
|
|
|
desktop app, such as XUL (based on Firefox) or NW.js.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n webruntime-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2025-06-13 02:56:10 +00:00
|
|
|
%pyproject_wheel
|
2018-10-29 15:39:48 +00:00
|
|
|
|
|
|
|
|
%install
|
2025-06-13 02:56:10 +00:00
|
|
|
%pyproject_install
|
2020-05-18 08:12:17 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/webruntime
|
2018-10-29 15:39:48 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
2019-03-19 15:41:10 +00:00
|
|
|
%check
|
|
|
|
|
%pytest
|
2018-10-29 15:39:48 +00:00
|
|
|
|
2020-05-18 08:12:17 +00:00
|
|
|
%post
|
|
|
|
|
%python_install_alternative webruntime
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative webruntime
|
|
|
|
|
|
2018-10-29 15:39:48 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
2020-05-18 08:12:17 +00:00
|
|
|
%python_alternative %{_bindir}/webruntime
|
2025-06-13 02:56:10 +00:00
|
|
|
%{python_sitelib}/webruntime
|
|
|
|
|
%{python_sitelib}/webruntime-%{version}.dist-info
|
2018-10-29 15:39:48 +00:00
|
|
|
|
|
|
|
|
%changelog
|