SHA256
1
0
forked from pool/mygnuhealth

Accepting request 905077 from Application:ERP:GNUHealth:Factory

- 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

OBS-URL: https://build.opensuse.org/request/show/905077
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mygnuhealth?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2021-07-08 20:49:24 +00:00 committed by Git OBS Bridge
commit 0428046b25
5 changed files with 42 additions and 11 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:21611c1a9a00273572e52e731ea28348e60ed737fb9dd35cdf62c0ca927a1f16
size 4706504

3
MyGNUHealth-1.0.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1a77c087572a9c1e24d3b63d64ecca19f74b58aecc9ea2555c73d168e14be9b0
size 4706576

14
doc_path.diff Normal file
View File

@ -0,0 +1,14 @@
diff -U 3 -dHrN -- a/setup.py b/setup.py
--- a/setup.py 2021-07-08 00:55:24.000000000 +0200
+++ b/setup.py 2021-07-08 09:44:15.828710409 +0200
@@ -53,8 +53,8 @@
zip_safe=False,
data_files=[
('share/applications', ['org.kde.mygnuhealth.desktop']),
- ('share/doc/mygnuhealth', ['doc/mygnuhealth.rst']),
- ('share/doc/mygnuhealth/images', glob('doc/images/*', recursive=True)),
+ ('share/doc/packages/mygnuhealth', ['doc/mygnuhealth.rst']),
+ ('share/doc/packages/mygnuhealth/images', glob('doc/images/*', recursive=True)),
('share/metainfo', ['org.kde.mygnuhealth.metainfo.xml']),
('share/icons/hicolor/scalable/apps/',
['mygnuhealth/images/mygnuhealth.svg']),

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Thu Jul 8 06:40:10 UTC 2021 - Axel Braun <axel.braun@gmx.de>
- 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 <axel.braun@gmx.de>

View File

@ -16,6 +16,7 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define modname MyGNUHealth
%define majorver 1
@ -23,7 +24,7 @@
%global __requires_exclude qmlimport\\((BloodPressure|FedLogin|GHBio|GHBol|GHPsycho|Glucose|LocalAccountManager|MoodEnergy|NetworkSettings|Osat|ProfileSettings|Weight|PoL|GHLifestyle|GHPhysicalActivity|GHNutrition|GHSleep|GHAbout)
Name: mygnuhealth
Version: %{majorver}.0.0
Version: %{majorver}.0.1
Release: 0
Summary: The personal health record for the GNU Health system
License: GPL-3.0-only
@ -31,19 +32,20 @@ Group: Productivity/Office/Management
URL: http://health.gnu.org/
Source: https://files.pythonhosted.org/packages/source/M/%{modname}/%{modname}-%{version}.tar.gz
Patch0: shebang.diff
Patch1: doc_path.diff
BuildRequires: fdupes
BuildRequires: python3-pyside2 >= 5.15
BuildRequires: python3-matplotlib
BuildRequires: python3-tinydb
BuildRequires: python3-bcrypt
BuildRequires: python3-matplotlib
BuildRequires: python3-pyside2 >= 5.15
BuildRequires: python3-setuptools
BuildRequires: python3-tinydb
BuildRequires: update-desktop-files
Requires: kirigami2
Requires: python3-pyside2 >= 5.15
Requires: python3-bcrypt
Requires: python3-matplotlib
Requires: python3-pyside2 >= 5.15
Requires: python3-requests
Requires: python3-tinydb
Requires: python3-bcrypt
%description
The Personal Health Information Management System for Desktop and Mobile Devices
@ -60,7 +62,7 @@ Information Management System for Desktop and Mobile Devices
%prep
%setup -q -n %{modname}-%{version}
%patch0 -p1
%autopatch -p1
%build
%python3_build
@ -72,6 +74,9 @@ Information Management System for Desktop and Mobile Devices
desktop-file-install --dir %{buildroot}%{_datadir}/applications org.kde.mygnuhealth.desktop
%suse_update_desktop_file org.kde.mygnuhealth
#documentation in the MyGNUHealth-doc package is sufficient
rm -rf %{buildroot}%{_docdir}/*
%python_expand %fdupes %{buildroot}%{python3_sitelib}
%post