2018-12-28 15:13:42 +01:00
|
|
|
#
|
|
|
|
# spec file for package gnuhealth-thalamus
|
|
|
|
#
|
2019-03-08 21:58:29 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
# Copyright (c) 2017-2019 Dr. Axel Braun
|
2018-12-28 15:13:42 +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.
|
|
|
|
|
2019-03-08 21:58:29 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2018-12-28 15:13:42 +01:00
|
|
|
|
|
|
|
%bcond_without test
|
|
|
|
|
|
|
|
%define modname thalamus
|
|
|
|
Name: gnuhealth-%{modname}
|
2019-07-11 20:51:07 +02:00
|
|
|
Version: 0.9.9
|
2018-12-28 15:13:42 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: The GNU Health Federation Message and Authentication Server
|
2019-03-08 21:58:29 +01:00
|
|
|
License: GPL-3.0-or-later
|
2018-12-28 15:13:42 +01:00
|
|
|
Group: Development/Languages/Python
|
2019-03-08 21:58:29 +01:00
|
|
|
Url: http://health.gnu.org
|
2018-12-28 15:13:42 +01:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/t/%{modname}/%{modname}-%{version}.tar.gz
|
2019-03-08 21:58:29 +01:00
|
|
|
BuildRequires: postgresql-server
|
2018-12-28 15:13:42 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: python3-Flask
|
|
|
|
BuildRequires: python3-Flask-HTTPAuth
|
|
|
|
BuildRequires: python3-Flask-RESTful
|
2019-03-08 22:17:54 +01:00
|
|
|
BuildRequires: python3-Flask-WTF
|
|
|
|
BuildRequires: python3-bcrypt
|
|
|
|
BuildRequires: python3-psycopg2
|
2018-12-28 15:13:42 +01:00
|
|
|
%endif
|
|
|
|
BuildRequires: fdupes
|
2019-03-08 21:58:29 +01:00
|
|
|
Requires: postgresql-server
|
2018-12-28 15:13:42 +01:00
|
|
|
Requires: python3-Flask
|
|
|
|
Requires: python3-Flask-HTTPAuth
|
2019-03-08 21:58:29 +01:00
|
|
|
Requires: python3-Flask-RESTful
|
2019-03-08 22:17:54 +01:00
|
|
|
Requires: python3-Flask-WTF
|
2019-03-08 21:58:29 +01:00
|
|
|
Requires: python3-bcrypt
|
2019-03-08 22:17:54 +01:00
|
|
|
Requires: python3-psycopg2
|
2018-12-28 15:13:42 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Thalamus: The GNU Health Federation Message and Authentication Server
|
|
|
|
=====================================================================
|
|
|
|
|
|
|
|
The Thalamus project provides a RESTful API hub to all the GNU Health
|
|
|
|
Federation nodes. The main functions are:
|
|
|
|
|
|
|
|
#. **Message server**: A concentrator and message relay from and to
|
|
|
|
the participating nodes in the GNU Health Federation and the GNU Health
|
|
|
|
Information System (MongoDB). Some of the participating nodes include
|
|
|
|
the GNU Health HMIS, MyGNUHealth mobile PHR application,
|
|
|
|
laboratories, research institutions and civil offices.
|
|
|
|
|
|
|
|
#. **Authentication Server**: Thalamus also serves as an authentication and
|
|
|
|
authorization server to interact with the GNUHealth Information System
|
|
|
|
|
|
|
|
|
|
|
|
Thalamus is part of the GNU Health project, but it is a self contained,
|
|
|
|
independent server that can be used in different health related scenarios.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
python3 setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
python3 setup.py install --prefix="%{_prefix}" --root=%{buildroot}
|
|
|
|
%fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2018-12-29 17:48:29 +01:00
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
2018-12-28 15:13:42 +01:00
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|