Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gnuhealth for openSUSE:Factory 
checked in at 2026-01-12 10:23:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gnuhealth (Old)
 and      /work/SRC/openSUSE:Factory/.gnuhealth.new.1928 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gnuhealth"

Mon Jan 12 10:23:40 2026 rev:70 rq:1326529 version:5.0.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/gnuhealth/gnuhealth.changes      2025-09-15 
19:57:19.154219585 +0200
+++ /work/SRC/openSUSE:Factory/.gnuhealth.new.1928/gnuhealth.changes    
2026-01-12 10:32:12.956403827 +0100
@@ -1,0 +2,8 @@
+Fri Jan  9 14:58:36 UTC 2026 - Axel Braun <[email protected]>
+
+- version 5.0.5
+  * optimizations to language files
+  * various fixes
+  * install_demo_database.sh added
+
+-------------------------------------------------------------------

Old:
----
  gnuhealth-his-server-patchset-5.0.2-bundle.tar.gz

New:
----
  gnuhealth-his-server-patchset-5.0.5-bundle.tar.gz
  install_demo_database.sh

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gnuhealth.spec ++++++
--- /var/tmp/diff_new_pack.Ec16Ae/_old  2026-01-12 10:32:13.848440428 +0100
+++ /var/tmp/diff_new_pack.Ec16Ae/_new  2026-01-12 10:32:13.848440428 +0100
@@ -1,8 +1,8 @@
 #
 # spec file for package gnuhealth
 #
-# Copyright (c) 2025 SUSE LLC and contributors
-# Copyright (c) 2014-2025 Dr. Axel Braun
+# Copyright (c) 2026 SUSE LLC and contributors
+# Copyright (c) 2014-2026 Dr. Axel Braun
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -30,7 +30,7 @@
 
 Name:           gnuhealth
 
-Version:        %{majorver}.2
+Version:        %{majorver}.5
 Release:        0
 URL:            https://health.gnu.org
 Summary:        A Health and Hospital Information System
@@ -38,7 +38,7 @@
 Group:          Productivity/Office/Management
 
 # As directory naming is inconsistent we use a local download
-## Source0:        
https://ftp.gnu.org/gnu/health/%{name}-his-server-patchset-%{version}-bundle.tar.gz
+## %Source0:        
https://ftp.gnu.org/gnu/health/%{name}-his-server-patchset-%{version}-bundle.tar.gz
 Source0:        %{name}-his-server-patchset-%{version}-bundle.tar.gz
 Source1:        GNUHealth.README.openSUSE
 Source2:        gnuhealth-control
@@ -47,6 +47,7 @@
 Source5:        openSUSE-gnuhealth-setup
 Source6:        gnuhealth
 Source7:        gnuhealth-rpmlintrc
+Source8:        install_demo_database.sh
 ## Source8:        
https://ftp.gnu.org/gnu/health/%{name}-his-server-patchset-%{version}-bundle.tar.gz.sig
 ## Source9:        
https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=health&download=1#/%{name}.keyring
 
@@ -167,8 +168,7 @@
 install -p -m 755 %{S:5} %{buildroot}%{_bindir}/openSUSE-gnuhealth-setup
 install -p -m 755 %{S:6} %{buildroot}%{_bindir}/gnuhealth
 install -p -m 755 health_webdav3_server/bin/gnuhealth-webdav-server 
%{buildroot}%{_bindir}/gnuhealth-webdav-server
-#5.0A1 change:
-#%%install -p -m 755 scripts/demodb/install_demo_database.sh 
%{buildroot}%{_bindir}/install_demo_database.sh
+install -p -m 755 %{S:8} %{buildroot}%{_bindir}/install_demo_database.sh
 
 #delete empty demo directory
 rm -rf scripts/demodb
@@ -245,6 +245,7 @@
 %{_bindir}/gnuhealth-control
 %{_bindir}/gnuhealth-webdav-server
 %{_bindir}/openSUSE-gnuhealth-setup
+%{_bindir}/install_demo_database.sh
 #5.0A1 change:
 #%%{_bindir}/install_demo_database.sh
 %{_unitdir}/%{name}.service

++++++ gnuhealth-his-server-patchset-5.0.2-bundle.tar.gz -> 
gnuhealth-his-server-patchset-5.0.5-bundle.tar.gz ++++++
/work/SRC/openSUSE:Factory/gnuhealth/gnuhealth-his-server-patchset-5.0.2-bundle.tar.gz
 
/work/SRC/openSUSE:Factory/.gnuhealth.new.1928/gnuhealth-his-server-patchset-5.0.5-bundle.tar.gz
 differ: char 5, line 1

++++++ install_demo_database.sh ++++++
#!/usr/bin/env bash
# SPDX-FileCopyrightText: 2008-2022 Luis Falcón <[email protected]>
# SPDX-FileCopyrightText: 2011-2022 GNU Solidario <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later

#########################################################################
#   Hospital Management Information System (HMIS) component of the      #
#                       GNU Health project                              #
#                   https://www.gnuhealth.org                           #
#########################################################################
#                      install_demo_database.sh                         #
#        Downloads and installs the GNU Health demo database            #
#########################################################################



URL="https://www.gnuhealth.org/downloads/postgres_dumps/gnuhealth-$1-demo.sql.gz";
DB="ghdemo$1"

help()
{
    cat << EOF

GNU Health HMIS demo database installer

usage: `basename $0` <db_version>

    Example:
    $ bash ./install_demo_dabase.sh 40

    will install the latest demo db for version 4.0.x
EOF
    exit 0
}

bailout () {
    echo "Error"
    echo "Cleaning up..."
    cleanup
    exit 1
    }


if [ $# -eq 0 ]; then
    help
fi

cleanup () {
    rm -f gnuhealth_demo_database-$1.sql.gz
    rm -f gnuhealth_demo_database-$1.sql
    }


if psql -l | grep -wq "$DB"; then
    echo "$DB database already exists"
    echo "    delete it/change target database before proceeding"
    bailout
fi



echo -n "Downloading the demo database..."
wget "$URL" -O gnuhealth_demo_database-$1.sql.gz || bailout
echo 'SUCCESS...'

echo -n "Unpacking the database..."
gunzip -q gnuhealth_demo_database-$1.sql.gz || bailout
echo 'SUCCESS...'

echo -n "Initializing empty database..."
createdb $DB
echo 'SUCCESS...'

echo "Importing demo database..."
psql -q "$DB" < gnuhealth_demo_database-$1.sql > /dev/null 2>&1 || bailout
echo "IMPORT OF DEMO DATABASE $DB COMPLETED SUCCESFULLY !"

echo "Login Info:"
echo "    Database: $DB"
echo "    Username: admin"
echo "    Password: gnusolidario"
echo "**  IMPORTANT: Check that the GNUHealth kernel matches this demo DB"
exit 0

Reply via email to