Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package zsh for openSUSE:Factory checked in 
at 2022-10-27 13:53:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/zsh (Old)
 and      /work/SRC/openSUSE:Factory/.zsh.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "zsh"

Thu Oct 27 13:53:55 2022 rev:99 rq:1031136 version:5.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/zsh/zsh.changes  2022-09-14 13:44:37.617840604 
+0200
+++ /work/SRC/openSUSE:Factory/.zsh.new.2275/zsh.changes        2022-10-27 
13:54:27.688655998 +0200
@@ -1,0 +2,12 @@
+Sat Oct 22 05:22:28 UTC 2022 - Luciano Santos <[email protected]>
+
+- Add zsh-sh subpackage to offer Zsh users a "native" way to handle
+  /bin/sh scripts and use an SH shell with the capabilities of Zsh
+  itself to emulate a Bourne shell. An 'sh' symlink pointing to the
+  Zsh binary is all that is needed for it to emulate the Bourne
+  shell, it is similar to the use of `emulate sh` Zsh's built-in
+  command or the `zsh --emulate sh` shell command.
+- Drop deprecated use of install_info(_delete) post(un) macros. RPM
+  file triggers have replaced their functionality since 2019.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ zsh.spec ++++++
--- /var/tmp/diff_new_pack.tu5fBe/_old  2022-10-27 13:54:28.344659344 +0200
+++ /var/tmp/diff_new_pack.tu5fBe/_new  2022-10-27 13:54:28.352659385 +0200
@@ -95,6 +95,17 @@
 
 This package contains the Zsh manual in HTML format.
 
+%package sh
+Summary:        Handle behaviour of /bin/sh
+Group:          System/Shells
+Requires:       zsh = %{version}
+Conflicts:      alternative(sh)
+Provides:       alternative(sh)
+BuildArch:      noarch
+
+%description sh
+Use zsh as /bin/sh implementation.
+
 %prep
 %setup -q
 %if 0%{?suse_version}
@@ -192,6 +203,13 @@
 %fdupes %{buildroot}
 %endif
 
+#
+# Create the symlink required for zsh-sh to handle /bin/sh
+#
+%if 0%{?suse_version}
+  ln -s %{_bindir}/zsh %{buildroot}%{_bindir}/sh
+%endif
+
 %check
 %if ! 0%{?qemu_user_space_build}
 %if 0%{?suse_version}
@@ -211,9 +229,7 @@
 %endif
 
 %preun
-%if 0%{?suse_version}
-  :
-%else
+%if ! 0%{?suse_version}
   if [ "$1" = 0 ] ; then
     /sbin/install-info --delete %{_infodir}/zsh.info.gz %{_infodir}/dir \
       --entry="* zsh: (zsh).                  An enhanced bourne shell."
@@ -221,23 +237,20 @@
 %endif
 
 %post
-%if 0%{?suse_version}
-  %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
-%else
-if [ ! -f %{_sysconfdir}/shells ]; then
+%if ! 0%{?suse_version}
+  if [ ! -f %{_sysconfdir}/shells ]; then
   echo "%{_bindir}/zsh" > %{_sysconfdir}/shells
-else
-  grep -q "^%{_bindir}/zsh$" %{_sysconfdir}/shells || echo "%{_bindir}/zsh" >> 
%{_sysconfdir}/shells
-fi
+  else
+    grep -q "^%{_bindir}/zsh$" %{_sysconfdir}/shells \
+      || echo "%{_bindir}/zsh" >> %{_sysconfdir}/shells
+  fi
 
-/sbin/install-info %{_infodir}/zsh.info.gz %{_infodir}/dir \
+  /sbin/install-info %{_infodir}/zsh.info.gz %{_infodir}/dir \
   --entry="* zsh: (zsh).                  An enhanced bourne shell."
 %endif
 
 %postun
-%if 0%{?suse_version}
-  %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
-%else
+%if ! 0%{?suse_version}
   if [ "$1" = 0 ] ; then
     if [ -f %{_sysconfdir}/shells ] ; then
       TmpFile=`%{_bindir}/mktemp /tmp/.zshrpmXXXXXX`
@@ -279,4 +292,7 @@
 %files htmldoc
 %doc Doc/htmldoc/*
 
+%files sh
+%{_bindir}/sh
+
 %changelog

Reply via email to