2018-01-06 18:55:29 +01:00
|
|
|
#
|
|
|
|
# spec file for package gnuhealth-client
|
|
|
|
#
|
2022-03-07 15:18:37 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
|
|
|
# Copyright (c) 2015-2022 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
|
|
|
|
2022-03-07 15:18:37 +01:00
|
|
|
%define majorver 4.0
|
2018-01-06 18:55:29 +01:00
|
|
|
Name: gnuhealth-client
|
2022-03-07 15:18:37 +01:00
|
|
|
Version: %{majorver}.0
|
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/
|
2021-02-27 17:58:32 +01:00
|
|
|
Source: https://ftp.gnu.org/pub/gnu/health/%{name}-%{version}.tar.gz
|
2022-03-07 15:18:37 +01:00
|
|
|
##Source: %{name}-%{version}.tar.gz
|
2019-11-29 15:19:05 +01:00
|
|
|
##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
|
2021-02-27 17:58:32 +01:00
|
|
|
Source5: https://ftp.gnu.org/gnu/health/%{name}-%{version}.tar.gz.sig
|
|
|
|
Source6: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=health&download=1#/%{name}.keyring
|
2019-11-29 15:19:05 +01:00
|
|
|
|
2021-02-16 08:37:01 +01:00
|
|
|
BuildRequires: fdupes
|
2019-11-29 15:19:05 +01:00
|
|
|
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
|
|
|
|
2022-03-07 15:18:37 +01:00
|
|
|
Requires: gnu-free-fonts
|
2019-11-29 15:19:05 +01:00
|
|
|
Requires: gobject-introspection
|
2019-09-08 18:43:31 +02:00
|
|
|
Requires: opencv
|
2021-02-25 19:39:22 +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
|
2021-02-16 08:37:01 +01:00
|
|
|
|
2019-09-08 18:43:31 +02:00
|
|
|
BuildArch: noarch
|
2019-09-08 16:11:19 +02:00
|
|
|
|
2022-03-07 15:18:37 +01:00
|
|
|
## Conflicts: tryton
|
2019-11-29 15:19:05 +01:00
|
|
|
|
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
|
2022-03-07 15:18:37 +01:00
|
|
|
### cp %{SOURCE4} .
|
2018-01-06 18:55:29 +01:00
|
|
|
|
|
|
|
pwd
|
2022-03-07 15:18:37 +01:00
|
|
|
cd gnuhealth/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
|
2022-03-07 15:18:37 +01:00
|
|
|
mv gnuhealth_plugin_camera* camera
|
|
|
|
mv gnuhealth_plugin_crypto* crypto
|
|
|
|
mv gnuhealth_plugin_frl* frl
|
2019-11-11 20:08:35 +01:00
|
|
|
|
2020-11-07 17:58:14 +01:00
|
|
|
# Remove pycache
|
2020-11-07 18:23:42 +01:00
|
|
|
rm -rf */__pycache__
|
2020-11-07 17:58:14 +01:00
|
|
|
|
2018-01-30 15:44:03 +01:00
|
|
|
%build
|
2021-02-16 08:37:01 +01:00
|
|
|
%python3_build
|
2018-01-30 15:44:03 +01:00
|
|
|
|
2018-01-06 18:55:29 +01:00
|
|
|
%install
|
2021-02-16 08:37:01 +01:00
|
|
|
%python3_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
|
|
|
|
|
2022-03-07 15:18:37 +01:00
|
|
|
cp %{buildroot}$(ls -d /usr/lib/python3.* )/site-packages/gnuhealth/data/pixmaps/gnuhealth/gnuhealth-icon.png %{buildroot}%{_datadir}/pixmaps/gnuhealth.png
|
2018-01-06 18:55:29 +01:00
|
|
|
|
2021-02-16 08:37:01 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{python3_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/*
|
2021-02-16 08:37:01 +01:00
|
|
|
%{python3_sitelib}/*
|
2018-01-06 18:55:29 +01:00
|
|
|
|
|
|
|
%changelog
|