9081bc
Name:           tmux
9081bc
Version:        1.8
9081bc
Release:        4%{?dist}
9081bc
Summary:        A terminal multiplexer
9081bc
9081bc
Group:          Applications/System
9081bc
# Most of the source is ISC licensed; some of the files in compat/ are 2 and
9081bc
# 3 clause BSD licensed.
9081bc
License:        ISC and BSD
9081bc
URL:            http://sourceforge.net/projects/tmux
9081bc
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
9081bc
9081bc
BuildRequires:  ncurses-devel
9081bc
BuildRequires:  libevent-devel
9081bc
9081bc
%description
9081bc
tmux is a "terminal multiplexer."  It enables a number of terminals (or
9081bc
windows) to be accessed and controlled from a single terminal.  tmux is
9081bc
intended to be a simple, modern, BSD-licensed alternative to programs such
9081bc
as GNU Screen.
9081bc
9081bc
%prep
9081bc
%setup -q
9081bc
9081bc
%build
9081bc
%configure
9081bc
make %{?_smp_mflags} LDFLAGS="%{optflags}"
9081bc
9081bc
%install
9081bc
rm -rf %{buildroot}
9081bc
make install DESTDIR=%{buildroot} INSTALLBIN="install -p -m 755" INSTALLMAN="install -p -m 644"
9081bc
9081bc
%post
9081bc
if [ ! -f %{_sysconfdir}/shells ] ; then
9081bc
    echo "%{_bindir}/tmux" > %{_sysconfdir}/shells
9081bc
else
9081bc
    grep -q "^%{_bindir}/tmux$" %{_sysconfdir}/shells || echo "%{_bindir}/tmux" >> %{_sysconfdir}/shells
9081bc
fi
9081bc
9081bc
%postun
9081bc
if [ $1 -eq 0 ] && [ -f %{_sysconfdir}/shells ]; then
9081bc
    sed -i '\!^%{_bindir}/tmux$!d' %{_sysconfdir}/shells
9081bc
fi
9081bc
9081bc
%files
9081bc
%defattr(-,root,root,-)
9081bc
%doc CHANGES FAQ TODO examples/
9081bc
%{_bindir}/tmux
9081bc
%{_mandir}/man1/tmux.1.*
9081bc
9081bc
%changelog
9081bc
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.8-4
9081bc
- Mass rebuild 2014-01-24
9081bc
9081bc
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.8-3
9081bc
- Mass rebuild 2013-12-27
9081bc
9081bc
* Mon Jun 10 2013 Petr Ĺ abata <contyk@redhat.com> - 1.8-2
9081bc
- Remove tmux from the shells file upon package removal (#972633)
9081bc
9081bc
* Sat Apr 13 2013 Sven Lankes <sven@lank.es> 1.8-1
9081bc
- New upstream release
9081bc
9081bc
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-2
9081bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9081bc
9081bc
* Sat Oct 13 2012 Sven Lankes <sven@lank.es> 1.7-1
9081bc
- New upstream release
9081bc
9081bc
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-2
9081bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9081bc
9081bc
* Tue Jan 31 2012 Sven Lankes <sven@lank.es> 1.6-1
9081bc
- New upstream release
9081bc
9081bc
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-2
9081bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9081bc
9081bc
* Tue Nov 01 2011 Sven Lankes <sven@lank.es> 1.5-1
9081bc
- New upstream release
9081bc
- Do the right thing (tm) and revert to $upstream-behaviour: 
9081bc
   No longer install tmux setgid and no longer use /var/run/tmux 
9081bc
   for sockets. Use "tmux -S /var/run/tmux/tmux-`id -u`/default attach"
9081bc
   if you need to access an "old" tmux session
9081bc
- tmux can be used as a login shell so add it to /etc/shells
9081bc
9081bc
* Sat Apr 16 2011 Sven Lankes <sven@lank.es> 1.4-4
9081bc
- Add /var/run/tmp to tmpdir.d - fixes rhbz 656704 and 697134
9081bc
9081bc
* Sun Apr 10 2011 Sven Lankes <sven@lank.es> 1.4-3
9081bc
- Fix CVE-2011-1496
9081bc
- Fixes rhbz #693824
9081bc
9081bc
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-2
9081bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9081bc
9081bc
* Tue Dec 28 2010 Filipe Rosset <rosset.filipe@gmail.com> 1.4-1
9081bc
- New upstream release
9081bc
9081bc
* Fri Aug 06 2010 Filipe Rosset <filiperosset@fedoraproject.org> 1.3-2
9081bc
- Rebuild for F-13
9081bc
9081bc
* Mon Jul 19 2010 Sven Lankes <sven@lank.es> 1.3-1
9081bc
- New upstream release
9081bc
9081bc
* Sun Mar 28 2010 Sven Lankes <sven@lank.es> 1.2-1
9081bc
- New upstream release
9081bc
- rediff writehard patch
9081bc
9081bc
* Mon Nov 09 2009 Sven Lankes <sven@lank.es> 1.1-1
9081bc
- New upstream release
9081bc
9081bc
* Sun Nov 01 2009 Sven Lankes <sven@lank.es> 1.0-2
9081bc
- Add debian patches
9081bc
- Add tmux group for improved socket handling
9081bc
9081bc
* Sat Oct 24 2009 Sven Lankes <sven@lank.es> 1.0-1
9081bc
- New upstream release
9081bc
9081bc
* Mon Jul 13 2009 Chess Griffin <chess@chessgriffin.com> 0.9-1
9081bc
- Update to version 0.9.
9081bc
- Remove sed invocation as this was adopted upstream.
9081bc
- Remove optflags patch since upstream source now uses ./configure and
9081bc
  detects the flags when passed to make.
9081bc
9081bc
* Tue Jun 23 2009 Chess Griffin <chess@chessgriffin.com> 0.8-5
9081bc
- Note that souce is mostly ISC licensed with some 2 and 3 clause BSD in
9081bc
  compat/.
9081bc
- Remove fixiquote.patch and instead use a sed invocation in setup.
9081bc
9081bc
* Mon Jun 22 2009 Chess Griffin <chess@chessgriffin.com> 0.8-4
9081bc
- Add optimization flags by patching GNUmakefile and passing LDFLAGS
9081bc
  to make command.
9081bc
- Use consistent macro format.
9081bc
- Change examples/* to examples/ and add TODO to docs.
9081bc
9081bc
* Sun Jun 21 2009 Chess Griffin <chess@chessgriffin.com> 0.8-3
9081bc
- Remove fixperms.patch and instead pass them at make install stage.
9081bc
9081bc
* Sat Jun 20 2009 Chess Griffin <chess@chessgriffin.com> 0.8-2
9081bc
- Fix Source0 URL to point to correct upstream source.
9081bc
- Modify fixperms.patch to set 644 permissions on the tmux.1.gz man page.
9081bc
- Remove wildcards from 'files' section and replace with specific paths and
9081bc
  filenames.
9081bc
9081bc
* Mon Jun 15 2009 Chess Griffin <chess@chessgriffin.com> 0.8-1
9081bc
- Initial RPM release.