Andreas Schneider 0cd5137
%global _hardened_build 1
Andreas Schneider 0cd5137
90415dd
Name:           tmux
ba0c171
Version:        2.9a
ba0c171
Release:        2%{?dist}
90415dd
Summary:        A terminal multiplexer
90415dd
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
98b2533
URL:            https://tmux.github.io/
98b2533
Source0:        https://github.com/tmux/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
Sven Lankes a350056
# Examples has been removed - so include the bash_completion here
Sven Lankes a350056
Source1:        bash_completion_tmux.sh
Andreas Schneider 0cd5137
422807e
BuildRequires:  gcc
90415dd
BuildRequires:  ncurses-devel
d3d3920
BuildRequires:  libevent-devel
8c922a4
BuildRequires:  libutempter-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
8357d20
%autosetup
90415dd
90415dd
%build
90415dd
%configure
d9cc0b4
%make_build
90415dd
c946af0
90415dd
%install
d9cc0b4
%make_install
Sven Lankes f1e628b
# bash completion
Sven Lankes a350056
install -Dpm 644 %{SOURCE1} %{buildroot}%{_datadir}/bash-completion/completions/tmux
580ca58
db525d5
%post
6e25a48
if [ "$1" = 1 ]; then
6e25a48
  if [ ! -f %{_sysconfdir}/shells ] ; then
Sven Lankes 6e5c294
    touch %{_sysconfdir}/shells
6e25a48
  fi
Sven Lankes 6e5c294
  for binpath in %{_bindir} /bin; do
Sven Lankes 6e5c294
    if ! grep -q "^${binpath}/tmux$" %{_sysconfdir}/shells; then
Sven Lankes 6e5c294
       (cat %{_sysconfdir}/shells; echo "$binpath/tmux") > %{_sysconfdir}/shells.new
Sven Lankes 6e5c294
       mv %{_sysconfdir}/shells{.new,}
Sven Lankes 6e5c294
    fi
Sven Lankes 6e5c294
  done
d659dac
fi
db525d5
Petr Šabata a54780c
%postun
6e25a48
if [ "$1" = 0 ] && [ -f %{_sysconfdir}/shells ] ; then
Sven Lankes 6e5c294
  sed -e '\!^%{_bindir}/tmux$!d' -e '\!^/bin/tmux$!d' < %{_sysconfdir}/shells > %{_sysconfdir}/shells.new
Sven Lankes 6e5c294
  mv %{_sysconfdir}/shells{.new,}
Petr Šabata a54780c
fi
Petr Šabata a54780c
90415dd
%files
Andreas Schneider 0cd5137
%doc CHANGES TODO
d659dac
%{_bindir}/tmux
580ca58
%{_mandir}/man1/tmux.1.*
Sven Lankes bd67c44
%{_datadir}/bash-completion/completions/tmux
90415dd
90415dd
%changelog
ba0c171
* Sun May 12 2019 Filipe Rosset <rosset.filipe@gmail.com> - 2.9a-2
ba0c171
- update to version 2.9a, fixes rhbz #1692933
3460d1b
- ChangeLog https://raw.githubusercontent.com/tmux/tmux/2.9/CHANGES
3460d1b
- removed upstreamed patch
3460d1b
84fe35b
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-3
84fe35b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
84fe35b
40dcf01
* Thu Nov 22 2018 Filipe Rosset <rosset.filipe@gmail.com> - 2.8-2
40dcf01
- fixes rhbz #1652128 CVE-2018-19387
40dcf01
- tmux: NULL Pointer Dereference in format_cb_pane_tabs in format.c
40dcf01
652048f
* Fri Oct 19 2018 Filipe Rosset <rosset.filipe@gmail.com> - 2.8-1
652048f
- update to version 2.8
652048f
- ChangeLog https://raw.githubusercontent.com/tmux/tmux/2.8/CHANGES
652048f
598ab23
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7-2
598ab23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
598ab23
d9cc0b4
* Thu Apr 19 2018 Filipe Rosset <rosset.filipe@gmail.com> - 2.7-1
d9cc0b4
- update to version 2.7, fixes rhbz #1486507
d9cc0b4
- removed upstreamed patches + spec modernization
d9cc0b4
422807e
* Mon Apr 09 2018 Filipe Rosset <rosset.filipe@gmail.com> - 2.6-4
422807e
- added gcc as BR
422807e
0522cd5
* Wed Feb 14 2018 Kevin Fenzi <kevin@scrye.com> - 2.6-3
0522cd5
- Rebuild for new libevent
0522cd5
27a49d5
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.6-2
27a49d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
27a49d5
Andreas Schneider 0cd5137
* Fri Jan 26 2018 Andreas Schneider <asn@redhat.com> - 2.6-1
Andreas Schneider 0cd5137
- Update to version 2.6
Andreas Schneider 0cd5137
- Use hardened build
Andreas Schneider 0cd5137
8357d20
* Sat Aug 05 2017 Filipe Rosset <rosset.filipe@gmail.com> - 2.5-4
8357d20
- Fixes rhbz #1476851 tmux bell-action other not working
8357d20
- Fixes rhbz #1476892 tmux update in F26 broke tmuxinator
8357d20
012ad38
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-3
012ad38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
012ad38
4a8cba6
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-2
4a8cba6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4a8cba6
2cb6cc5
* Sat Jun 10 2017 Filipe Rosset <rosset.filipe@gmail.com> - 2.5-1
2cb6cc5
- New upstream release 2.5 - fixes rhbz #1449666
2cb6cc5
- https://raw.githubusercontent.com/tmux/tmux/2.5/CHANGES
2cb6cc5
c946af0
* Fri Apr 21 2017 Filipe Rosset <rosset.filipe@gmail.com> - 2.4-2
c946af0
- rebuild tmux as PIE  - fixes rhbz #1324104
c946af0
70ad076
* Fri Apr 21 2017 Filipe Rosset <rosset.filipe@gmail.com> - 2.4-1
70ad076
- New upstream release - fixes rhbz #1444011
70ad076
d51025f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-2
d51025f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d51025f
Sven Lankes 6e5c294
* Fri Oct 28 2016 Sven Lankes <sven@lank.es> - 2.3-1
Sven Lankes 6e5c294
- New upstream release - fixes rhbz #1380562
Sven Lankes 6e5c294
- Adapt shells handling to be atomic and support rpm-ostree - fixes rhbz #1367587
Sven Lankes 6e5c294
8c922a4
* Tue May 24 2016 Sven Lankes <sven@lank.es> - 2.2-3
8c922a4
- add libutempter-devel as buildrequires to allow writing to utmp
8c922a4
- fixes rhbz #1338936 
8c922a4
98b2533
* Mon May 09 2016 Sven Lankes <sven@lank.es> - 2.2-2
98b2533
- Adapt source0 and url for new website (fixes rhbz #1334255)
98b2533
Sven Lankes a350056
* Wed Apr 20 2016 Sven Lankes <sven@lank.es> - 2.2-1
Sven Lankes a350056
- New upstream release
Sven Lankes a350056
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.