diff --git a/mygnuhealth.changes b/mygnuhealth.changes index 61b90e7..bf74a9c 100644 --- a/mygnuhealth.changes +++ b/mygnuhealth.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +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 diff --git a/mygnuhealth.spec b/mygnuhealth.spec index a62b532..8cde7ea 100644 --- a/mygnuhealth.spec +++ b/mygnuhealth.spec @@ -41,8 +41,7 @@ URL: http://health.gnu.org/ 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: shebang.diff -## Patch1: doc_path.diff +Patch0: remove-obsolete-deps.patch # SECTION build BuildRequires: fdupes BuildRequires: %{python_module wheel} @@ -59,17 +58,12 @@ BuildRequires: %{python_module pygal} BuildRequires: %{python_module tinydb} BuildRequires: %{python_module requests} BuildRequires: %{python_module CairoSVG} -# DO NOT SUBMIT TO FACTORY UNTIL THIS IS PATCHED to tinycss2 or old obsolete tinycss is back -#BuildRequires: %%{python_module tinycss} -BuildRequires: %{python_module cssselect} Requires: python-bcrypt Requires: python-Kivy Requires: python-pygal Requires: python-tinydb Requires: python-requests Requires: python-CairoSVG -Requires: python-tinycss -Requires: python-cssselect # /SECTION BuildArch: noarch # singlespec rewriter for exactly one python (see above) diff --git a/remove-obsolete-deps.patch b/remove-obsolete-deps.patch new file mode 100644 index 0000000..3b07ed9 --- /dev/null +++ b/remove-obsolete-deps.patch @@ -0,0 +1,28 @@ +Index: mygnuhealth/buildozer.spec +=================================================================== +--- mygnuhealth.orig/buildozer.spec ++++ mygnuhealth/buildozer.spec +@@ -37,8 +37,8 @@ version = 1.9 + + # (list) Application requirements + # comma separated e.g. requirements = sqlite3,kivy +-# pygal, cairosvg, tinycss and cssselect are to render the charts in PNG format +-requirements = python3,kivy, tinydb, bcrypt, pygal, cairosvg, tinycss, cssselect ++# pygal, cairosvg is to render the charts in PNG format ++requirements = python3,kivy, tinydb, bcrypt, pygal, cairosvg + + # (str) Custom source folders for requirements + # Sets custom source for any requirements with recipes +Index: mygnuhealth/pyproject.toml +=================================================================== +--- mygnuhealth.orig/pyproject.toml ++++ mygnuhealth/pyproject.toml +@@ -18,8 +18,6 @@ dependencies = [ + 'tinydb', + 'bcrypt', + 'cairosvg', +- 'tinycss', +- 'cssselect' + ] + + classifiers=[