2018-12-28 15:13:42 +01:00
|
|
|
#
|
2024-03-01 17:28:49 +01:00
|
|
|
# spec file for package gnuhealth-thalamus
|
2018-12-28 15:13:42 +01:00
|
|
|
#
|
2024-03-01 17:28:49 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
|
|
|
# Copyright (c) 2017-2024 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
|
|
|
|
2024-03-02 10:51:08 +01:00
|
|
|
%bcond_without test 1
|
|
|
|
|
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
%define pythons python3
|
|
|
|
%define mypython python3
|
|
|
|
%define mysitelib %python3_sitelib
|
|
|
|
%else
|
2024-03-01 17:28:49 +01:00
|
|
|
%{?sle15_python_module_pythons}
|
2024-03-02 10:51:08 +01:00
|
|
|
%define mypython %pythons
|
|
|
|
%define mysitelib %{expand:%%%{mypython}_sitelib}
|
|
|
|
%endif
|
2018-12-28 15:13:42 +01:00
|
|
|
|
|
|
|
%define modname thalamus
|
|
|
|
Name: gnuhealth-%{modname}
|
2021-04-08 14:35:11 +02:00
|
|
|
Version: 0.9.14
|
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-11-17 22:00:59 +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
|
2024-03-01 17:28:49 +01:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: fdupes
|
2019-03-08 21:58:29 +01:00
|
|
|
BuildRequires: postgresql-server
|
2018-12-28 15:13:42 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2024-03-01 17:28:49 +01:00
|
|
|
|
2018-12-28 15:13:42 +01:00
|
|
|
%if %{with test}
|
2024-03-01 17:28:49 +01:00
|
|
|
BuildRequires: %{python_module Flask-Cors}
|
|
|
|
BuildRequires: %{python_module Flask-HTTPAuth}
|
|
|
|
BuildRequires: %{python_module Flask-RESTful}
|
|
|
|
BuildRequires: %{python_module Flask-WTF}
|
|
|
|
BuildRequires: %{python_module Flask}
|
|
|
|
BuildRequires: %{python_module bcrypt}
|
|
|
|
BuildRequires: %{python_module psycopg2}
|
2018-12-28 15:13:42 +01:00
|
|
|
%endif
|
2024-03-01 17:28:49 +01:00
|
|
|
|
|
|
|
Requires: %{python_module Flask-HTTPAuth}
|
|
|
|
Requires: %{python_module Flask-RESTful}
|
|
|
|
Requires: %{python_module Flask-WTF}
|
|
|
|
Requires: %{python_module Flask}
|
|
|
|
Requires: %{python_module bcrypt}
|
|
|
|
Requires: %{python_module psycopg2}
|
|
|
|
# postgres may run on own cluster
|
|
|
|
Suggests: postgresql-server
|
2018-12-28 15:13:42 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2024-03-01 17:28:49 +01:00
|
|
|
%python_subpackages
|
|
|
|
|
2018-12-28 15:13:42 +01:00
|
|
|
%description
|
|
|
|
Thalamus: The GNU Health Federation Message and Authentication Server
|
|
|
|
=====================================================================
|
|
|
|
|
2021-04-08 14:35:11 +02:00
|
|
|
The Thalamus project provides a RESTful API hub to all the GNU Health
|
2018-12-28 15:13:42 +01:00
|
|
|
Federation nodes. The main functions are:
|
|
|
|
|
2021-04-08 14:35:11 +02:00
|
|
|
#. **Message server**: A concentrator and message relay from and to
|
2018-12-28 15:13:42 +01:00
|
|
|
the participating nodes in the GNU Health Federation and the GNU Health
|
2021-04-08 14:35:11 +02:00
|
|
|
Information System (MongoDB). Some of the participating nodes include
|
2018-12-28 15:13:42 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2021-04-08 14:35:11 +02:00
|
|
|
Thalamus is part of the GNU Health project, but it is a self contained,
|
2018-12-28 15:13:42 +01:00
|
|
|
independent server that can be used in different health related scenarios.
|
|
|
|
|
|
|
|
%prep
|
2024-03-01 17:28:49 +01:00
|
|
|
%autosetup -n %{modname}-%{version}
|
2018-12-28 15:13:42 +01:00
|
|
|
|
|
|
|
%build
|
2024-03-01 17:28:49 +01:00
|
|
|
%pyproject_wheel
|
2018-12-28 15:13:42 +01:00
|
|
|
|
|
|
|
%install
|
2024-03-01 17:28:49 +01:00
|
|
|
%pyproject_install
|
2024-03-02 10:51:08 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{mysitelib}
|
2018-12-28 15:13:42 +01:00
|
|
|
|
2024-03-02 10:51:08 +01:00
|
|
|
%files
|
2018-12-28 15:13:42 +01:00
|
|
|
%defattr(-,root,root)
|
2018-12-29 17:48:29 +01:00
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
2024-03-02 10:51:08 +01:00
|
|
|
%{mysitelib}/thalamus*
|
2018-12-28 15:13:42 +01:00
|
|
|
|
|
|
|
%changelog
|