mygnuhealth/mygnuhealth.spec
Axel Braun e6e983e341 Accepting request 1114031 from home:DocB:branches:Application:ERP:GNUHealth:Factory
- Version 2.0.0
  * complete rewrite based on Kivy (instead Kirigami)
  * For Details see CHANGELOG
- License string corrected
- version 1.0.5
* switched source download to gnu.org, added signature
* added documentation in DE, ES, FR
* Minor adjustmends
- version 1.0.4
* fixes plotting issues when matplotlib uses unsorted records or dup
  batch inputs.
- version 1.0.3
* update of Uniprot-database
* some minor changes / updates in the documentation and credits
- Version 1.0.2
* MyGNUHealth does not display global menu on MATE
* Update link from GNU Savannah 
- 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 
- Version 1.0.0
- Version 0.7a6
  initial OBS build

OBS-URL: https://build.opensuse.org/request/show/1114031
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/mygnuhealth?expand=0&rev=29
2023-09-28 08:11:09 +00:00

109 lines
3.4 KiB
RPMSpec

#
# spec file for package mygnuhealth
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2020-2023 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
#boo#1181905
%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
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://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
BuildRequires: fdupes
BuildRequires: python3-bcrypt
## BuildRequires: python3-matplotlib
BuildRequires: python3-Kivy
BuildRequires: python3-pygal
BuildRequires: python3-pip
BuildRequires: python3-pip-wheel
BuildRequires: python3-setuptools-wheel
BuildRequires: python3-tinydb
BuildRequires: python3-wheel
BuildRequires: update-desktop-files
Requires: python3-Kivy
Requires: python3-bcrypt
## Requires: python3-matplotlib
Requires: python3-pygal
Requires: python3-requests
Requires: python3-tinydb
%description
The Personal Health Information Management System for Desktop and Mobile Devices
for the GNU Health ecosystem
%package -n %{name}-doc
Summary: Documentation files for MyGNUHealth
Group: Productivity/Office/Management
BuildArch: noarch
%description -n %{name}-doc
This package includes the documentation for MyGNUHealth Personal Health
Information Management System for Desktop and Mobile Devices
%prep
%setup -q -n %{name}
## %autopatch -p1
%build
%pyproject_wheel
%install
%pyproject_install
## --prefix=%{_prefix} --root=%{buildroot}
# menu-entry
desktop-file-install --dir %{buildroot}%{_datadir}/applications org.gnuhealth.mygnuhealth.desktop
%suse_update_desktop_file org.gnuhealth.mygnuhealth
#documentation in the MyGNUHealth-doc package is sufficient
rm -rf %{buildroot}%{_docdir}/*
%python_expand %fdupes %{buildroot}%{python3_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
## %{_datadir}/icons/*
## %{_datadir}/metainfo/*
%license COPYRIGHT LICENSE
%{python3_sitelib}/*
%files -n %{name}-doc
%doc README.rst doc/*
%changelog