New upstream release 1.9

- Fix rhbz #1067860
This commit is contained in:
Filipe Rosset 2014-02-22 15:26:16 -03:00
parent f6e54d69a4
commit 6e25a482af
3 changed files with 17 additions and 7 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ tmux-1.3.tar.gz
/tmux-1.6.tar.gz
/tmux-1.7.tar.gz
/tmux-1.8.tar.gz
/tmux-1.9.tar.gz

View File

@ -1 +1 @@
b9477de2fe660244cbc6e6d7e668ea0e tmux-1.8.tar.gz
5f5ed0f03a666279264da45b60075600 tmux-1.9.tar.gz

View File

@ -1,6 +1,6 @@
Name: tmux
Version: 1.8
Release: 3%{?dist}
Version: 1.9
Release: 1%{?dist}
Summary: A terminal multiplexer
Group: Applications/System
@ -31,15 +31,20 @@ rm -rf %{buildroot}
make install DESTDIR=%{buildroot} INSTALLBIN="install -p -m 755" INSTALLMAN="install -p -m 644"
%post
if [ ! -f %{_sysconfdir}/shells ] ; then
if [ "$1" = 1 ]; then
if [ ! -f %{_sysconfdir}/shells ] ; then
echo "%{_bindir}/tmux" > %{_sysconfdir}/shells
else
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
fi
fi
%postun
if [ $1 -eq 0 ] && [ -f %{_sysconfdir}/shells ]; then
sed -i '\!^%{_bindir}/tmux$!d' %{_sysconfdir}/shells
if [ "$1" = 0 ] && [ -f %{_sysconfdir}/shells ] ; then
sed -i '\!^%{_bindir}/tmux$!d' %{_sysconfdir}/shells
sed -i '\!^/bin/tmux$!d' %{_sysconfdir}/shells
fi
%files
@ -49,6 +54,10 @@ fi
%{_mandir}/man1/tmux.1.*
%changelog
* Sat Feb 22 2014 Filipe Rosset <rosset.filipe@gmail.com> 1.9-1
- New upstream release 1.9
- Fix rhbz #1067860
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild