90415dd
Name:           tmux
Sven Lankes 5da4971
Version:        2.1
Sven Lankes bd67c44
Release:        3%{?dist}
90415dd
Summary:        A terminal multiplexer
90415dd
90415dd
Group:          Applications/System
90415dd
# Most of the source is ISC licensed; some of the files in compat/ are 2 and
90415dd
# 3 clause BSD licensed.
90415dd
License:        ISC and BSD
90415dd
URL:            http://sourceforge.net/projects/tmux
90415dd
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
90415dd
90415dd
BuildRequires:  ncurses-devel
d3d3920
BuildRequires:  libevent-devel
90415dd
90415dd
%description
90415dd
tmux is a "terminal multiplexer."  It enables a number of terminals (or
90415dd
windows) to be accessed and controlled from a single terminal.  tmux is
90415dd
intended to be a simple, modern, BSD-licensed alternative to programs such
90415dd
as GNU Screen.
90415dd
90415dd
%prep
90415dd
%setup -q
90415dd
90415dd
%build
90415dd
%configure
90415dd
make %{?_smp_mflags} LDFLAGS="%{optflags}"
90415dd
90415dd
%install
580ca58
make install DESTDIR=%{buildroot} INSTALLBIN="install -p -m 755" INSTALLMAN="install -p -m 644"
Sven Lankes f1e628b
# bash completion
Sven Lankes bd67c44
install -Dpm 644 examples/bash_completion_tmux.sh %{buildroot}%{_datadir}/bash-completion/completions/tmux
580ca58
db525d5
%post
6e25a48
if [ "$1" = 1 ]; then
6e25a48
  if [ ! -f %{_sysconfdir}/shells ] ; then
d659dac
    echo "%{_bindir}/tmux" > %{_sysconfdir}/shells
6e25a48
    echo "/bin/tmux" >> %{_sysconfdir}/shells
6e25a48
  else
d659dac
    grep -q "^%{_bindir}/tmux$" %{_sysconfdir}/shells || echo "%{_bindir}/tmux" >> %{_sysconfdir}/shells
6e25a48
    grep -q "^/bin/tmux$" %{_sysconfdir}/shells || echo "/bin/tmux" >> %{_sysconfdir}/shells
6e25a48
  fi
d659dac
fi
db525d5
Petr Šabata a54780c
%postun
6e25a48
if [ "$1" = 0 ] && [ -f %{_sysconfdir}/shells ] ; then
6e25a48
  sed -i '\!^%{_bindir}/tmux$!d' %{_sysconfdir}/shells
6e25a48
  sed -i '\!^/bin/tmux$!d' %{_sysconfdir}/shells
