diff --git a/tmux.spec b/tmux.spec index 2eb9144..51094a2 100644 --- a/tmux.spec +++ b/tmux.spec @@ -9,7 +9,7 @@ Name: tmux Version: 3.3a # forge meta appends commit info -Release: 12%{?dist} +Release: 13%{?dist} Summary: A terminal multiplexer License: ISC AND BSD-2-Clause AND BSD-3-Clause AND SSH-short AND LicenseRef-Fedora-Public-Domain @@ -17,6 +17,7 @@ URL: https://tmux.github.io/ Source0: %{forgesource} # Examples has been removed - so include the bash_completion here Source1: bash_completion_tmux.sh +Source2: tmux@.service # don't crash instead of displaying certain glyphs # https://bugzilla.redhat.com/show_bug.cgi?id=2253441 @@ -61,6 +62,7 @@ sh ./autogen.sh %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 @@ -87,8 +89,12 @@ fi %{_bindir}/tmux %{_mandir}/man1/tmux.1.* %{_datadir}/bash-completion/completions/tmux +%{_unitdir}/tmux@.service %changelog +* Fri Feb 07 2025 Josef Ridky - 3.3a-13 +- Add tmux@.service (RHEL-62152) + * Fri Feb 07 2025 Josef Ridky - 3.3a-12 - fix SAST findings (RHEL-45543) diff --git a/tmux@.service b/tmux@.service new file mode 100644 index 0000000..2e631eb --- /dev/null +++ b/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