d01b5f
%global _hardened_build 1
d01b5f
d01b5f
Name:           tmux
d01b5f
Version:        3.2a
d01b5f
Release:        4%{?dist}
d01b5f
Summary:        A terminal multiplexer
d01b5f
d01b5f
# Most of the source is ISC licensed; some of the files in compat/ are 2 and
d01b5f
# 3 clause BSD licensed.
d01b5f
License:        ISC and BSD
d01b5f
URL:            https://tmux.github.io/
d01b5f
Source0:        https://github.com/tmux/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
d01b5f
# Examples has been removed - so include the bash_completion here
d01b5f
Source1:        bash_completion_tmux.sh
d01b5f
d01b5f
BuildRequires:  make
d01b5f
BuildRequires:  gcc
d01b5f
BuildRequires:  bison
d01b5f
BuildRequires:  automake
d01b5f
BuildRequires:  autoconf
d01b5f
BuildRequires:  pkgconfig(libevent)
d01b5f
BuildRequires:  pkgconfig(tinfo)
d01b5f
BuildRequires:  pkgconfig(ncurses)
d01b5f
BuildRequires:  pkgconfig(ncursesw)
d01b5f
BuildRequires:  libutempter-devel
d01b5f
d01b5f
%description
d01b5f
tmux is a "terminal multiplexer."  It enables a number of terminals (or
d01b5f
windows) to be accessed and controlled from a single terminal.  tmux is
d01b5f
intended to be a simple, modern, BSD-licensed alternative to programs such
d01b5f
as GNU Screen.
d01b5f
d01b5f
%prep
d01b5f
%setup
d01b5f
d01b5f
d01b5f
%build
d01b5f
autoreconf -f -i -v
d01b5f
%configure
d01b5f
%make_build
d01b5f
d01b5f
d01b5f
%install
d01b5f
%make_install
d01b5f
# bash completion
d01b5f
install -Dpm 644 %{SOURCE1} %{buildroot}%{_datadir}/bash-completion/completions/tmux
d01b5f
d01b5f
%post
d01b5f
if [ "$1" = 1 ]; then
d01b5f
  if [ ! -f %{_sysconfdir}/shells ] ; then
d01b5f
    touch %{_sysconfdir}/shells
d01b5f
  fi
d01b5f
  for binpath in %{_bindir} /bin; do
d01b5f
    if ! grep -q "^${binpath}/tmux$" %{_sysconfdir}/shells; then
d01b5f
       (cat %{_sysconfdir}/shells; echo "$binpath/tmux") > %{_sysconfdir}/shells.new
d01b5f
       mv %{_sysconfdir}/shells{.new,}
d01b5f
    fi
d01b5f
  done
d01b5f
fi
d01b5f
d01b5f
%postun
d01b5f
if [ "$1" = 0 ] && [ -f %{_sysconfdir}/shells ] ; then
d01b5f
  sed -e '\!^%{_bindir}/tmux$!d' -e '\!^/bin/tmux$!d' < %{_sysconfdir}/shells > %{_sysconfdir}/shells.new
d01b5f
  mv %{_sysconfdir}/shells{.new,}
d01b5f
fi
d01b5f
d01b5f
%files
d01b5f
%doc CHANGES
d01b5f
%doc example_tmux.conf
d01b5f
%{_bindir}/tmux
d01b5f
%{_mandir}/man1/tmux.1.*
d01b5f
%{_datadir}/bash-completion/completions/tmux
d01b5f
d01b5f
%changelog
d01b5f
* Fri Dec 03 2021 David Cantrell <dcantrell@redhat.com> - 3.2a-4
d01b5f
- Rebuild
d01b5f
  Resolves: rhbz#2003007
d01b5f
d01b5f
* Mon Sep 27 2021 David Cantrell <dcantrell@redhat.com> - 3.2a-3
d01b5f
- Rebuild
d01b5f
  Related: rhbz#1910707
d01b5f
d01b5f
* Wed Sep 22 2021 David Cantrell <dcantrell@redhat.com> - 3.2a-2
d01b5f
- Ensure gating test files are present in the source repo
d01b5f
  Related: rhbz#1910707