Petr Šabata a54780c
fi
Petr Šabata a54780c
90415dd
%files
fd62a15
%doc CHANGES FAQ TODO examples/
d659dac
%{_bindir}/tmux
580ca58
%{_mandir}/man1/tmux.1.*
Sven Lankes bd67c44
%{_datadir}/bash-completion/completions/tmux
90415dd
90415dd
%changelog
Sven Lankes bd67c44
* Tue Feb 23 2016 Sven Lankes <sven@lank.es> - 2.1-3
Sven Lankes bd67c44
- use more correct bash completion path (thanks to Carl George)
Sven Lankes bd67c44
Sven Lankes f1e628b
* Mon Feb 22 2016 Sven Lankes <sven@lank.es> - 2.1-2
Sven Lankes f1e628b
- add upstream bash-completion (thanks to Scott Tsai - closes rhbz #1148183)
Sven Lankes f1e628b
Sven Lankes 5da4971
* Mon Feb 22 2016 Sven Lankes <sven@lank.es> - 2.1-1
Sven Lankes 5da4971
- New upstream release 
Sven Lankes 5da4971
6a0a555
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-3
6a0a555
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6a0a555
4cc6131
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-2
4cc6131
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4cc6131
be6fea0
* Thu May 07 2015 Filipe Rosset <rosset.filipe@gmail.com> - 2.0-1
be6fea0
- Rebuilt for new upstream version 2.0, fixes rhbz #1219300
be6fea0
345fdf2
* Fri Jan 02 2015 Sven Lankes <sven@lank.es> - 1.9a-5
345fdf2
- Pull in upstream commit to fix Fx-Key issues. rhbz #1177652
345fdf2
ff9166d
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9a-4
ff9166d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ff9166d
ae9a484
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9a-3
ae9a484
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ae9a484
9722a8b
* Wed Feb 26 2014 Filipe Rosset <rosset.filipe@gmail.com> 1.9a-2
9722a8b
- Fix rhbz #1069950, upstream [tmux:tickets] #105
9722a8b
88f1499
* Sun Feb 23 2014 Filipe Rosset <rosset.filipe@gmail.com> 1.9a-1
88f1499
- New upstream release 1.9a
88f1499
6e25a48
* Sat Feb 22 2014 Filipe Rosset <rosset.filipe@gmail.com> 1.9-1
6e25a48
- New upstream release 1.9
6e25a48
- Fix rhbz #1067860
6e25a48
f6e54d6
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-3
f6e54d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f6e54d6
Petr Šabata a54780c
* Mon Jun 10 2013 Petr Ĺ abata <contyk@redhat.com> - 1.8-2
Petr Šabata a54780c
- Remove tmux from the shells file upon package removal (#972633)
Petr Šabata a54780c
fd62a15
* Sat Apr 13 2013 Sven Lankes <sven@lank.es> 1.8-1
fd62a15
- New upstream release
fd62a15
86957ae
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-2
86957ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
86957ae
9c833fa
* Sat Oct 13 2012 Sven Lankes <sven@lank.es> 1.7-1
9c833fa
- New upstream release
9c833fa
56af6fa
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-2
56af6fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
56af6fa
ee8313b
* Tue Jan 31 2012 Sven Lankes <sven@lank.es> 1.6-1
ee8313b
- New upstream release
ee8313b
66a0351
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-2
66a0351
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
66a0351
d659dac
* Tue Nov 01 2011 Sven Lankes <sven@lank.es> 1.5-1
d659dac
- New upstream release
d659dac
- Do the right thing (tm) and revert to $upstream-behaviour: 
d659dac
   No longer install tmux setgid and no longer use /var/run/tmux 
d659dac
   for sockets. Use "tmux -S /var/run/tmux/tmux-`id -u`/default attach"
d659dac
   if you need to access an "old" tmux session
d659dac
- tmux can be used as a login shell so add it to /etc/shells
d659dac
db525d5
* Sat Apr 16 2011 Sven Lankes <sven@lank.es> 1.4-4
d659dac
- Add /var/run/tmp to tmpdir.d - fixes rhbz 656704 and 697134
db525d5
7357310
* Sun Apr 10 2011 Sven Lankes <sven@lank.es> 1.4-3
7357310
- Fix CVE-2011-1496
7357310
- Fixes rhbz #693824
7357310
014036c
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-2
014036c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
014036c
74db83d
* Tue Dec 28 2010 Filipe Rosset <rosset.filipe@gmail.com> 1.4-1
74db83d
- New upstream release
74db83d
2b871ae
* Fri Aug 06 2010 Filipe Rosset <filiperosset@fedoraproject.org> 1.3-2
2b871ae
- Rebuild for F-13
2b871ae
1c52c02
* Mon Jul 19 2010 Sven Lankes <sven@lank.es> 1.3-1
1c52c02
- New upstream release
1c52c02
d3d3920
* Sun Mar 28 2010 Sven Lankes <sven@lank.es> 1.2-1
d3d3920
- New upstream release
b2fed5a
- rediff writehard patch
d3d3920
73482c5
* Mon Nov 09 2009 Sven Lankes <sven@lank.es> 1.1-1
73482c5
- New upstream release
73482c5
580ca58
* Sun Nov 01 2009 Sven Lankes <sven@lank.es> 1.0-2
580ca58
- Add debian patches
580ca58
- Add tmux group for improved socket handling
580ca58
90415dd
* Sat Oct 24 2009 Sven Lankes <sven@lank.es> 1.0-1
90415dd
- New upstream release
90415dd
90415dd
* Mon Jul 13 2009 Chess Griffin <chess@chessgriffin.com> 0.9-1
90415dd
- Update to version 0.9.
90415dd
- Remove sed invocation as this was adopted upstream.
90415dd
- Remove optflags patch since upstream source now uses ./configure and
90415dd
  detects the flags when passed to make.
90415dd
90415dd
* Tue Jun 23 2009 Chess Griffin <chess@chessgriffin.com> 0.8-5
90415dd
- Note that souce is mostly ISC licensed with some 2 and 3 clause BSD in
90415dd
  compat/.
90415dd
- Remove fixiquote.patch and instead use a sed invocation in setup.
90415dd
90415dd
* Mon Jun 22 2009 Chess Griffin <chess@chessgriffin.com> 0.8-4
90415dd
- Add optimization flags by patching GNUmakefile and passing LDFLAGS
90415dd
  to make command.
90415dd
- Use consistent macro format.
90415dd
- Change examples/* to examples/ and add TODO to docs.
90415dd
90415dd
* Sun Jun 21 2009 Chess Griffin <chess@chessgriffin.com> 0.8-3
90415dd
- Remove fixperms.patch and instead pass them at make install stage.
90415dd
90415dd
* Sat Jun 20 2009 Chess Griffin <chess@chessgriffin.com> 0.8-2
90415dd
- Fix Source0 URL to point to correct upstream source.
90415dd
- Modify fixperms.patch to set 644 permissions on the tmux.1.gz man page.
90415dd
- Remove wildcards from 'files' section and replace with specific paths and
90415dd
  filenames.
90415dd
90415dd
* Mon Jun 15 2009 Chess Griffin <chess@chessgriffin.com> 0.8-1
90415dd
- Initial RPM release.