- Remove invalid version requirement from python metadata

* gh#imatlab/imatlab#65

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/jupyter-imatlab?expand=0&rev=13
This commit is contained in:
Benjamin Greiner 2023-01-03 18:16:50 +00:00 committed by Git OBS Bridge
parent 5c9dec329e
commit 2646cb940b
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jan 3 18:11:36 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Remove invalid version requirement from python metadata
* gh#imatlab/imatlab#65
-------------------------------------------------------------------
Wed Feb 3 23:26:54 UTC 2021 - Ben Greiner <code@bnavigator.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package jupyter-imatlab
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -68,10 +68,12 @@ mkdir matlab
echo 'EngineError = MatlabExecutionError = Exception' > matlab/engine.py
%install
%{python_expand mkdir build; cp -a %{SOURCE0} build/}
%pyproject_install
%pyproject_install %{SOURCE0}
PYTHONPATH=%{buildroot}%{python3_sitelib} python3 -m imatlab install --prefix %{buildroot}%{_prefix}
cp %{buildroot}%{python3_sitelib}/imatlab-%{version}.dist-info/LICENSE.txt .
# not available during install, not a proper PEP440 version information -- gh#imatlab/imatlab#65
sed -i '/Requires-Dist: matlabengineforpython.*R/d' \
%{buildroot}%{python3_sitelib}/imatlab-%{version}.dist-info/METADATA
%fdupes %{buildroot}%{python3_sitelib}
%check