Resolves: RHEL-72212 - add tmux service
Signed-off-by: Josef Ridky <jridky@redhat.com>
This commit is contained in:
parent
ad857566fb
commit
c6b49021fe
@ -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
|
||||
@ -54,6 +56,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 +83,12 @@ fi
|
||||
%{_bindir}/tmux
|
||||
%{_mandir}/man1/tmux.1.*
|
||||
%{_datadir}/bash-completion/completions/tmux
|
||||
%{_unitdir}/tmux@.service
|
||||
|
||||
%changelog
|
||||
* Wed Mar 04 2026 Josef Ridky <jridky@redhat.com> - 3.2a-6
|
||||
- Add tmux@.service (RHEL-72212)
|
||||
|
||||
* Mon Apr 10 2023 Josh Boyer <jwboyer@redhat.com> - 3.2a-5
|
||||
- Backport a number of memory leak fixes
|
||||
Resolves: rhbz#1938885
|
||||
|
||||
13
tmux@.service
Normal file
13
tmux@.service
Normal file
@ -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
|
||||
Loading…
Reference in New Issue
Block a user