From 029c0f0efb27b0e981a3d850679ab924de13040b887f3f897f330f28aa598e4d Mon Sep 17 00:00:00 2001 From: Axel Braun Date: Sat, 29 Jun 2024 13:00:33 +0000 Subject: [PATCH] - added dependency on bleak OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/mygnuhealth?expand=0&rev=43 --- .gitattributes | 23 ++++++ .gitignore | 1 + _service | 16 ++++ mygnuhealth-2.2.0.tar.gz | 3 + mygnuhealth-2.2.0.tar.gz.sig | Bin 0 -> 566 bytes mygnuhealth.changes | 143 +++++++++++++++++++++++++++++++++++ mygnuhealth.keyring | 98 ++++++++++++++++++++++++ mygnuhealth.spec | 114 ++++++++++++++++++++++++++++ remove-obsolete-deps.patch | 12 +++ 9 files changed, 410 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 mygnuhealth-2.2.0.tar.gz create mode 100644 mygnuhealth-2.2.0.tar.gz.sig create mode 100644 mygnuhealth.changes create mode 100644 mygnuhealth.keyring create mode 100644 mygnuhealth.spec create mode 100644 remove-obsolete-deps.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..9770e17 --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + + + + diff --git a/mygnuhealth-2.2.0.tar.gz b/mygnuhealth-2.2.0.tar.gz new file mode 100644 index 0000000..d34480f --- /dev/null +++ b/mygnuhealth-2.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5c50243428c81c98c85b220ee9010f1fb5879817ef8314c4c1b8db265cefcadd +size 2715298 diff --git a/mygnuhealth-2.2.0.tar.gz.sig b/mygnuhealth-2.2.0.tar.gz.sig new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..a7c28f5a13dae983f4f93c2dbe4971aaa41468a317fd94358df81c3cea74130f GIT binary patch literal 566 zcmV-60?GY}0y6{v0SEvc79j+zzsL{Bkz*Was*T9N72&P`n30(U0%mnMT>uIR5Wp4T zt^k;knLFzb|48G{I}R8@fgeaSz7_yR^LQKz$R%_-QmG0kZvJ4ZU+KYvZ$ zbHy||45bxIjls9Oq#PuEXFX0UnCZ*2d8DsAq^l3{y+^%m?B%Fb4`mhj2jgOFdBMr+ z3!PFUyHz39g+tJVZ1Ry7V*pBFz5~~wJP&k7GE0#4;3W=?UKo_Uc!vg=DAZ0EsFx{t z*gddl+)=3Ams6J3dg6&EH0YD`)^_lvsarXCeevZV zSO^Q;B&Tnk=29%auTW-Vu}ffYKsy+Uq7OyM39D-gnJytGVRCH;{`0j$B^n&ES8Uam zU@2I~Vgz}kAf3Q4W&&~%Ke`Sz0mb5MI*Wh2_<`d)rQXwtDL|$^Hmgj(S0-cUh#$0} zrmxFd4nNML{p!=(z@I=#$mZcLQW~HDV`^UJUmo3?74@`fd>JyFx;#z?)CN7C9&=gN z%l@Mr;)xfw+qiJW2VgI2SpN+=h)}Kne7wYbcfpjjrzh5Ff|1AnbU|1j!mIb)B3QgV zkfW&OUru>~jP80e=gz2lxiH#w$kgU_p{gA)>5ZCp_Izn?P&kI9Q`Y4tLp4OoU9O@W EwRs*3^#A|> literal 0 HcmV?d00001 diff --git a/mygnuhealth.changes b/mygnuhealth.changes new file mode 100644 index 0000000..b8fb227 --- /dev/null +++ b/mygnuhealth.changes @@ -0,0 +1,143 @@ +------------------------------------------------------------------- +Sat Jun 29 12:59:59 UTC 2024 - Axel Braun + +- added dependency on bleak + +------------------------------------------------------------------- +Fri Jun 21 13:53:50 UTC 2024 - Axel Braun + +- version 2.2.0 + * Support for Kivy 2.3.0 + * Localization. MyGNUHealth now has support for different languages. + English, Spanish and Chinese are available to use, and French, + German, Italian are ready to be translated. There will be a + translation component for MyGNUHealth at Codeberg's Weblate + instance. + * Bluetooth functionality: Starting with MyGH series 2.2 we provide + bluetooth integration for open compatible devices and health + trackers. We include the link with the Pinetime Smartwatch + (experimental) and the possibility to link to any open hardware + device (glucometer, scales, blood pressure monitors, .. ). We need + to get a list of available medical devices that respect our privacy + and freedom, so let us know of any! + * Charts now allow to select date ranges with calendar widgets The + Book of Life have a revised format for the pages. The charts have + been improved in the format and include x axis labels. + +------------------------------------------------------------------- +Fri Jun 14 09:50:43 UTC 2024 - Axel Braun + +- version 2.2b1 + * beta version for testing only! + +------------------------------------------------------------------- +Sun Apr 7 11:12:02 UTC 2024 - Axel Braun + +- version 2.0.3 + * No changelog provided + +------------------------------------------------------------------- +Tue Feb 27 15:35:36 UTC 2024 - Axel Braun + +- version 2.0.2 + * No changelog provided + * sigature check temporary disabled + +------------------------------------------------------------------- +Wed Feb 7 09:39:23 UTC 2024 - Axel Braun + +- version 2.0.1 + See Changelog for details + +------------------------------------------------------------------- +Fri Sep 29 18:39:29 UTC 2023 - Ben Greiner + +- Fix single singlespec: Can't use python_subpackages rewriter + +------------------------------------------------------------------- +Fri Sep 29 18:03:46 UTC 2023 - Ben Greiner + +- Remove dependencies which are not used at runtime anywhere + * only CairoSVG is reqired for PNG charts since at least + pygal 1.7: + https://github.com/Kozea/pygal/blob/1.6.2/setup.py#L70 + * remove-obsolete-deps.patch + +------------------------------------------------------------------- +Fri Sep 29 16:31:48 UTC 2023 - Ben Greiner + +- 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 + +- Fix BuildRequirements +- Fix doc package duplicate file warning +- Remove stray singlespec + +------------------------------------------------------------------- +Wed Sep 27 15:26:22 UTC 2023 - Axel Braun + +- Version 2.0.0 + * complete rewrite based on Kivy (instead Kirigami) + * For Details see CHANGELOG + * doc_path.diff removed + * shebang.diff removed + +------------------------------------------------------------------- +Fri Mar 11 11:44:11 UTC 2022 - Axel Braun + +- License string corrected + +------------------------------------------------------------------- +Tue Oct 19 07:13:10 UTC 2021 - Axel Braun + +- version 1.0.5 +* switched source download to gnu.org, added signature +* added documentation in DE, ES, FR +* Minor adjustmends + +------------------------------------------------------------------- +Mon Aug 23 16:25:06 UTC 2021 - Axel Braun + +- version 1.0.4 +* fixes plotting issues when matplotlib uses unsorted records or dup + batch inputs. + +------------------------------------------------------------------- +Sun Jul 25 13:42:31 UTC 2021 - Axel Braun + +- version 1.0.3 +* update of Uniprot-database +* some minor changes / updates in the documentation and credits + +------------------------------------------------------------------- +Thu Jul 15 06:02:51 UTC 2021 - Axel Braun + +- Version 1.0.2 +* MyGNUHealth does not display global menu on MATE +* Update link from GNU Savannah + +------------------------------------------------------------------- +Thu Jul 8 06:40:10 UTC 2021 - Axel Braun + +- Version 1.0.1 +* Fix the download path within GNU.org. Now it points to + https://ftp.gnu.org/gnu/health/mygnuhealth/ +* Include Changelog file +* Include local / offline documentation (resides on + /usr/share/doc/packages/mygnuhealth) +* doc_path.diff added +* Clean up __pycache__ from tarball + +------------------------------------------------------------------- +Thu Jun 24 15:30:33 UTC 2021 - Axel Braun + +- Version 1.0.0 + +------------------------------------------------------------------- +Sat Oct 31 15:55:45 UTC 2020 - Axel Braun + +- Version 0.7a6 + initial OBS build diff --git a/mygnuhealth.keyring b/mygnuhealth.keyring new file mode 100644 index 0000000..ee353ae --- /dev/null +++ b/mygnuhealth.keyring @@ -0,0 +1,98 @@ +Member GPG keyring of health group. + +Note that this keyring is not intended for checking releases of that group. +Use Group Release Keyring instead. + +GPG keys of Luis Falcon +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBFkOA04BEADnOBk9Aio61+3AlTY+slTusQNT3bkMVxFEY87I2p0cmBG1oBwD +uC/DvnYKafg90juAF+LNIuhlCG351/bpJiu/8XsQSk55B2Jq9TeE4Sj/ilsS4mV2 +Kd+xqBER/N4T7c/d3prNv2mTrr1BL0qCfLxWrkZTkT5pheGHoI5LjhlQnZ9yuPOx +uYSmh+Rn0tUBEr82J0co6joa7FHiJsJc5P0lj40BoR9sLxqu08bLu21T0NYuVlab +uAjxeZ+qLS0ofDQSuU8NJPmbsWQ0nXHuagIZiZ1YIHQgT1x75aslwntD7ZeJlTfl +ipH1jrNVgPcNchOnSXPI6/N1+DAgCckx38/pM1PBnsgCV3hjQrhQPUav5ZmcbkvJ +0Hbsg74HbF2C+XmIeeDj5GlkKX0QwccYCajIwNzV6/VsfYWaaXZH08D8eKZ1eg1g +hKU1bQY8+vXhkq9WaFAb0YhLmhp0IzJLTuUfUjN8ARANRSVryisjZLb9MyAiawzL +LH1o5HY8mRsG1VFdQIlWe034x8t5ADkCIjwNq124Byvw+PdDya3RfeaNgwCOIPmz +woK2jXz7yNvzCQp1/6JmdrFOu9TkpHlrQEVFXPP7/3A7oRhPQItU+xpJrP5UaF0l +UD7NVCpTFGzrahqNvx33WEmsuXTFWs6pXC3YWx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ZBQJZDgNOAhsMAAoJEMAV4a4AmJGZuewQAL5IqkJu+hSjgWGuQV10V9Bw +XjyUuPEieemEPOTrJ0/jitJwLYA5cwFNKLU6ooyKztLbvc0t3xH3Jl/ec87+n6dp +/nswVd2MSxuQpcLUvHYgFrRvWFs3V0XHu/27WhYAsjQAQnNXq/NQGuE/Af+U9zyz +bTVBFOBzO/79yT3YO3A4gzNNkn11eFS/3h//2D6b08Rdxl5EMOkiviogK0F13gJU +TU/2Y//UIeBA3wxRyc44K6z+6PmL3JzKvP66VxknMe5hkF6SR8QKfxXaKM5PbV5X +G7gd30+eRNneLVVbz9Y/MarEnFE4GXOaj8jMaAoTCrfi9lJzMSefWWXUH3ifjE2R +ERFzkTbsoPs5w+wC4VwuUE5z3iz9Y0QB964smywsz0fWJAL7cWxErM87ZWLh7wIf +EKFHc/uD3P+HhS0l57LApd9QEgcMMwMOFIeLwi++BynzfeP3Ga38QLdxfluASkuW +oNuMoSwQXobNrtNASlBOPf1KpyuOAI6hOvfHAPGekH92iK/FUe9D2gUodr8pybwB +M8+bmPkuI2yyfO1bYpXeXuLjCwJUB/FAq2JrjoS8iKV8i+jnX2GOtwmLh+OOsErI +WgFL1ZJFVYHGC+VKj/JgT9Ctof10B2Hrlt40PXoliexwo7wvl8cHFjonF2r9WXZ2 +wgeqPuoNWoFYKK0/GlVa +=doah +-----END PGP PUBLIC KEY BLOCK----- diff --git a/mygnuhealth.spec b/mygnuhealth.spec new file mode 100644 index 0000000..a53d496 --- /dev/null +++ b/mygnuhealth.spec @@ -0,0 +1,114 @@ +# +# spec file for package mygnuhealth +# +# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2020-2024 Dr. Axel Braun +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define modname MyGNUHealth +%define majorver 2 + +%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 +Version: %{majorver}.2.0 +Release: 0 +Summary: The personal health record for the GNU Health system +License: GPL-3.0-or-later +Group: Productivity/Office/Management +URL: http://health.gnu.org/ +## Source: https://files.pythonhosted.org/packages/source/m/%{name}/%{name}-%{version}.tar.gz +Source: https://ftp.gnu.org/gnu/health/mygnuhealth/%{name}-%{version}.tar.gz +Source1: https://ftp.gnu.org/gnu/health/mygnuhealth/%{name}-%{version}.tar.gz.sig +Source2: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=health&download=1#/%{name}.keyring +Patch0: remove-obsolete-deps.patch +# SECTION build +BuildRequires: fdupes +BuildRequires: %{python_module wheel} +BuildRequires: %{python_module setuptools >= 61} +BuildRequires: %{python_module pip} +BuildRequires: update-desktop-files +BuildRequires: python-rpm-macros +# /SECTION +# SECTION test requirements +# there are no tests, but at least check that all the runtime requirements are available on build time +BuildRequires: %{python_module bcrypt} +BuildRequires: %{python_module dateutil} +BuildRequires: %{python_module Kivy} +BuildRequires: %{python_module pygal} +BuildRequires: %{python_module tinydb} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module CairoSVG} +Requires: %{mypython}-dateutil +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) + + +%description +The Personal Health Information Management System for Desktop and Mobile Devices +for the GNU Health ecosystem + +%prep +%autosetup -p1 -n %{name}-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install + +# remove shebang +%python_expand sed -i '1{/env python/d}' %{buildroot}%{python_sitelib}/mygnuhealth/*.py + +# menu-entry +desktop-file-install --dir %{buildroot}%{_datadir}/applications org.gnuhealth.mygnuhealth.desktop +%suse_update_desktop_file org.gnuhealth.mygnuhealth + +%python_expand %fdupes %{buildroot}%{python_sitelib} + +%post +#clean qml cache to avoid issues +rm -rf /home/*/.cache/mygnuhealth + +%postun +#clean qml cache - housekeeping +rm -rf /home/*/.cache/mygnuhealth + +%files +%attr(755,root,root) %{_bindir}/%{name} +%{_datadir}/applications/org.gnuhealth.mygnuhealth.desktop +%license COPYRIGHT LICENSE +%{mypython_sitelib}/mygnuhealth +%{mypython_sitelib}/mygnuhealth-%{version}.dist-info + +%changelog diff --git a/remove-obsolete-deps.patch b/remove-obsolete-deps.patch new file mode 100644 index 0000000..aed1323 --- /dev/null +++ b/remove-obsolete-deps.patch @@ -0,0 +1,12 @@ +diff -U 3 -dHrN -- a/pyproject.toml b/pyproject.toml +--- a/pyproject.toml 2024-06-18 17:57:21.000000000 +0200 ++++ b/pyproject.toml 2024-06-21 18:23:26.520311691 +0200 +@@ -19,8 +19,6 @@ + 'tinydb', + 'bcrypt', + 'cairosvg', +- 'tinycss', +- 'cssselect', + 'bleak' + ] +