diff --git a/jupyter-imatlab.changes b/jupyter-imatlab.changes index 452dbd8..d639b12 100644 --- a/jupyter-imatlab.changes +++ b/jupyter-imatlab.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jan 3 18:11:36 UTC 2023 - Ben Greiner + +- Remove invalid version requirement from python metadata + * gh#imatlab/imatlab#65 + ------------------------------------------------------------------- Wed Feb 3 23:26:54 UTC 2021 - Ben Greiner diff --git a/jupyter-imatlab.spec b/jupyter-imatlab.spec index b47e974..2ca4294 100644 --- a/jupyter-imatlab.spec +++ b/jupyter-imatlab.spec @@ -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