Compare commits

4 Commits

2 changed files with 26 additions and 16 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Jun 4 14:19:24 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
- fix usage of libalternatives
-------------------------------------------------------------------
Tue May 27 12:29:06 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Wed Sep 28 14:33:05 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-flexx
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%define skip_python36 1
%bcond_without libalternatives
Name: python-flexx
Version: 0.8.4
Release: 0
@@ -31,21 +29,23 @@ BuildRequires: %{python_module certifi}
BuildRequires: %{python_module dialite >= 0.5.2}
BuildRequires: %{python_module imageio}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pscript >= 0.7.3}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pscript}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module selenium}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tornado >= 4}
BuildRequires: %{python_module webruntime >= 0.5.6}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: unzip
Requires: alts
Requires: python-dialite >= 0.5.2
Requires: python-pscript >= 0.7.3
Requires: python-pscript
Requires: python-tornado
Requires: python-webruntime >= 0.5.6
Requires(post): update-alternatives
Requires(postun):update-alternatives
Recommends: python-imageio
Recommends: python-numpy
Recommends: python-vispy
@@ -66,10 +66,10 @@ document. It also works in the Jupyter notebook.
%setup -q -n flexx-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/flexx
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -77,16 +77,16 @@ document. It also works in the Jupyter notebook.
# Do not run tests, they require online access to jquery/etc.
#%%pytest
%post
%python_install_alternative flexx
%postun
%python_uninstall_alternative flexx
%pre
# Removing old update-alternatives entries.
%python_libalternatives_reset_alternative flexx
%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/flexx
%{python_sitelib}/*
%{python_sitelib}/flexx
%{python_sitelib}/flexxamples
%{python_sitelib}/flexx-%{version}*-info
%changelog