Hello community,

here is the log from the commit of package zsh for openSUSE:Factory checked in 
at 2016-06-05 14:19:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/zsh (Old)
 and      /work/SRC/openSUSE:Factory/.zsh.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "zsh"

Changes:
--------
--- /work/SRC/openSUSE:Factory/zsh/zsh.changes  2015-12-17 15:53:52.000000000 
+0100
+++ /work/SRC/openSUSE:Factory/.zsh.new/zsh.changes     2016-06-05 
14:20:00.000000000 +0200
@@ -1,0 +2,5 @@
+Wed May 25 12:30:17 UTC 2016 - [email protected]
+
+- Add CentOS [67] support
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ zsh.spec ++++++
--- /var/tmp/diff_new_pack.P5dyk9/_old  2016-06-05 14:20:01.000000000 +0200
+++ /var/tmp/diff_new_pack.P5dyk9/_new  2016-06-05 14:20:01.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package zsh
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 Name:           zsh
 Version:        5.2
-Release:        0
+Release:        0%{?dist}
 Summary:        Shell with comprehensive completion
 License:        MIT
 Group:          System/Shells
@@ -42,6 +42,7 @@
 # PATCH-FIX-OPENSUSE zsh-osc-completion.patch -- Fix openSUSE versions in osc 
completion
 Patch2:         zsh-osc-completion.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  groff
 %if 0%{?suse_version}
 Requires(pre):  %{install_info_prereq}
 %if 0%{?suse_version} >= 1110
@@ -49,7 +50,6 @@
 BuildRequires:  yodl
 %endif
 %if 0%{?suse_version} >= 1210
-BuildRequires:  groff
 BuildRequires:  makeinfo
 BuildRequires:  texi2html
 %endif
@@ -63,8 +63,10 @@
 BuildRequires:  ncurses-devel
 BuildRequires:  pcre-devel
 %if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version}
+%if 0%{?rhel_version} >= 700 || 0%{?centos_version} >= 700
+%global __requires_exclude ^/bin/zsh$
+%endif
 BuildRequires:  libtermcap-devel
-BuildRequires:  tetex
 BuildRequires:  texi2html
 BuildRequires:  texinfo
 %endif
@@ -117,6 +119,11 @@
 %build
 
 %configure \
+%if 0%{?suse_version}
+    --with-term-lib="ncursesw" \
+    --enable-cflags="%{optflags} -fPIE -fstack-protector %(ncursesw6-config 
--cflags)" \
+    --enable-ldflags="%(ncursesw6-config --libs) -pie -Wl,-z,relro" \
+%endif
     --enable-fndir=%{_datadir}/%{name}/${version}/functions \
     --enable-site-fndir=%{_datadir}/%{name}/site-functions \
     --enable-function-subdirs \
@@ -124,13 +131,12 @@
     --with-tcsetpgrp \
     --enable-cap \
     --enable-multibyte \
-    --enable-pcre \
-    --with-term-lib="ncursesw" \
-    --enable-cflags="%{optflags} -fPIE -fstack-protector %(ncursesw6-config 
--cflags)" \
-    --enable-ldflags="%(ncursesw6-config --libs) -pie -Wl,-z,relro"
+    --enable-pcre
 
 # Copy _rpm completion from Redhat (bnc#900424)
+%if 0%{?suse_version}
 cp Completion/Redhat/Command/_rpm Completion/openSUSE/Command/_rpm
+%endif
 
 make all info html
 
@@ -178,10 +184,15 @@
 install -m 0644 Doc/help/* %{buildroot}%{_datadir}/%{name}/%{version}/help/
 
 # link zsh binary
+%if 0%{?suse_version} || 0%{?rhel} <= 6
 ln -sf %{_bindir}/zsh %{buildroot}/bin/zsh
+%endif
 
 # Remove versioned zsh binary
 rm -f %{buildroot}%{_bindir}/zsh-*
+%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version}
+rm -f %{buildroot}/%{_datadir}/info/dir
+%endif
 
 %if 0%{?suse_version} >= 1110
 %fdupes %{buildroot}
@@ -262,7 +273,9 @@
 %endif
 
 %{_bindir}/zsh
+%if 0%{?suse_version} || 0%{?rhel} <= 6
 /bin/zsh
+%endif
 %{_libdir}/zsh/
 %{_datadir}/zsh/
 %{_infodir}/zsh.info*.gz

++++++ zprofile.rhs ++++++
--- /var/tmp/diff_new_pack.P5dyk9/_old  2016-06-05 14:20:01.000000000 +0200
+++ /var/tmp/diff_new_pack.P5dyk9/_new  2016-06-05 14:20:01.000000000 +0200
@@ -5,7 +5,18 @@
 PATH="$PATH:$HOME/bin"
 export PATH
 
-# source profile
-if [ -f /etc/profile ]; then
-       source /etc/profile
-fi
+_src_etc_profile()
+{
+    #  Make /etc/profile happier, and have possible ~/.zshenv options like
+    # NOMATCH ignored.
+    #
+    emulate -L ksh
+
+    # source profile
+    if [ -f /etc/profile ]; then
+           source /etc/profile
+    fi
+}
+_src_etc_profile
+
+unset -f _src_etc_profile



++++++ zshrc.rhs ++++++
--- /var/tmp/diff_new_pack.P5dyk9/_old  2016-06-05 14:20:01.000000000 +0200
+++ /var/tmp/diff_new_pack.P5dyk9/_new  2016-06-05 14:20:01.000000000 +0200
@@ -15,12 +15,36 @@
 # bindkey -e             # emacs key bindings
 bindkey ' ' magic-space  # also do history expansion on space
 
-# from bashrc
-if [ "x$SHLVL" != "x1" ]; then # We're not a login shell
-    for i in /etc/profile.d/*.sh; do
-       if [ -r "$i" ]; then
-           . $i
-       fi
-    done
-    unset i
-fi
+# Provide pathmunge for /etc/profile.d scripts
+pathmunge()
+{
+    if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)" ; then
+        if [ "$2" = "after" ] ; then
+            PATH=$PATH:$1
+        else
+            PATH=$1:$PATH
+        fi
+    fi
+}
+
+_src_etc_profile_d()
+{
+    #  Make the *.sh things happier, and have possible ~/.zshenv options like
+    # NOMATCH ignored.
+    emulate -L ksh
+
+
+    # from bashrc, with zsh fixes
+    if [[ ! -o login ]]; then # We're not a login shell
+        for i in /etc/profile.d/*.sh; do
+           if [ -r "$i" ]; then
+               . $i
+           fi
+        done
+        unset i
+    fi
+}
+_src_etc_profile_d
+
+unset -f pathmunge _src_etc_profile_d
+


Reply via email to