d01b5f
d01b5f
* Wed Sep 01 2021 David Cantrell <dcantrell@redhat.com> - 3.2a-1
d01b5f
- Upgrade to tmux-3.2a (CVE-2020-27347)
d01b5f
  Resolves: rhbz#1910707
d01b5f
d01b5f
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 3.1c-4
d01b5f
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
d01b5f
  Related: rhbz#1991688
d01b5f
d01b5f
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.1c-3
d01b5f
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
d01b5f
d01b5f
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1c-2
d01b5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d01b5f
d01b5f
* Mon Jan  4 2021 Filipe Rosset <rosset.filipe@gmail.com> - 3.1c-1
d01b5f
- Update to 3.1c
d01b5f
d01b5f
* Wed Sep 16 2020 David Cantrell <dcantrell@redhat.com> - 3.1-3
d01b5f
- Rebuild for new libevent
d01b5f
d01b5f
* Fri Jul 17 2020 Andrew Spiers <andrew@andrewspiers.net> - 3.1-2
d01b5f
- Include upstream example config file
d01b5f
  Resolves: rhbz#1741836
d01b5f
d01b5f
* Wed Apr 29 2020 Filipe Rosset <rosset.filipe@gmail.com> - 3.1-1
d01b5f
- Update to 3.1 fixes rhbz#1715313
d01b5f
d01b5f
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0a-2
d01b5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d01b5f
d01b5f
* Tue Dec 03 2019 Brian C. Lane <bcl@redhat.com> - 3.0a-1
d01b5f
- New upstream release v3.0a
d01b5f
  Resolves: rhbz#1715313
