2018-01-06 18:55:29 +01:00
|
|
|
#
|
|
|
|
# spec file for package gnuhealth-client
|
|
|
|
#
|
2020-01-31 09:00:18 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2019-04-02 22:31:09 +02:00
|
|
|
# Copyright (c) 2015-2019 Dr. Axel Braun
|
2018-01-06 18:55:29 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-28 18:19:44 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-01-06 18:55:29 +01:00
|
|
|
#
|
|
|
|
|
2018-01-30 15:44:03 +01:00
|
|
|
|
2019-11-29 15:19:05 +01:00
|
|
|
%define majorver 3.6
|
2018-01-06 18:55:29 +01:00
|
|
|
Name: gnuhealth-client
|
2020-03-01 18:12:14 +01:00
|
|
|
Version: %{majorver}.8
|
2018-01-06 18:55:29 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: The client of the GNU Health Hospital system
|
2018-12-28 18:19:44 +01:00
|
|
|
License: GPL-3.0-only
|
2018-01-06 18:55:29 +01:00
|
|
|
Group: Productivity/Office/Management
|
2019-11-29 15:19:05 +01:00
|
|
|
URL: http://health.gnu.org/
|
2019-09-08 18:43:31 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/g/%{name}/%{name}-%{version}.tar.gz
|
2019-11-29 15:19:05 +01:00
|
|
|
##urce: %{name}-%{version}.tar.gz
|
|
|
|
##urce1: %{name}-plugins-%{version}.tar.gz
|
|
|
|
Source1: ftp://ftp.gnu.org/gnu/health/plugins/gnuhealth_plugin_camera-latest.tar.gz
|
|
|
|
Source2: ftp://ftp.gnu.org/gnu/health/plugins/gnuhealth_plugin_crypto-latest.tar.gz
|
|
|
|
Source3: ftp://ftp.gnu.org/gnu/health/plugins/gnuhealth_plugin_frl-latest.tar.gz
|
2018-12-28 18:19:44 +01:00
|
|
|
Source4: %{name}.desktop
|
2019-11-29 15:19:05 +01:00
|
|
|
|
|
|
|
###uildRequires: fdupes
|
|
|
|
BuildRequires: python3-Babel
|
|
|
|
BuildRequires: python3-Sphinx
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-gobject
|
|
|
|
BuildRequires: python3-python-dateutil
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-simplejson
|
2018-01-06 18:55:29 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2019-11-29 15:19:05 +01:00
|
|
|
|
|
|
|
Requires: gobject-introspection
|
2019-09-08 18:43:31 +02:00
|
|
|
Requires: opencv
|
2019-11-29 15:19:05 +01:00
|
|
|
Requires: python3-GooCalendar >= 0.5
|
|
|
|
Requires: python3-cairo
|
|
|
|
Requires: python3-chardet
|
|
|
|
Requires: python3-dateutil
|
|
|
|
Requires: python3-gnupg
|
|
|
|
Requires: python3-gobject
|
|
|
|
Requires: python3-gobject-Gdk
|
|
|
|
Requires: python3-gobject-cairo
|
|
|
|
Requires: python3-numpy
|
|
|
|
Requires: python3-opencv
|
|
|
|
Requires: python3-pytz
|
|
|
|
Requires: python3-setuptools
|
|
|
|
Requires: python3-simplejson
|
|
|
|
Requires: python3-xml
|
2019-09-08 18:43:31 +02:00
|
|
|
BuildArch: noarch
|
2019-09-08 16:11:19 +02:00
|
|
|
|
2019-11-29 15:19:05 +01:00
|
|
|
Conflicts: tryton
|
|
|
|
|
2018-01-06 18:55:29 +01:00
|
|
|
%description
|
|
|
|
The client of the GNU Health Hospital application
|
|
|
|
|
|
|
|
%prep
|
2018-01-30 15:44:03 +01:00
|
|
|
%setup -q
|
2018-12-28 18:19:44 +01:00
|
|
|
cp %{SOURCE4} .
|
2018-01-06 18:55:29 +01:00
|
|
|
|
|
|
|
pwd
|
2019-11-29 15:19:05 +01:00
|
|
|
cd tryton/plugins
|
2018-12-28 18:19:44 +01:00
|
|
|
tar -xzvf %{SOURCE1}
|
|
|
|
tar -xzvf %{SOURCE2}
|
|
|
|
tar -xzvf %{SOURCE3}
|
2018-01-06 18:55:29 +01:00
|
|
|
|
2019-11-29 15:19:05 +01:00
|
|
|
#workaround for tryton bug: directory name with version is not considered
|
|
|
|
mv gnuhealth_plugin_camera* camera
|
|
|
|
mv gnuhealth_plugin_crypto* crypto
|
|
|
|
mv gnuhealth_plugin_frl* frl
|
2019-11-11 20:08:35 +01:00
|
|
|
|
2018-01-30 15:44:03 +01:00
|
|
|
%build
|
|
|
|
:
|
|
|
|
|
2018-01-06 18:55:29 +01:00
|
|
|
%install
|
2019-11-29 15:19:05 +01:00
|
|
|
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2018-01-06 18:55:29 +01:00
|
|
|
|
|
|
|
# menu-entry
|
|
|
|
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{name}.desktop
|
|
|
|
%suse_update_desktop_file %{name}
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
|
|
|
|
2019-11-29 15:19:05 +01:00
|
|
|
cp %{buildroot}$(ls -d /usr/lib/python3.* )/site-packages/tryton/data/pixmaps/tryton/gnuhealth-icon.png %{buildroot}%{_datadir}/pixmaps/gnuhealth.png
|
2018-01-06 18:55:29 +01:00
|
|
|
|
2019-11-29 15:19:05 +01:00
|
|
|
###thon_expand %fdupes %{buildroot}%{python_sitelib}
|
2018-01-06 18:55:29 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2018-12-28 18:19:44 +01:00
|
|
|
%doc Changelog
|
|
|
|
%license COPYRIGHT COPYING
|
2018-01-06 18:55:29 +01:00
|
|
|
%{_datadir}/pixmaps/*
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|