Hello community,
here is the log from the commit of package python-sortinghat for
openSUSE:Factory checked in at 2020-06-10 00:46:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sortinghat (Old)
and /work/SRC/openSUSE:Factory/.python-sortinghat.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-sortinghat"
Wed Jun 10 00:46:51 2020 rev:7 rq:811741 version:0.7.7
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-sortinghat/python-sortinghat.changes
2020-05-19 14:59:11.125493978 +0200
+++
/work/SRC/openSUSE:Factory/.python-sortinghat.new.3606/python-sortinghat.changes
2020-06-10 00:46:52.954704101 +0200
@@ -1,0 +2,6 @@
+Thu Jun 4 07:19:33 UTC 2020 - [email protected]
+
+- specify database name trough %mysql_testserver_start parameter
+- alternatives in loop
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-sortinghat.spec ++++++
--- /var/tmp/diff_new_pack.fy1Etq/_old 2020-06-10 00:46:53.610705739 +0200
+++ /var/tmp/diff_new_pack.fy1Etq/_new 2020-06-10 00:46:53.614705749 +0200
@@ -16,6 +16,8 @@
#
+%define binaries stackalytics2sh mozilla2sh mailmap2sh grimoirelab2sh gitdm2sh
eclipse2sh sortinghat sh2mg mg2sh
+
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-sortinghat
@@ -95,15 +97,9 @@
%install
%python_install
-%python_clone -a %{buildroot}%{_bindir}/stackalytics2sh
-%python_clone -a %{buildroot}%{_bindir}/mozilla2sh
-%python_clone -a %{buildroot}%{_bindir}/mailmap2sh
-%python_clone -a %{buildroot}%{_bindir}/grimoirelab2sh
-%python_clone -a %{buildroot}%{_bindir}/gitdm2sh
-%python_clone -a %{buildroot}%{_bindir}/eclipse2sh
-%python_clone -a %{buildroot}%{_bindir}/sortinghat
-%python_clone -a %{buildroot}%{_bindir}/sh2mg
-%python_clone -a %{buildroot}%{_bindir}/mg2sh
+for b in %{binaries}; do
+ %python_clone -a %{buildroot}%{_bindir}/$b
+done
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -111,17 +107,19 @@
user=auth_db_user
pass=auth_db_pass
port=63306
+dbname=testhat
run_dir=/tmp/mysql
#
# start the mariadb server
#
-%mysql_testserver_start -u $user -p $pass -t $port
+%mysql_testserver_start -u $user -p $pass -t $port -d $dbname
#
# running the test
#
+# this is read by TestDatabaseCaseBase.setUpClass
cat << EOF > tests/tests.conf
[Database]
-name=testhat
+name=$dbname
host=127.0.0.1
port=$port
user=$user
@@ -137,26 +135,14 @@
exit $exit_code
%post
-%python_install_alternative stackalytics2sh
-%python_install_alternative mozilla2sh
-%python_install_alternative mailmap2sh
-%python_install_alternative grimoirelab2sh
-%python_install_alternative gitdm2sh
-%python_install_alternative eclipse2sh
-%python_install_alternative sortinghat
-%python_install_alternative sh2mg
-%python_install_alternative mg2sh
+for b in %{binaries}; do
+ %python_install_alternative $b
+done
%postun
-%python_uninstall_alternative stackalytics2sh
-%python_uninstall_alternative mozilla2sh
-%python_uninstall_alternative mailmap2sh
-%python_uninstall_alternative grimoirelab2sh
-%python_uninstall_alternative gitdm2sh
-%python_uninstall_alternative eclipse2sh
-%python_uninstall_alternative sortinghat
-%python_uninstall_alternative sh2mg
-%python_uninstall_alternative mg2sh
+for b in %{binaries}; do
+ %python_uninstall_alternative stackalytics2sh
+done
%files %{python_files}
%doc NEWS README.md