Axel Braun 2019-09-08 14:11:19 +00:00 committed by Git OBS Bridge
parent 4090bfe988
commit ae96e9190b
2 changed files with 35 additions and 30 deletions

View File

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

View File

@ -17,47 +17,50 @@
#
%define majorver 3.4
%define majorver 3
Name: gnuhealth-client
Version: %{majorver}.4
Version: %{majorver}5
Release: 0
Summary: The client of the GNU Health Hospital system
License: GPL-3.0-only
Group: Productivity/Office/Management
Url: http://health.gnu.org/
Source: https://files.pythonhosted.org/packages/source/g/%{name}/%{name}-%{version}.tar.gz
### https://files.pythonhosted.org/packages/source/g/%{name}/%{name}-%{version}.tar.gz
Source: %{name}-%{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
Source4: %{name}.desktop
BuildRequires: fdupes
BuildRequires: python-Babel
BuildRequires: python-Sphinx
# List of additional build dependencies
BuildRequires: python-devel
BuildRequires: python-gtk
BuildRequires: python-python-dateutil
BuildRequires: python-setuptools
BuildRequires: python-simplejson
BuildRequires: python3-Babel
BuildRequires: python3-Sphinx
BuildRequires: python3-devel
BuildRequires: python3-gobject
BuildRequires: python3-python-dateutil
BuildRequires: python3-setuptools
BuildRequires: python3-simplejson
BuildRequires: update-desktop-files
#Requires: librsvg
#for the plugins:
##Requires: librsvg
Requires: opencv
Requires: python-cdecimal
Requires: python-chardet
Requires: python-dateutil
Requires: python-gnupg
Requires: python-gtk
Requires: python-opencv
Requires: python-pytz
Requires: python-setuptools
Requires: python-simplejson
Requires: python-xml
Requires: python2-GooCalendar < 0.5
#install Tryton or GNU Health Client
Conflicts: tryton
Requires: python3-GooCalendar >= 0.5
Requires: python3-chardet
Requires: python3-dateutil
Requires: python3-gnupg
Requires: python3-gobject
Requires: python3-opencv
Requires: python3-pytz
Requires: python3-setuptools
Requires: python3-simplejson
Requires: python3-xml
BuildArch: noarch
#for the plugins:
##Requires: python3-cdecimal
Conflicts: tryton
%description
The client of the GNU Health Hospital application
@ -79,17 +82,16 @@ tar -xzvf %{SOURCE3}
:
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
# menu-entry
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{name}.desktop
%suse_update_desktop_file %{name}
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp %{buildroot}%{python_sitelib}/tryton/data/pixmaps/tryton/gnuhealth-icon.png %{buildroot}%{_datadir}/pixmaps/gnuhealth.png
cp tryton/data/pixmaps/tryton/gnuhealth-icon.png %{buildroot}%{_datadir}/pixmaps/gnuhealth.png
##%fdupes %{buildroot}%{_datadir}
##%fdupes %{buildroot}%{_prefix}/lib
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%post
%desktop_database_post