Accepting request 1114417 from home:bnavigator:branches:Application:ERP:GNUHealth:Factory

second submit because I didn't supersede

- Back to singlespec for a single flavor in order to
  use sle15_python_module_pythons

OBS-URL: https://build.opensuse.org/request/show/1114417
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/mygnuhealth?expand=0&rev=33
This commit is contained in:
Axel Braun 2023-09-29 16:40:56 +00:00 committed by Git OBS Bridge
parent 3173b06a8a
commit f3a71b8900
2 changed files with 41 additions and 25 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Sep 29 16:31:48 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Back to singlespec for a single flavor in order to
use sle15_python_module_pythons
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Sep 29 16:13:11 UTC 2023 - Ben Greiner <code@bnavigator.de> Fri Sep 29 16:13:11 UTC 2023 - Ben Greiner <code@bnavigator.de>

View File

@ -23,6 +23,14 @@
#boo#1181905 #boo#1181905
%global __requires_exclude qmlimport\\((BloodPressure|FedLogin|GHBio|GHBol|GHPsycho|Glucose|LocalAccountManager|MoodEnergy|NetworkSettings|Osat|ProfileSettings|Weight|PoL|GHLifestyle|GHPhysicalActivity|GHNutrition|GHSleep|GHAbout) %global __requires_exclude qmlimport\\((BloodPressure|FedLogin|GHBio|GHBol|GHPsycho|Glucose|LocalAccountManager|MoodEnergy|NetworkSettings|Osat|ProfileSettings|Weight|PoL|GHLifestyle|GHPhysicalActivity|GHNutrition|GHSleep|GHAbout)
%if %{?suse_version} > 1500
# only the primary one for TW
%define pythons python3
%else
# needs Python 3.9+
%{?sle15_python_module_pythons}
%endif
Name: mygnuhealth Name: mygnuhealth
Version: %{majorver}.0.0 Version: %{majorver}.0.0
Release: 0 Release: 0
@ -37,33 +45,35 @@ Source2: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=he
## Patch1: doc_path.diff ## Patch1: doc_path.diff
# SECTION build # SECTION build
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python3-wheel BuildRequires: %{python_module wheel}
BuildRequires: python3-setuptools >= 61 BuildRequires: %{python_module setuptools >= 61}
BuildRequires: python3-pip BuildRequires: %{python_module pip}
BuildRequires: update-desktop-files BuildRequires: update-desktop-files
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
# /SECTION # /SECTION
# SECTION test requirements # SECTION test requirements
# there are no tests, but at least check that all the runtime requirements are available on build time # there are no tests, but at least check that all the runtime requirements are available on build time
BuildRequires: python3-bcrypt BuildRequires: %{python_module bcrypt}
BuildRequires: python3-Kivy BuildRequires: %{python_module Kivy}
BuildRequires: python3-pygal BuildRequires: %{python_module pygal}
BuildRequires: python3-tinydb BuildRequires: %{python_module tinydb}
BuildRequires: python3-requests BuildRequires: %{python_module requests}
BuildRequires: python3-CairoSVG BuildRequires: %{python_module CairoSVG}
# DO NOT SUBMIT TO FACTORY UNTIL THIS IS PATCHED to tinycss2 or old obsolete tinycss is back # DO NOT SUBMIT TO FACTORY UNTIL THIS IS PATCHED to tinycss2 or old obsolete tinycss is back
#BuildRequires: python3-tinycss #BuildRequires: %%{python_module tinycss}
BuildRequires: python3-cssselect BuildRequires: %{python_module cssselect}
Requires: python3-bcrypt Requires: python-bcrypt
Requires: python3-Kivy Requires: python-Kivy
Requires: python3-pygal Requires: python-pygal
Requires: python3-tinydb Requires: python-tinydb
Requires: python3-requests Requires: python-requests
Requires: python3-CairoSVG Requires: python-CairoSVG
Requires: python3-tinycss Requires: python-tinycss
Requires: python3-cssselect Requires: python-cssselect
# /SECTION # /SECTION
BuildArch: noarch BuildArch: noarch
# 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
@ -81,19 +91,19 @@ Information Management System for Desktop and Mobile Devices
%autosetup -p1 -n %{name} %autosetup -p1 -n %{name}
%build %build
%python3_pyproject_wheel %pyproject_wheel
%install %install
%python3_pyproject_install %pyproject_install
# remove shebang # remove shebang
sed -i '1{/env python/d}' %{buildroot}%{python3_sitelib}/mygnuhealth/*.py %python_expand sed -i '1{/env python/d}' %{buildroot}%{python_sitelib}/mygnuhealth/*.py
# menu-entry # menu-entry
desktop-file-install --dir %{buildroot}%{_datadir}/applications org.gnuhealth.mygnuhealth.desktop desktop-file-install --dir %{buildroot}%{_datadir}/applications org.gnuhealth.mygnuhealth.desktop
%suse_update_desktop_file org.gnuhealth.mygnuhealth %suse_update_desktop_file org.gnuhealth.mygnuhealth
%fdupes %{buildroot}%{python3_sitelib} %python_expand %fdupes %{buildroot}%{python_sitelib}
# install and deduplicate doc # install and deduplicate doc
mkdir -p %{buildroot}%{_docdir}/%{name}-doc/ mkdir -p %{buildroot}%{_docdir}/%{name}-doc/
@ -112,8 +122,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
%{python3_sitelib}/mygnuhealth %{python_sitelib}/mygnuhealth
%{python3_sitelib}/mygnuhealth-%{version}.dist-info %{python_sitelib}/mygnuhealth-%{version}.dist-info
%files -n %{name}-doc %files -n %{name}-doc