d01b5f
d01b5f
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.9a-3
d01b5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d01b5f
d01b5f
* Sun May 12 2019 Filipe Rosset <rosset.filipe@gmail.com> - 2.9a-2
d01b5f
- update to version 2.9a, fixes rhbz #1692933
d01b5f
- ChangeLog https://raw.githubusercontent.com/tmux/tmux/2.9/CHANGES
d01b5f
- removed upstreamed patch
d01b5f
d01b5f
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-3
d01b5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d01b5f
d01b5f
* Thu Nov 22 2018 Filipe Rosset <rosset.filipe@gmail.com> - 2.8-2
d01b5f
- fixes rhbz #1652128 CVE-2018-19387
d01b5f
- tmux: NULL Pointer Dereference in format_cb_pane_tabs in format.c
d01b5f
d01b5f
* Fri Oct 19 2018 Filipe Rosset <rosset.filipe@gmail.com> - 2.8-1
d01b5f
- update to version 2.8
d01b5f
- ChangeLog https://raw.githubusercontent.com/tmux/tmux/2.8/CHANGES
d01b5f
d01b5f
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7-2
d01b5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d01b5f
d01b5f
* Thu Apr 19 2018 Filipe Rosset <rosset.filipe@gmail.com> - 2.7-1
d01b5f
- update to version 2.7, fixes rhbz #1486507
d01b5f
- removed upstreamed patches + spec modernization
d01b5f
d01b5f
* Mon Apr 09 2018 Filipe Rosset <rosset.filipe@gmail.com> - 2.6-4
d01b5f
- added gcc as BR
d01b5f
d01b5f
* Wed Feb 14 2018 Kevin Fenzi <kevin@scrye.com> - 2.6-3
d01b5f
- Rebuild for new libevent
d01b5f
d01b5f
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.6-2
d01b5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d01b5f
d01b5f
* Fri Jan 26 2018 Andreas Schneider <asn@redhat.com> - 2.6-1
d01b5f
- Update to version 2.6
d01b5f
- Use hardened build
d01b5f
d01b5f
* Sat Aug 05 2017 Filipe Rosset <rosset.filipe@gmail.com> - 2.5-4
d01b5f
- Fixes rhbz #1476851 tmux bell-action other not working
d01b5f
- Fixes rhbz #1476892 tmux update in F26 broke tmuxinator
d01b5f
d01b5f
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-3
d01b5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
d01b5f
d01b5f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-2
d01b5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d01b5f
d01b5f
* Sat Jun 10 2017 Filipe Rosset <rosset.filipe@gmail.com> - 2.5-1
d01b5f
- New upstream release 2.5 - fixes rhbz #1449666
d01b5f
- https://raw.githubusercontent.com/tmux/tmux/2.5/CHANGES
d01b5f
d01b5f
* Fri Apr 21 2017 Filipe Rosset <rosset.filipe@gmail.com> - 2.4-2
d01b5f
- rebuild tmux as PIE  - fixes rhbz #1324104
d01b5f
d01b5f
* Fri Apr 21 2017 Filipe Rosset <rosset.filipe@gmail.com> - 2.4-1
d01b5f
- New upstream release - fixes rhbz #1444011
d01b5f
d01b5f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-2
d01b5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d01b5f
d01b5f
* Fri Oct 28 2016 Sven Lankes <sven@lank.es> - 2.3-1
d01b5f
- New upstream release - fixes rhbz #1380562
d01b5f
- Adapt shells handling to be atomic and support rpm-ostree - fixes rhbz #1367587
d01b5f
d01b5f
* Tue May 24 2016 Sven Lankes <sven@lank.es> - 2.2-3
d01b5f
- add libutempter-devel as buildrequires to allow writing to utmp
d01b5f
- fixes rhbz #1338936 
d01b5f
d01b5f
* Mon May 09 2016 Sven Lankes <sven@lank.es> - 2.2-2
d01b5f
- Adapt source0 and url for new website (fixes rhbz #1334255)
d01b5f
d01b5f
* Wed Apr 20 2016 Sven Lankes <sven@lank.es> - 2.2-1
d01b5f
- New upstream release
d01b5f
d01b5f
* Tue Feb 23 2016 Sven Lankes <sven@lank.es> - 2.1-3
d01b5f
- use more correct bash completion path (thanks to Carl George)
d01b5f
d01b5f
* Mon Feb 22 2016 Sven Lankes <sven@lank.es> - 2.1-2
d01b5f
- add upstream bash-completion (thanks to Scott Tsai - closes rhbz #1148183)
d01b5f
d01b5f
* Mon Feb 22 2016 Sven Lankes <sven@lank.es> - 2.1-1
d01b5f
- New upstream release 
d01b5f
d01b5f
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-3
d01b5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d01b5f
d01b5f
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-2
d01b5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d01b5f
d01b5f
* Thu May 07 2015 Filipe Rosset <rosset.filipe@gmail.com> - 2.0-1
d01b5f
- Rebuilt for new upstream version 2.0, fixes rhbz #1219300
d01b5f
d01b5f
* Fri Jan 02 2015 Sven Lankes <sven@lank.es> - 1.9a-5
d01b5f
- Pull in upstream commit to fix Fx-Key issues. rhbz #1177652
d01b5f
d01b5f
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9a-4
d01b5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
d01b5f
d01b5f
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9a-3
d01b5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d01b5f
d01b5f
* Wed Feb 26 2014 Filipe Rosset <rosset.filipe@gmail.com> 1.9a-2
d01b5f
- Fix rhbz #1069950, upstream [tmux:tickets] #105
d01b5f
d01b5f
* Sun Feb 23 2014 Filipe Rosset <rosset.filipe@gmail.com> 1.9a-1
d01b5f
- New upstream release 1.9a
d01b5f
d01b5f
* Sat Feb 22 2014 Filipe Rosset <rosset.filipe@gmail.com> 1.9-1
d01b5f
- New upstream release 1.9
d01b5f
- Fix rhbz #1067860
d01b5f
d01b5f
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-3
d01b5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d01b5f
d01b5f
* Mon Jun 10 2013 Petr Ĺ abata <contyk@redhat.com> - 1.8-2
d01b5f
- Remove tmux from the shells file upon package removal (#972633)
d01b5f
d01b5f
* Sat Apr 13 2013 Sven Lankes <sven@lank.es> 1.8-1
d01b5f
- New upstream release
d01b5f
d01b5f
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-2
d01b5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d01b5f
d01b5f
* Sat Oct 13 2012 Sven Lankes <sven@lank.es> 1.7-1
d01b5f
- New upstream release
d01b5f
d01b5f
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-2
d01b5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d01b5f
d01b5f
* Tue Jan 31 2012 Sven Lankes <sven@lank.es> 1.6-1
d01b5f
- New upstream release
d01b5f
d01b5f
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-2
d01b5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d01b5f
d01b5f
* Tue Nov 01 2011 Sven Lankes <sven@lank.es> 1.5-1
d01b5f
- New upstream release
d01b5f
- Do the right thing (tm) and revert to $upstream-behaviour: 
d01b5f
   No longer install tmux setgid and no longer use /var/run/tmux 
d01b5f
   for sockets. Use "tmux -S /var/run/tmux/tmux-`id -u`/default attach"
d01b5f
   if you need to access an "old" tmux session
d01b5f
- tmux can be used as a login shell so add it to /etc/shells
d01b5f
d01b5f
* Sat Apr 16 2011 Sven Lankes <sven@lank.es> 1.4-4
d01b5f
- Add /var/run/tmp to tmpdir.d - fixes rhbz 656704 and 697134
d01b5f
d01b5f
* Sun Apr 10 2011 Sven Lankes <sven@lank.es> 1.4-3
d01b5f
- Fix CVE-2011-1496
d01b5f
- Fixes rhbz #693824
d01b5f
d01b5f
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-2
d01b5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d01b5f
d01b5f
* Tue Dec 28 2010 Filipe Rosset <rosset.filipe@gmail.com> 1.4-1
d01b5f
- New upstream release
d01b5f
d01b5f
* Fri Aug 06 2010 Filipe Rosset <filiperosset@fedoraproject.org> 1.3-2
d01b5f
- Rebuild for F-13
d01b5f
d01b5f
* Mon Jul 19 2010 Sven Lankes <sven@lank.es> 1.3-1
d01b5f
- New upstream release
d01b5f
d01b5f
* Sun Mar 28 2010 Sven Lankes <sven@lank.es> 1.2-1
d01b5f
- New upstream release
d01b5f
- rediff writehard patch
d01b5f
d01b5f
* Mon Nov 09 2009 Sven Lankes <sven@lank.es> 1.1-1
d01b5f
- New upstream release
d01b5f
d01b5f
* Sun Nov 01 2009 Sven Lankes <sven@lank.es> 1.0-2
d01b5f
- Add debian patches
d01b5f
- Add tmux group for improved socket handling
d01b5f
d01b5f
* Sat Oct 24 2009 Sven Lankes <sven@lank.es> 1.0-1
d01b5f
- New upstream release
d01b5f
d01b5f
* Mon Jul 13 2009 Chess Griffin <chess@chessgriffin.com> 0.9-1
d01b5f
- Update to version 0.9.
d01b5f
- Remove sed invocation as this was adopted upstream.
d01b5f
- Remove optflags patch since upstream source now uses ./configure and
d01b5f
  detects the flags when passed to make.
d01b5f
d01b5f
* Tue Jun 23 2009 Chess Griffin <chess@chessgriffin.com> 0.8-5
d01b5f
- Note that souce is mostly ISC licensed with some 2 and 3 clause BSD in
d01b5f
  compat/.
d01b5f
- Remove fixiquote.patch and instead use a sed invocation in setup.
d01b5f
d01b5f
* Mon Jun 22 2009 Chess Griffin <chess@chessgriffin.com> 0.8-4
d01b5f
- Add optimization flags by patching GNUmakefile and passing LDFLAGS
d01b5f
  to make command.
d01b5f
- Use consistent macro format.
d01b5f
- Change examples/* to examples/ and add TODO to docs.
d01b5f
d01b5f
* Sun Jun 21 2009 Chess Griffin <chess@chessgriffin.com> 0.8-3
d01b5f
- Remove fixperms.patch and instead pass them at make install stage.
d01b5f
d01b5f
* Sat Jun 20 2009 Chess Griffin <chess@chessgriffin.com> 0.8-2
d01b5f
- Fix Source0 URL to point to correct upstream source.
d01b5f
- Modify fixperms.patch to set 644 permissions on the tmux.1.gz man page.
d01b5f
- Remove wildcards from 'files' section and replace with specific paths and
d01b5f
  filenames.
d01b5f
d01b5f
* Mon Jun 15 2009 Chess Griffin <chess@chessgriffin.com> 0.8-1
d01b5f
- Initial RPM release.