From 6ba02f4222a8b70e006fa93345442e4c3541a512 Mon Sep 17 00:00:00 2001 From: Steven Roberts Date: Aug 10 2013 04:42:01 +0000 Subject: Added in fix for #972633 in el6 --- diff --git a/tmux.spec b/tmux.spec index 477bccc..0bd00a0 100644 --- a/tmux.spec +++ b/tmux.spec @@ -41,6 +41,11 @@ else grep -q "^%{_bindir}/tmux$" %{_sysconfdir}/shells || echo "%{_bindir}/tmux" >> %{_sysconfdir}/shells fi +%postun +if [ $1 -eq 0 ] && [ -f %{_sysconfdir}/shells ]; then + sed -i '\!^%{_bindir}/tmux$!d' %{_sysconfdir}/shells +fi + %files %defattr(-,root,root,-) %doc CHANGES FAQ NOTES TODO examples/ @@ -50,6 +55,7 @@ fi %changelog * Fri Aug 09 2013 Steven Roberts - 1.6-3 - Building for el6 +- Remove tmux from the shells file upon package removal (RH bug #972633) * Sat Jul 21 2012 Fedora Release Engineering - 1.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild