Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package shunit2 for openSUSE:Factory checked 
in at 2024-08-17 12:40:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/shunit2 (Old)
 and      /work/SRC/openSUSE:Factory/.shunit2.new.2698 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "shunit2"

Sat Aug 17 12:40:52 2024 rev:6 rq:1194288 version:2.1.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/shunit2/shunit2.changes  2024-02-27 
22:44:35.422362372 +0100
+++ /work/SRC/openSUSE:Factory/.shunit2.new.2698/shunit2.changes        
2024-08-17 12:41:14.747515417 +0200
@@ -1,0 +2,19 @@
+Fri Jul 12 13:03:50 UTC 2024 - Manfred Schwarb <manfre...@gmx.ch>
+
+- Update to version 2.1.7:
+  * Colorized output
+  * shUnit2 no longer exits with an 'OK' result if there were syntax errors
+  * changed license to Apache 2.0
+- Update to version 2.1.8:
+  * Users can now define a custom prefix for test function names 
(SHUNIT_TEST_PREFIX)
+  * Syntax errors in functions are now treated as test failures
+  * Test now fail when setup() or tearDown() fail
+  * Add assertContains, assertNotContains, failFound and failNotFound functions
+- delete patches shunit2-examples.diff and shunit2-gen_test_results.sh.diff, 
not needed
+- delete source file lgpl-2.1.txt
+- do not install test scripts
+- enable package testing with script test_runner
+- provide compat symlink from /usr/share/shunit2/shunit2 to 
/usr/share/shunit2/src/shunit2
+- source /usr/bin/shunit2 in examples, so no additional path settings are 
needed to use it
+
+-------------------------------------------------------------------

Old:
----
  lgpl-2.1.txt
  shunit2-2.1.6.tgz
  shunit2-examples.diff
  shunit2-gen_test_results.sh.diff

New:
----
  shunit2-2.1.8.tar.gz

BETA DEBUG BEGIN:
  Old:  * Add assertContains, assertNotContains, failFound and failNotFound 
functions
- delete patches shunit2-examples.diff and shunit2-gen_test_results.sh.diff, 
not needed
- delete source file lgpl-2.1.txt
  Old:  * Add assertContains, assertNotContains, failFound and failNotFound 
functions
- delete patches shunit2-examples.diff and shunit2-gen_test_results.sh.diff, 
not needed
- delete source file lgpl-2.1.txt
BETA DEBUG END:

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

Other differences:
------------------
++++++ shunit2.spec ++++++
--- /var/tmp/diff_new_pack.B4Hrz0/_old  2024-08-17 12:41:15.451544680 +0200
+++ /var/tmp/diff_new_pack.B4Hrz0/_new  2024-08-17 12:41:15.451544680 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package shunit2
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,24 +12,22 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %define SHUNIT_HOME  %{_datadir}/shunit2
 Name:           shunit2
-Version:        2.1.6
+Version:        2.1.8
 Release:        0
 Summary:        Test Framework for Bourne Based Shell Scripts
-License:        LGPL-2.1
+License:        Apache-2.0
 Group:          Development/Languages/Other
-Url:            https://github.com/kward/shunit2 
-Source0:        %{name}-%{version}.tgz
-Source1:        lgpl-2.1.txt
-Patch0:         %{name}-gen_test_results.sh.diff
-Patch1:         %{name}-examples.diff
+URL:            https://github.com/kward/shunit2
+Source:         
https://github.com/kward/shunit2/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 BuildRequires:  bash
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  ksh
+BuildRequires:  zsh
 BuildArch:      noarch
 
 %description
@@ -39,31 +37,33 @@
 script, shUnit2 can do the job.
 
 %prep
-%autosetup -p0
-
-# Use the correct version and overwrite it:
-cp %{SOURCE1} doc/LGPL-2.1
+%autosetup
 
 %build
-# Add the correct basedir in our script:
-sed -i 's#@SHUNIT_HOME@#%{SHUNIT_HOME}#g' bin/gen_test_results.sh
+#---source /usr/bin/shunit2 in examples, so no additional path settings are 
needed to use it:
 for i in examples/*.sh; do
-  sed -i 's#@SHUNIT_HOME@#%{SHUNIT_HOME}#g' $i
+  sed -i 's|^. ../shunit2|. shunit2|g' "$i"
 done
 
 %install
-mkdir -p %{buildroot}%{_bindir} %{buildroot}%{SHUNIT_HOME}
+mkdir -p -m 755 %{buildroot}%{_bindir} %{buildroot}%{SHUNIT_HOME} 
%{buildroot}%{SHUNIT_HOME}/src
+install -m 755 shunit2 %{buildroot}%{_bindir}/%{name}
+ln -sr %{buildroot}%{_bindir}/%{name} %{buildroot}%{SHUNIT_HOME}/%{name}
+cp -a lib %{buildroot}%{SHUNIT_HOME}/
+#---compat symlink, older versions resided in src/:
+ln -sr %{buildroot}%{SHUNIT_HOME}/%{name} 
%{buildroot}%{SHUNIT_HOME}/src/%{name}
 
-install -m 755 src/shunit2 %{buildroot}%{_bindir}
-cp -a lib src  %{buildroot}%{SHUNIT_HOME}
+%check
+env SHUNIT_COLOR='none' ./test_runner
 
 %files
-%defattr(-,root,root)
-%doc doc/* examples
-%{_bindir}/*
+%license LICENSE
+%doc README.md doc/* examples
+%{_bindir}/%{name}
 %dir %{SHUNIT_HOME}
-%dir %{SHUNIT_HOME}/src
 %dir %{SHUNIT_HOME}/lib
-%{SHUNIT_HOME}/src/*
+%dir %{SHUNIT_HOME}/src
+%{SHUNIT_HOME}/%{name}
+%{SHUNIT_HOME}/src/%{name}
 %{SHUNIT_HOME}/lib/*
 

Reply via email to