%global _hardened_build 1 %global snapshot faf2a448.20250512 Name: tmux Version: 3.6 Release: 0.n0i.47%{?snapshot:.%{snapshot}.git}%{?dist} Summary: A terminal multiplexer License: ISC AND BSD-2-Clause AND BSD-3-Clause AND SSH-short AND LicenseRef-Fedora-Public-Domain URL: https://tmux.github.io/ %if %{?snapshot:1}0 Source0: %{name}-%{snapshot}.tar.xz Source99: %{name}-snapshot.sh %else Source0: https://github.com/tmux/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz %endif # https://github.com/imomaliev/tmux-bash-completion/raw/master/completions/tmux Source1: bash_completion_tmux.sh Source2: tmux@.service Source3: README.polkit %if %{?snapshot:1}0 BuildRequires: automake BuildRequires: autoconf %endif %if "%0{?commit}" != "0" BuildRequires: automake %endif BuildRequires: byacc BuildRequires: gcc BuildRequires: libutempter-devel BuildRequires: make BuildRequires: pkgconfig(libevent_core) >= 2 BuildRequires: pkgconfig(ncurses) BuildRequires: pkgconfig(ncursesw) BuildRequires: pkgconfig(tinfo) BuildRequires: systemd-devel %description tmux is a "terminal multiplexer." It enables a number of terminals (or windows) to be accessed and controlled from a single terminal. tmux is intended to be a simple, modern, BSD-licensed alternative to programs such as GNU Screen. %prep %if %{?rcv:1}%{?snapshot:1}0 %setup -q -n %{name}-%{?rcv}%{?snapshot} %else %autosetup %endif %build %if %{?snapshot:1}0 ./autogen.sh %endif %configure --enable-sixel --enable-systemd --enable-utempter %make_build %install %make_install install -Dpm 644 %{SOURCE1} %{buildroot}%{_datadir}/bash-completion/completions/tmux install -Dpm 644 %{SOURCE2} %{buildroot}%{_unitdir}/tmux@.service install -Dpm 644 %{SOURCE3} %{buildroot}%{_docdir}/tmux/README.polkit %post if [ "$1" = 1 ]; then if [ ! -f %{_sysconfdir}/shells ] ; then touch %{_sysconfdir}/shells fi for binpath in %{_bindir} /bin; do if ! grep -q "^${binpath}/tmux$" %{_sysconfdir}/shells; then (cat %{_sysconfdir}/shells; echo "$binpath/tmux") > %{_sysconfdir}/shells.new mv %{_sysconfdir}/shells{.new,} fi done fi %postun if [ "$1" = 0 ] && [ -f %{_sysconfdir}/shells ] ; then sed -e '\!^%{_bindir}/tmux$!d' -e '\!^/bin/tmux$!d' < %{_sysconfdir}/shells > %{_sysconfdir}/shells.new mv %{_sysconfdir}/shells{.new,} fi %files %doc CHANGES %doc example_tmux.conf %doc README.polkit %license COPYING %{_bindir}/tmux %{_mandir}/man1/tmux.1.* %{_datadir}/bash-completion/completions/tmux %{_unitdir}/tmux@.service %changelog * Mon May 12 2025 Marius FERARU - 3.6-0.n0i.47.faf2a448.20250512.git - build current git snapshot: faf2a448, 2025-05-12 - upstream sync: License, polkit, systemd, BR * Tue Apr 29 2025 Marius FERARU - 3.6-0.n0i.46.3a3babf5.20250428.git - build current git snapshot: 3a3babf5, 2025-04-28 * Thu Oct 17 2024 Marius FERARU - 3.6-0.n0i.45.35104059.20241015.git - build current git snapshot: 35104059, 2024-10-15 * Sat Aug 24 2024 Marius FERARU - 3.5-0.n0i.44.34807388.20240823.git - build current git snapshot: 34807388, 2024-08-23 * Tue Jun 04 2024 Marius FERARU - 3.5-0.n0i.43.c07e856d.20240524.git - build current git snapshot: c07e856d, 2024-05-24 * Thu Apr 25 2024 Marius FERARU - 3.5-0.n0i.42.608d1134.20240213.git - rebuild for F40 * Thu Feb 29 2024 Marius FERARU - 3.5-0.n0i.41.608d1134.20240213.git - build current git snapshot: 608d1134, 2024-02-13 * Mon Jan 08 2024 Marius FERARU - 3.4-0.n0i.40.e809c2ec.20240103.git - build current git snapshot: e809c2ec, 2024-01-03 * Mon Dec 04 2023 Marius FERARU - 3.4-0.n0i.39.bdf8e614.20231114.git - build current git snapshot: bdf8e614, 2023-11-14 * Wed Sep 20 2023 Marius FERARU - 3.4-0.n0i.38.b7777807.20230920.git - build current git snapshot: b7777807, 2023-09-20 * Mon Jun 26 2023 Marius FERARU - 3.4-0.n0i.37.0eb5d254.20230606.git - build current git snapshot: 3f3d61bd, 2023-06-26 * Tue Jun 06 2023 Marius FERARU - 3.4-0.n0i.36.0eb5d254.20230606.git - build current git snapshot: 0eb5d254, 2023-06-06 * Thu Apr 06 2023 Marius FERARU - 3.4-0.n0i.35.b9524f5b.20230406.git - build current git snapshot: b9524f5b, 2023-04-06 * Sun Dec 11 2022 Marius FERARU - 3.4-0.n0i.34.70ff8cfe.20221211.git - build current git snapshot: 70ff8cfe, 2022-12-11 * Tue Sep 13 2022 Marius FERARU - 3.4-0.n0i.33.0a0ded32.20220913.git - build current git snapshot: 0a0ded32, 2022-09-13 * Thu Jul 07 2022 Marius FERARU - 3.4-0.n0i.32.dc6bc0e9.20220707.git - build current git snapshot: dc6bc0e9, 2022-07-07 * Wed Jun 22 2022 Marius FERARU - 3.4-0.n0i.31.b63afaea.20220622.git - build current git snapshot: b63afaea, 2022-06-22 * Mon Jun 06 2022 Marius FERARU - 3.4-0.n0i.30.afb3a5fe.20220606.git - build current git snapshot: afb3a5fe, 2022-06-06 * Sat Apr 30 2022 Marius FERARU - 3.4-0.n0i.29.c6b51cea.20220430.git - build current git snapshot: c6b51cea, 2022-04-30 * Fri Mar 11 2022 Marius FERARU - 3.4-0.n0i.28.ee3f1d25.20220311.git - build current git snapshot: ee3f1d25, 2022-03-11 * Fri Dec 31 2021 Marius FERARU - 3.4-0.n0i.27.080079c5.20211231.git - build current git snapshot: 080079c5, 2021-12-31 - include license * Tue Nov 02 2021 Marius FERARU - 3.4-0.n0i.26.1fc0d1b7.20211102.git - build current git snapshot: 1fc0d1b7, 2021-11-02 * Fri Sep 10 2021 Marius FERARU - 3.3-0.n0i.25.31a6e5ef.20210910.git - build current git snapshot: 31a6e5ef, 2021-09-10 - resync spec with Fedora * Mon Apr 12 2021 Marius FERARU - 3.2-0.n0i.24.bedf2bd4.20210412.git - build current git snapshot: bedf2bd4, 2021-04-12 * Thu Dec 10 2020 Marius FERARU - 3.2-0.n0i.23.681c0d2b.20201210.git - build current git snapshot: 681c0d2b, 2020-12-10 * Thu Sep 10 2020 Marius FERARU - 3.2-0.n0i.22.3c1f34c2.20200910.git - build current git snapshot: 3c1f34c2, 2020-09-10 * Sat Mar 21 2020 Marius FERARU - 3.2-0.n0i.21.f652d777.20200321.git - build current git snapshot: f652d777, 2020-03-21 * Tue Mar 17 2020 Marius FERARU - 3.0a-2.n0i.20 - rebuild Fedora's package * Fri Jan 31 2020 Fedora Release Engineering - 3.0a-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Dec 03 2019 Brian C. Lane - 3.0a-1 - New upstream release v3.0a Resolves: rhbz#1715313 * Sat Jul 27 2019 Fedora Release Engineering - 2.9a-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun May 12 2019 Filipe Rosset - 2.9a-2 - update to version 2.9a, fixes rhbz #1692933 - ChangeLog https://raw.githubusercontent.com/tmux/tmux/2.9/CHANGES - removed upstreamed patch * Sun Feb 03 2019 Fedora Release Engineering - 2.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Nov 22 2018 Filipe Rosset - 2.8-2 - fixes rhbz #1652128 CVE-2018-19387 - tmux: NULL Pointer Dereference in format_cb_pane_tabs in format.c * Fri Oct 19 2018 Filipe Rosset - 2.8-1 - update to version 2.8 - ChangeLog https://raw.githubusercontent.com/tmux/tmux/2.8/CHANGES * Sat Jul 14 2018 Fedora Release Engineering - 2.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Apr 19 2018 Filipe Rosset - 2.7-1 - update to version 2.7, fixes rhbz #1486507 - removed upstreamed patches + spec modernization * Mon Apr 09 2018 Filipe Rosset - 2.6-4 - added gcc as BR * Wed Feb 14 2018 Kevin Fenzi - 2.6-3 - Rebuild for new libevent * Fri Feb 09 2018 Fedora Release Engineering - 2.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Jan 26 2018 Andreas Schneider - 2.6-1 - Update to version 2.6 - Use hardened build * Sat Aug 05 2017 Filipe Rosset - 2.5-4 - Fixes rhbz #1476851 tmux bell-action other not working - Fixes rhbz #1476892 tmux update in F26 broke tmuxinator * Thu Aug 03 2017 Fedora Release Engineering - 2.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Jun 10 2017 Filipe Rosset - 2.5-1 - New upstream release 2.5 - fixes rhbz #1449666 - https://raw.githubusercontent.com/tmux/tmux/2.5/CHANGES * Fri Apr 21 2017 Filipe Rosset - 2.4-2 - rebuild tmux as PIE - fixes rhbz #1324104 * Fri Apr 21 2017 Filipe Rosset - 2.4-1 - New upstream release - fixes rhbz #1444011 * Sat Feb 11 2017 Fedora Release Engineering - 2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Oct 28 2016 Sven Lankes - 2.3-1 - New upstream release - fixes rhbz #1380562 - Adapt shells handling to be atomic and support rpm-ostree - fixes rhbz #1367587 * Tue May 24 2016 Sven Lankes - 2.2-3 - add libutempter-devel as buildrequires to allow writing to utmp - fixes rhbz #1338936 * Mon May 09 2016 Sven Lankes - 2.2-2 - Adapt source0 and url for new website (fixes rhbz #1334255) * Wed Apr 20 2016 Sven Lankes - 2.2-1 - New upstream release * Tue Feb 23 2016 Sven Lankes - 2.1-3 - use more correct bash completion path (thanks to Carl George) * Mon Feb 22 2016 Sven Lankes - 2.1-2 - add upstream bash-completion (thanks to Scott Tsai - closes rhbz #1148183) * Mon Feb 22 2016 Sven Lankes - 2.1-1 - New upstream release * Fri Feb 05 2016 Fedora Release Engineering - 2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jun 19 2015 Fedora Release Engineering - 2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu May 07 2015 Filipe Rosset - 2.0-1 - Rebuilt for new upstream version 2.0, fixes rhbz #1219300 * Fri Jan 02 2015 Sven Lankes - 1.9a-5 - Pull in upstream commit to fix Fx-Key issues. rhbz #1177652 * Mon Aug 18 2014 Fedora Release Engineering - 1.9a-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 1.9a-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Feb 26 2014 Filipe Rosset 1.9a-2 - Fix rhbz #1069950, upstream [tmux:tickets] #105 * Sun Feb 23 2014 Filipe Rosset 1.9a-1 - New upstream release 1.9a * Sat Feb 22 2014 Filipe Rosset 1.9-1 - New upstream release 1.9 - Fix rhbz #1067860 * Sun Aug 04 2013 Fedora Release Engineering - 1.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Jun 10 2013 Petr Ĺ abata - 1.8-2 - Remove tmux from the shells file upon package removal (#972633) * Sat Apr 13 2013 Sven Lankes 1.8-1 - New upstream release * Fri Feb 15 2013 Fedora Release Engineering - 1.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Oct 13 2012 Sven Lankes 1.7-1 - New upstream release * Sat Jul 21 2012 Fedora Release Engineering - 1.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jan 31 2012 Sven Lankes 1.6-1 - New upstream release * Sat Jan 14 2012 Fedora Release Engineering - 1.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Nov 01 2011 Sven Lankes 1.5-1 - New upstream release - Do the right thing (tm) and revert to $upstream-behaviour: No longer install tmux setgid and no longer use /var/run/tmux for sockets. Use "tmux -S /var/run/tmux/tmux-`id -u`/default attach" if you need to access an "old" tmux session - tmux can be used as a login shell so add it to /etc/shells * Sat Apr 16 2011 Sven Lankes 1.4-4 - Add /var/run/tmp to tmpdir.d - fixes rhbz 656704 and 697134 * Sun Apr 10 2011 Sven Lankes 1.4-3 - Fix CVE-2011-1496 - Fixes rhbz #693824 * Wed Feb 09 2011 Fedora Release Engineering - 1.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Dec 28 2010 Filipe Rosset 1.4-1 - New upstream release * Fri Aug 06 2010 Filipe Rosset 1.3-2 - Rebuild for F-13 * Mon Jul 19 2010 Sven Lankes 1.3-1 - New upstream release * Sun Mar 28 2010 Sven Lankes 1.2-1 - New upstream release - rediff writehard patch * Mon Nov 09 2009 Sven Lankes 1.1-1 - New upstream release * Sun Nov 01 2009 Sven Lankes 1.0-2 - Add debian patches - Add tmux group for improved socket handling * Sat Oct 24 2009 Sven Lankes 1.0-1 - New upstream release * Mon Jul 13 2009 Chess Griffin 0.9-1 - Update to version 0.9. - Remove sed invocation as this was adopted upstream. - Remove optflags patch since upstream source now uses ./configure and detects the flags when passed to make. * Tue Jun 23 2009 Chess Griffin 0.8-5 - Note that souce is mostly ISC licensed with some 2 and 3 clause BSD in compat/. - Remove fixiquote.patch and instead use a sed invocation in setup. * Mon Jun 22 2009 Chess Griffin 0.8-4 - Add optimization flags by patching GNUmakefile and passing LDFLAGS to make command. - Use consistent macro format. - Change examples/* to examples/ and add TODO to docs. * Sun Jun 21 2009 Chess Griffin 0.8-3 - Remove fixperms.patch and instead pass them at make install stage. * Sat Jun 20 2009 Chess Griffin 0.8-2 - Fix Source0 URL to point to correct upstream source. - Modify fixperms.patch to set 644 permissions on the tmux.1.gz man page. - Remove wildcards from 'files' section and replace with specific paths and filenames. * Mon Jun 15 2009 Chess Griffin 0.8-1 - Initial RPM release.