Accepting request 1114437 from home:bnavigator:branches:Application:ERP:GNUHealth:Factory
- Fix single singlespec: Can't use python_subpackages rewriter OBS-URL: https://build.opensuse.org/request/show/1114437 OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/mygnuhealth?expand=0&rev=35
This commit is contained in:
parent
5c8ed1951b
commit
010234407b
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 29 18:39:29 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Fix single singlespec: Can't use python_subpackages rewriter
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 29 18:03:46 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
Fri Sep 29 18:03:46 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -26,9 +26,14 @@
|
|||||||
%if %{?suse_version} > 1500
|
%if %{?suse_version} > 1500
|
||||||
# only the primary one for TW
|
# only the primary one for TW
|
||||||
%define pythons python3
|
%define pythons python3
|
||||||
|
%define mypython python3
|
||||||
|
%define mypython_sitelib %{python3_sitelib}
|
||||||
%else
|
%else
|
||||||
# needs Python 3.9+
|
# needs Python 3.9+
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
|
# use the one define in sle15_python_module_pythons
|
||||||
|
%define mypython %pythons
|
||||||
|
%define mypython_sitelib %{expand:%%%{mypython}_sitelib}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: mygnuhealth
|
Name: mygnuhealth
|
||||||
@ -58,16 +63,16 @@ BuildRequires: %{python_module pygal}
|
|||||||
BuildRequires: %{python_module tinydb}
|
BuildRequires: %{python_module tinydb}
|
||||||
BuildRequires: %{python_module requests}
|
BuildRequires: %{python_module requests}
|
||||||
BuildRequires: %{python_module CairoSVG}
|
BuildRequires: %{python_module CairoSVG}
|
||||||
Requires: python-bcrypt
|
Requires: %{mypython}-bcrypt
|
||||||
Requires: python-Kivy
|
Requires: %{mypython}-Kivy
|
||||||
Requires: python-pygal
|
Requires: %{mypython}-pygal
|
||||||
Requires: python-tinydb
|
Requires: %{mypython}-tinydb
|
||||||
Requires: python-requests
|
Requires: %{mypython}-requests
|
||||||
Requires: python-CairoSVG
|
Requires: %{mypython}-CairoSVG
|
||||||
# /SECTION
|
# /SECTION
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# singlespec rewriter for exactly one python (see above)
|
# singlespec rewriter for exactly one python (see above)
|
||||||
%python_subpackages
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Personal Health Information Management System for Desktop and Mobile Devices
|
The Personal Health Information Management System for Desktop and Mobile Devices
|
||||||
@ -116,8 +121,8 @@ rm -rf /home/*/.cache/mygnuhealth
|
|||||||
%attr(755,root,root) %{_bindir}/%{name}
|
%attr(755,root,root) %{_bindir}/%{name}
|
||||||
%{_datadir}/applications/org.gnuhealth.mygnuhealth.desktop
|
%{_datadir}/applications/org.gnuhealth.mygnuhealth.desktop
|
||||||
%license COPYRIGHT LICENSE
|
%license COPYRIGHT LICENSE
|
||||||
%{python_sitelib}/mygnuhealth
|
%{mypython_sitelib}/mygnuhealth
|
||||||
%{python_sitelib}/mygnuhealth-%{version}.dist-info
|
%{mypython_sitelib}/mygnuhealth-%{version}.dist-info
|
||||||
|
|
||||||
|
|
||||||
%files -n %{name}-doc
|
%files -n %{name}-doc
|
||||||
|
Loading…
Reference in New Issue
Block a user