Accepting request 432164 from Application:ERP:Tryton:Factory
update of spec file OBS-URL: https://build.opensuse.org/request/show/432164 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnuhealth?expand=0&rev=2
This commit is contained in:
parent
3bd79d2cb6
commit
0e048d1172
@ -1,24 +1,26 @@
|
||||
GNUHealth for openSUSE
|
||||
======================
|
||||
|
||||
GNUHealth is a free Health and Hospital Information system build on top of Tryton, an OpenSource ERP framework.
|
||||
GNUHealth is a free Health and Hospital Information system build on top of Tryton, an OpenSource ERP framework.
|
||||
|
||||
This is the openSUSE package for GNUHealth. It was build to simplify the installation and maintenance of a system, to make it useable for 'end-users' as well.
|
||||
This is the openSUSE package for GNUHealth. Starting with openSUSE Leap 42.2, it is shipped with the standard distribution. It was build to simplify the installation and maintenance of a system, to make it useable for 'end-users' as well.
|
||||
|
||||
To achieve this goal, the openSUSE package handles some things different than the GNUHealth standard:
|
||||
|
||||
1) No installation from source code
|
||||
GNUHealth has an installation script (gnuhealth_install.sh)that installs the Software from the source code.
|
||||
GNUHealth has an installation script (gnuhealth_install.sh) that installs the Software from the source code.
|
||||
It has shown that this can cause a lot of trouble with dependencies (other software packages that are required to run GNUHealth and the Tryton Server), as they may be named slightly different in your Linux-distribution, or are just not listed.
|
||||
|
||||
To avoid hassle for each and every end user, openSUSE uses the Open Build Service [1] to create a package where all dependencies are resolved for you.
|
||||
|
||||
As a consequence, you install the package 'gnuhealth' with the openSUSE package manager, and the system does the rest for you. See [2] for installation advise.
|
||||
|
||||
In GNU Health installation from source, the program gnuhealth_control is used to perform updates, maintenance etc. The openSUSE packages come with a modified gnuhealth_control to distinguish between activities performed by system tools (zypper) and those that safely can be handled by gnuhealth_control. Try it, its save!
|
||||
|
||||
2) GNUHealth depends on Tryton
|
||||
Tryton [3] is the technical backend for GNUHealth. Tryton can run as ERP-System on its own. For the reasons explained under 1) , Tryton is build as well as package for openSUSE, following the same philosophy. See [4]for details.
|
||||
|
||||
See as well: /usr/share/doc/packages/trytond/tryton-server.README.SUSE on your local installation
|
||||
See as well: /usr/share/doc/packages/trytond/tryton-server.README.SUSE to set up your local installation.
|
||||
|
||||
3) GNUHealth is build on top of Tryton
|
||||
Unlike the standard GNUHealth setup, openSUSE treats GNUHealth as add-on (additional modules) to a Tryton standard installation. The implications are:
|
||||
@ -26,11 +28,13 @@ Unlike the standard GNUHealth setup, openSUSE treats GNUHealth as add-on (additi
|
||||
- The Tryton Server (basis for GNUHealth) runs under the user 'tryton', not under the user 'gnuhealth'
|
||||
- you can use the openSUSE standard tools to start and stop the server [4]
|
||||
- you can use the openSUSE package manager (zypper or YaST) to install upgrades.
|
||||
- You *SHOULD NOT* use gnuhealth-control to install upgrades! gnuhealth-control forces an installation from source, and by this may break your installation
|
||||
- all Tryton and GNUHealth modules are installed in the python directory /usr/lib/python/site-packages/trytond
|
||||
|
||||
Nevertheless, you can use gnuhealth-control to create database backups, install languages and updates. Make sure the version of gnuhealth_control ends on -openSUSE
|
||||
|
||||
In case you want to install additional Tryton modules, you need to include the Tryton repository:
|
||||
zypper ar -f http://download.opensuse.org/repositories/Application:/ERP:/Tryton:/3.8/openSUSE_Leap_42.2 tryton
|
||||
|
||||
You may use the GNUHealth mailing list (health@gnu.org) for remarks or questions.
|
||||
|
||||
|
||||
@ -50,7 +54,7 @@ Have fun and keep the neighborhood well and fit!
|
||||
[1] https://build.opensuse.org
|
||||
[2] http://en.wikibooks.org/wiki/GNU_Health/Operating_System-Specific_Notes#OpenSUSE
|
||||
[3] http://www.tryton.org
|
||||
[4] https://code.google.com/p/tryton/wiki/InstallationonopenSUSE
|
||||
[4] https://github.com/mbehrle/tryton/blob/wiki/InstallationonopenSUSE.md
|
||||
|
||||
|
||||
-- Axel Braun <axel.braun@gmx.de> Tue, 27 Jan 2015 10:08:00 +0200
|
||||
-- Axel Braun <axel.braun@gmx.de> Wed Sep 28 18:35:02 UTC 2016
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 28 18:35:02 UTC 2016 - axel.braun@gmx.de
|
||||
|
||||
- update of README.SUSE
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 31 06:26:10 UTC 2016 - axel.braun@gmx.de
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package GNU Health
|
||||
# spec file for package gnuhealth
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2014-2016 Dr. Axel Braun
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@ -14,6 +14,8 @@
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define majorver 3.0
|
||||
|
||||
@ -23,53 +25,52 @@ Name: gnuhealth
|
||||
BuildRequires: python-setuptools
|
||||
|
||||
Version: %{majorver}.3
|
||||
Release: 1
|
||||
License: GPL-3.0+
|
||||
Release: 0
|
||||
|
||||
Url: http://health.gnu.org
|
||||
Source: http://ftp.gnu.org/gnu/health/%{name}-%{version}.tar.gz
|
||||
Source1: GNUHealth.README.SUSE
|
||||
Source2: gnuhealth_control
|
||||
Url: http://health.gnu.org
|
||||
Source: http://ftp.gnu.org/gnu/health/%{name}-%{version}.tar.gz
|
||||
Source1: GNUHealth.README.SUSE
|
||||
Source2: gnuhealth_control
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
Requires(pre): /usr/sbin/groupadd
|
||||
Requires(pre): /usr/sbin/useradd
|
||||
|
||||
Summary: A Health and Hospital Information System
|
||||
License: GPL-3.0+
|
||||
Group: Productivity/Office/Management
|
||||
|
||||
Summary: A Health and Hospital Information System
|
||||
|
||||
Requires: trytond
|
||||
Requires: python-ldap
|
||||
Requires: python-cracklib
|
||||
Requires: python-vobject
|
||||
Requires: proteus
|
||||
Requires: python-simpleeval
|
||||
Requires: python-hl7apy
|
||||
Requires: python-PyWebDAV
|
||||
Requires: python-qrcode
|
||||
Requires: python-six
|
||||
Requires: python-imaging
|
||||
Requires: python-caldav
|
||||
Requires: python-polib
|
||||
Requires: trytond_account
|
||||
Requires: trytond_account_invoice
|
||||
Requires: trytond_account_invoice_stock
|
||||
Requires: trytond_account_product
|
||||
Requires: trytond_calendar
|
||||
Requires: trytond_company
|
||||
Requires: trytond_country
|
||||
Requires: trytond_currency
|
||||
Requires: trytond_party
|
||||
Requires: trytond_product
|
||||
Requires: trytond_purchase
|
||||
Requires: trytond_stock
|
||||
Requires: trytond_stock_lot
|
||||
Requires: trytond_stock_supply
|
||||
Requires: proteus
|
||||
Requires: python-PyWebDAV
|
||||
Requires: python-caldav
|
||||
Requires: python-cracklib
|
||||
Requires: python-hl7apy
|
||||
Requires: python-imaging
|
||||
Requires: python-ldap
|
||||
Requires: python-polib
|
||||
Requires: python-qrcode
|
||||
Requires: python-simpleeval
|
||||
Requires: python-six
|
||||
Requires: python-vobject
|
||||
Requires: trytond
|
||||
Requires: trytond_account
|
||||
Requires: trytond_account_invoice
|
||||
Requires: trytond_account_invoice_stock
|
||||
Requires: trytond_account_product
|
||||
Requires: trytond_calendar
|
||||
Requires: trytond_company
|
||||
Requires: trytond_country
|
||||
Requires: trytond_currency
|
||||
Requires: trytond_party
|
||||
Requires: trytond_product
|
||||
Requires: trytond_purchase
|
||||
Requires: trytond_stock
|
||||
Requires: trytond_stock_lot
|
||||
Requires: trytond_stock_supply
|
||||
|
||||
# additional suggestion for a useable editor
|
||||
Suggests: nano
|
||||
Suggests: nano
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
@ -96,7 +97,7 @@ done
|
||||
cd pdq
|
||||
python setup.py build
|
||||
cd ..
|
||||
|
||||
|
||||
%install
|
||||
for i in h*; do
|
||||
cd $i
|
||||
@ -107,7 +108,7 @@ done
|
||||
cd pdq
|
||||
python setup.py install --prefix=%_prefix --root=%buildroot
|
||||
cd ..
|
||||
|
||||
|
||||
mkdir -p -m 755 %{buildroot}%{_bindir}
|
||||
install -p -m 755 gnuhealth-control %{buildroot}%{_bindir}/gnuhealth-control
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user