SHA256
1
0
forked from pool/mygnuhealth

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:
Benjamin Greiner 2023-09-29 18:44:27 +00:00 committed by Git OBS Bridge
parent 5c8ed1951b
commit 010234407b
2 changed files with 19 additions and 9 deletions

View File

@ -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>

View File

@ -26,9 +26,14 @@
%if %{?suse_version} > 1500
# only the primary one for TW
%define pythons python3
%define mypython python3
%define mypython_sitelib %{python3_sitelib}
%else
# needs Python 3.9+
%{?sle15_python_module_pythons}
# use the one define in sle15_python_module_pythons
%define mypython %pythons
%define mypython_sitelib %{expand:%%%{mypython}_sitelib}
%endif
Name: mygnuhealth
@ -58,16 +63,16 @@ BuildRequires: %{python_module pygal}
BuildRequires: %{python_module tinydb}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module CairoSVG}
Requires: python-bcrypt
Requires: python-Kivy
Requires: python-pygal
Requires: python-tinydb
Requires: python-requests
Requires: python-CairoSVG
Requires: %{mypython}-bcrypt
Requires: %{mypython}-Kivy
Requires: %{mypython}-pygal
Requires: %{mypython}-tinydb
Requires: %{mypython}-requests
Requires: %{mypython}-CairoSVG
# /SECTION
BuildArch: noarch
# singlespec rewriter for exactly one python (see above)
%python_subpackages
%description
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}
%{_datadir}/applications/org.gnuhealth.mygnuhealth.desktop
%license COPYRIGHT LICENSE
%{python_sitelib}/mygnuhealth
%{python_sitelib}/mygnuhealth-%{version}.dist-info
%{mypython_sitelib}/mygnuhealth
%{mypython_sitelib}/mygnuhealth-%{version}.dist-info
%files -n %{name}-doc