17
0

Compare commits

2 Commits

2 changed files with 14 additions and 6 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jun 13 02:44:03 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 11 17:08:27 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com> Tue Oct 11 17:08:27 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-webruntime # spec file for package python-webruntime
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2025 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
@@ -16,7 +16,6 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1 %define skip_python2 1
Name: python-webruntime Name: python-webruntime
Version: 0.5.8 Version: 0.5.8
@@ -26,12 +25,14 @@ License: BSD-2-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/flexxui/webruntime URL: https://github.com/flexxui/webruntime
Source: https://files.pythonhosted.org/packages/source/w/webruntime/webruntime-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/w/webruntime/webruntime-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-dialite Requires: python-dialite
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun):update-alternatives Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module dialite} BuildRequires: %{python_module dialite}
@@ -49,10 +50,10 @@ desktop app, such as XUL (based on Firefox) or NW.js.
%setup -q -n webruntime-%{version} %setup -q -n webruntime-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/webruntime %python_clone -a %{buildroot}%{_bindir}/webruntime
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -69,6 +70,7 @@ desktop app, such as XUL (based on Firefox) or NW.js.
%doc README.md %doc README.md
%license LICENSE %license LICENSE
%python_alternative %{_bindir}/webruntime %python_alternative %{_bindir}/webruntime
%{python_sitelib}/* %{python_sitelib}/webruntime
%{python_sitelib}/webruntime-%{version}.dist-info
%changelog %changelog