From 6e5c294649e3930cc2a1a74a58a1c8dcd38325a0 Mon Sep 17 00:00:00 2001 From: Sven Lankes Date: Oct 28 2016 11:30:29 +0000 Subject: - New upstream release - fixes rhbz #1380562 - Adapt shells handling to be atomic and support rpm-ostree - fixes rhbz #1367587 --- diff --git a/.gitignore b/.gitignore index 71825fb..48d1efc 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ tmux-1.3.tar.gz /tmux-2.0.tar.gz /tmux-2.1.tar.gz /tmux-2.2.tar.gz +/tmux-2.3.tar.gz diff --git a/sources b/sources index 1d5fbe2..dfe4c72 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -bd95ee7205e489c62c616bb7af040099 tmux-2.2.tar.gz +fcfd1611d705d8b31df3c26ebc93bd3e tmux-2.3.tar.gz diff --git a/tmux.spec b/tmux.spec index 449bd64..8c04143 100644 --- a/tmux.spec +++ b/tmux.spec @@ -1,6 +1,6 @@ Name: tmux -Version: 2.2 -Release: 3%{?dist} +Version: 2.3 +Release: 1%{?dist} Summary: A terminal multiplexer Group: Applications/System @@ -38,18 +38,20 @@ install -Dpm 644 %{SOURCE1} %{buildroot}%{_datadir}/bash-completion/completions/ %post if [ "$1" = 1 ]; then if [ ! -f %{_sysconfdir}/shells ] ; then - echo "%{_bindir}/tmux" > %{_sysconfdir}/shells - echo "/bin/tmux" >> %{_sysconfdir}/shells - else - grep -q "^%{_bindir}/tmux$" %{_sysconfdir}/shells || echo "%{_bindir}/tmux" >> %{_sysconfdir}/shells - grep -q "^/bin/tmux$" %{_sysconfdir}/shells || echo "/bin/tmux" >> %{_sysconfdir}/shells + touch %{_sysconfdir}/shells fi + for binpath in %{_bindir} /bin; do + if ! grep -q "^${binpath}/tmux$" %{_sysconfdir}/shells; then + (cat %{_sysconfdir}/shells; echo "$binpath/tmux") > %{_sysconfdir}/shells.new + mv %{_sysconfdir}/shells{.new,} + fi + done fi %postun if [ "$1" = 0 ] && [ -f %{_sysconfdir}/shells ] ; then - sed -i '\!^%{_bindir}/tmux$!d' %{_sysconfdir}/shells - sed -i '\!^/bin/tmux$!d' %{_sysconfdir}/shells + sed -e '\!^%{_bindir}/tmux$!d' -e '\!^/bin/tmux$!d' < %{_sysconfdir}/shells > %{_sysconfdir}/shells.new + mv %{_sysconfdir}/shells{.new,} fi %files @@ -59,6 +61,10 @@ fi %{_datadir}/bash-completion/completions/tmux %changelog +* Fri Oct 28 2016 Sven Lankes - 2.3-1 +- New upstream release - fixes rhbz #1380562 +- Adapt shells handling to be atomic and support rpm-ostree - fixes rhbz #1367587 + * Tue May 24 2016 Sven Lankes - 2.2-3 - add libutempter-devel as buildrequires to allow writing to utmp - fixes rhbz #1338936