From 514655b57d3fc51126168dd9cb07e30fff806fe1 Mon Sep 17 00:00:00 2001 From: AlmaLinux RelEng Bot Date: Mon, 24 Aug 2026 09:44:54 -0400 Subject: [PATCH] import CS tmux-3.2a-6.el9 --- SOURCES/tmux@.service | 13 +++++++++++++ SPECS/tmux.spec | 10 +++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 SOURCES/tmux@.service diff --git a/SOURCES/tmux@.service b/SOURCES/tmux@.service new file mode 100644 index 0000000..2e631eb --- /dev/null +++ b/SOURCES/tmux@.service @@ -0,0 +1,13 @@ +[Unit] +Description=tmux session for user %I +After=graphical-session.target + +[Service] +Type=forking +User=%I +ExecStart=/usr/bin/tmux new-session -s %I -d +ExecStop=/usr/bin/tmux kill-session -t %I +WorkingDirectory=~ + +[Install] +WantedBy=multi-user.target diff --git a/SPECS/tmux.spec b/SPECS/tmux.spec index 7feded6..683ecac 100644 --- a/SPECS/tmux.spec +++ b/SPECS/tmux.spec @@ -2,7 +2,7 @@ Name: tmux Version: 3.2a -Release: 5%{?dist} +Release: 6%{?dist} Summary: A terminal multiplexer # Most of the source is ISC licensed; some of the files in compat/ are 2 and @@ -12,6 +12,8 @@ URL: https://tmux.github.io/ Source0: https://github.com/tmux/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz # Examples has been removed - so include the bash_completion here Source1: bash_completion_tmux.sh +Source2: tmux@.service + Patch1: 0001-Fix-memory-leaks.patch Patch2: 0002-Close-file-stream-on-error.patch Patch3: 0003-Fix-memory-leak-with-time_format.patch @@ -32,6 +34,7 @@ BuildRequires: pkgconfig(tinfo) BuildRequires: pkgconfig(ncurses) BuildRequires: pkgconfig(ncursesw) BuildRequires: libutempter-devel +BuildRequires: systemd-rpm-macros %description tmux is a "terminal multiplexer." It enables a number of terminals (or @@ -54,6 +57,7 @@ autoreconf -f -i -v %make_install # bash completion install -Dpm 644 %{SOURCE1} %{buildroot}%{_datadir}/bash-completion/completions/tmux +install -Dpm 644 %{SOURCE2} %{buildroot}%{_unitdir}/tmux@.service %post if [ "$1" = 1 ]; then @@ -80,8 +84,12 @@ fi %{_bindir}/tmux %{_mandir}/man1/tmux.1.* %{_datadir}/bash-completion/completions/tmux +%{_unitdir}/tmux@.service %changelog +* Wed Mar 04 2026 Josef Ridky - 3.2a-6 +- Add tmux@.service (RHEL-72212) + * Mon Apr 10 2023 Josh Boyer - 3.2a-5 - Backport a number of memory leak fixes Resolves: rhbz#1938885