public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <filiperosset@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/tmux] f43: backport 3.6b to Fedora 43 due CVE-2026-11623 rhbz#2487530
Date: Fri, 26 Jun 2026 14:54:07 GMT	[thread overview]
Message-ID: <178248564715.1.6988173897380051218.rpms-tmux-b9111ba0c9b5@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/tmux
            Branch : f43
            Commit : b9111ba0c9b5f91da004e68525a1174dc46beff9
            Author : Filipe Rosset <filiperosset@fedoraproject.org>
            Date   : 2026-06-26T11:53:42-03:00
            Stats  : +565/-344 in 7 file(s)
            URL    : https://src.fedoraproject.org/rpms/tmux/c/b9111ba0c9b5f91da004e68525a1174dc46beff9?branch=f43

            Log:
            backport 3.6b to Fedora 43 due CVE-2026-11623 rhbz#2487530

Signed-off-by: Filipe Rosset <filiperosset@fedoraproject.org>

---
diff --git a/.gitignore b/.gitignore
index acd3ab1..59a39fc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,28 +1 @@
-tmux-1.3.tar.gz
-/tmux-1.4.tar.gz
-/tmux-1.5.tar.gz
-/tmux-1.6.tar.gz
-/tmux-1.7.tar.gz
-/tmux-1.8.tar.gz
-/tmux-1.9.tar.gz
-/tmux-1.9a.tar.gz
-/tmux-2.0.tar.gz
-/tmux-2.1.tar.gz
-/tmux-2.2.tar.gz
-/tmux-2.3.tar.gz
-/tmux-2.4.tar.gz
-/tmux-2.5.tar.gz
-/tmux-2.6.tar.gz
-/tmux-2.7.tar.gz
-/tmux-2.8.tar.gz
-/tmux-2.9.tar.gz
-/tmux-2.9a.tar.gz
-/tmux-3.0a.tar.gz
-/tmux-3.1.tar.gz
-/tmux-3.1c.tar.gz
-/tmux-3.2a.tar.gz
-/tmux-3.3a.tar.gz
-/tmux-b202a2f1b517a3de7141fc35fbd9e39ed5ac5284.tar.gz
-/tmux-3.4.tar.gz
-/tmux-3.5.tar.gz
-/tmux-3.5a.tar.gz
+/tmux-*.tar.gz

diff --git a/.packit.yaml b/.packit.yaml
new file mode 100644
index 0000000..75f3124
--- /dev/null
+++ b/.packit.yaml
@@ -0,0 +1,19 @@
+# See the documentation for more information:
+# https://packit.dev/docs/configuration/
+
+specfile_path: tmux.spec
+
+copy_upstream_release_description: false
+
+jobs:
+  - job: pull_from_upstream
+    trigger: release
+    dist_git_branches:
+      - fedora-rawhide
+
+  - job: koji_build
+    trigger: commit
+    allowed_committers: ['packit','all_admins']
+    dist_git_branches:
+      - fedora-rawhide
+

diff --git a/0001-Setting-working-directory-after-fork-means-there-is-.patch b/0001-Setting-working-directory-after-fork-means-there-is-.patch
new file mode 100644
index 0000000..e3f072a
--- /dev/null
+++ b/0001-Setting-working-directory-after-fork-means-there-is-.patch
@@ -0,0 +1,89 @@
+From f1e4ec1c9fa89f4fc062b5bc4aacc5f93f93f11b Mon Sep 17 00:00:00 2001
+From: nicm <nicm>
+Date: Mon, 8 Dec 2025 08:04:35 +0000
+Subject: [PATCH] Setting working directory after fork means there is a race
+ with pane_current_path (especially on platforms with systemd which have to
+ take time to do some additional faffing around). To avoid this, change it
+ before fork and back in the parent afterwards. GitHub issue 4719.
+
+(cherry picked from commit f58b8d0d6abb2477b584547a4e72cc362ecbbcdb)
+
+Conflicts:
+	spawn.c
+---
+ spawn.c | 36 ++++++++++++++++++++++++------------
+ 1 file changed, 24 insertions(+), 12 deletions(-)
+
+diff --git a/spawn.c b/spawn.c
+index 90cda757..964d0334 100644
+--- a/spawn.c
++++ b/spawn.c
+@@ -211,7 +211,9 @@ spawn_pane(struct spawn_context *sc, char **cause)
+ 	struct environ		 *child;
+ 	struct environ_entry	 *ee;
+ 	char			**argv, *cp, **argvp, *argv0, *cwd, *new_cwd;
+-	const char		 *cmd, *tmp;
++	char			  path[PATH_MAX];
++	const char		 *cmd, *tmp, *home = find_home();
++	const char		 *actual_cwd = NULL;
+ 	int			  argc;
+ 	u_int			  idx;
+ 	struct termios		  now;
+@@ -366,6 +368,16 @@ spawn_pane(struct spawn_context *sc, char **cause)
+ 		goto complete;
+ 	}
+ 
++    /* Store current working directory and change to new one. */
++	if (getcwd(path, sizeof path) != NULL) {
++		if (chdir(new_wp->cwd) == 0)
++			actual_cwd = new_wp->cwd;
++		else if (home != NULL && chdir(home) == 0)
++			actual_cwd = home;
++		else if (chdir("/") == 0)
++			actual_cwd = "/";
++	}
++
+ 	/* Fork the new process. */
+ 	new_wp->pid = fdforkpty(ptm_fd, &new_wp->fd, new_wp->tty, NULL, &ws);
+ 	if (new_wp->pid == -1) {
+@@ -381,8 +393,15 @@ spawn_pane(struct spawn_context *sc, char **cause)
+ 		return (NULL);
+ 	}
+ 
+-	/* In the parent process, everything is done now. */
++	/*
++	 * In the parent process, everything is done now. Change the working
++	 * directory back.
++	 */
+ 	if (new_wp->pid != 0) {
++		if (actual_cwd != NULL &&
++		    chdir(path) != 0 &&
++		    (home == NULL || chdir(home) != 0))
++			chdir("/");
+ 		goto complete;
+ 	}
+ 
+@@ -397,17 +416,10 @@ spawn_pane(struct spawn_context *sc, char **cause)
+ 	}
+ #endif
+ 	/*
+-	 * Child process. Change to the working directory or home if that
+-	 * fails.
++	 * Child process. Set PWD to the working directory.
+ 	 */
+-	if (chdir(new_wp->cwd) == 0)
+-		environ_set(child, "PWD", 0, "%s", new_wp->cwd);
+-	else if ((tmp = find_home()) != NULL && chdir(tmp) == 0)
+-		environ_set(child, "PWD", 0, "%s", tmp);
+-	else if (chdir("/") == 0)
+-		environ_set(child, "PWD", 0, "/");
+-	else
+-		fatal("chdir failed");
++	if (actual_cwd != NULL)
++		environ_set(child, "PWD", 0, "%s", actual_cwd);
+ 
+ 	/*
+ 	 * Update terminal escape characters from the session if available and
+-- 
+2.54.0
+

diff --git a/changelog b/changelog
new file mode 100644
index 0000000..c279a29
--- /dev/null
+++ b/changelog
@@ -0,0 +1,315 @@
+* Sat Jun 20 2026 Filipe Rosset <filiperosset@fedoraproject.org> - 3.6b-2
+- spec cleanup and modernization in preparation for next release
+
+* Thu May 21 2026 Filipe Rosset <rosset.filipe@gmail.com> - 3.6b-1
+- update to 3.6b
+
+* Tue May 05 2026 Dridi Boukelmoune <dridi@fedoraproject.org> - 3.6a-2
+- Patch #{pane_current_path} race condition
+
+* Mon Feb 23 2026 Filipe Rosset <rosset.filipe@gmail.com> - 3.6a-1
+- Update to tmux 3.6a
+
+* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
+
+* Thu Nov 27 2025 Filipe Rosset <rosset.filipe@gmail.com> - 3.6-1
+- Update tmux to 3.6
+
+* Mon Nov 17 2025 Filipe Rosset <rosset.filipe@gmail.com> - 3.5a-7
+- Bump rawhide build to avoid older Fedora with newer builds
+
+* Tue Nov 11 2025 Yanko Kaneti <yaneti@declera.com> - 3.5a-6
+- Drop bash-completeion snippet as now its in bash-completion upstream
+
+* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.5a-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
+
+* Wed Jan 22 2025 Pat Riehecky <riehecky@fnal.gov> - 3.5a-4
+- Add example polkit documentation
+
+* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.5a-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
+
+* Wed Oct 09 2024 Pat Riehecky <riehecky@fnal.gov> - 3.5a-2
+- Add tmux@.service
+
+* Wed Oct 09 2024 Filipe Rosset <rosset.filipe@gmail.com> - 3.5a-1
+- update to 3.5a
+
+* Fri Sep 27 2024 Sven Lankes <sven@lank.es> - 3.5
+- update to latest upstream release
+
+* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.4-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
+
+* Sun Feb 18 2024 Filipe Rosset <rosset.filipe@gmail.com> - 3.4-1
+- Update to 3.4
+
+* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.3a-8
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
+
+* Tue Dec 12 2023 Sven Lankes <sven@lank.es> - 3.3a-7.20230918gitb202a2f
+- Don't crash on showing certain glyph
+  Resolves: rhbz#2253441
+
+* Mon Oct 02 2023 David Cantrell <dcantrell@redhat.com> - 3.3a-6.20230918gitb202a2f
+- Convert License tag to SPDX expression
+
+* Mon Sep 18 2023 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 3.3a-5.20230918gitb202a2f
+- update to snapshot
+- https://github.com/tmux/tmux/issues/3699#issuecomment-1723095544
+
+* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.3a-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
+
+* Sun Feb 12 2023 Filipe Rosset <rosset.filipe@gmail.com> - 3.3a-3
+- Enable support for systemd socket activation fixes rhbz#2158980
+
+* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.3a-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
+
+* Fri Aug 19 2022 Filipe Rosset <rosset.filipe@gmail.com> - 3.3a-1
+- Update to 3.3a
+
+* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2a-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
+
+* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2a-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
+
+* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2a-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
+
+* Fri Jul 02 2021 Igor Raits <ignatenkobrain@fedoraproject.org> - 3.2a-1
+- Update to 3.2a
+
+* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1c-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
+
+* Mon Jan  4 2021 Filipe Rosset <rosset.filipe@gmail.com> - 3.1c-1
+- Update to 3.1c
+
+* Wed Sep 16 2020 David Cantrell <dcantrell@redhat.com> - 3.1-3
+- Rebuild for new libevent
+
+* Fri Jul 17 2020 Andrew Spiers <andrew@andrewspiers.net> - 3.1-2
+- Include upstream example config file
+  Resolves: rhbz#1741836
+
+* Wed Apr 29 2020 Filipe Rosset <rosset.filipe@gmail.com> - 3.1-1
+- Update to 3.1 fixes rhbz#1715313
+
+* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0a-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
+
+* Tue Dec 03 2019 Brian C. Lane <bcl@redhat.com> - 3.0a-1
+- New upstream release v3.0a
+  Resolves: rhbz#1715313
+
+* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.9a-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
+
+* Sun May 12 2019 Filipe Rosset <rosset.filipe@gmail.com> - 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 <releng@fedoraproject.org> - 2.8-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
+
+* Thu Nov 22 2018 Filipe Rosset <rosset.filipe@gmail.com> - 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 <rosset.filipe@gmail.com> - 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 <releng@fedoraproject.org> - 2.7-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+
+* Thu Apr 19 2018 Filipe Rosset <rosset.filipe@gmail.com> - 2.7-1
+- update to version 2.7, fixes rhbz #1486507
+- removed upstreamed patches + spec modernization
+
+* Mon Apr 09 2018 Filipe Rosset <rosset.filipe@gmail.com> - 2.6-4
+- added gcc as BR
+
+* Wed Feb 14 2018 Kevin Fenzi <kevin@scrye.com> - 2.6-3
+- Rebuild for new libevent
+
+* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.6-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
+* Fri Jan 26 2018 Andreas Schneider <asn@redhat.com> - 2.6-1
+- Update to version 2.6
+- Use hardened build
+
+* Sat Aug 05 2017 Filipe Rosset <rosset.filipe@gmail.com> - 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 <releng@fedoraproject.org> - 2.5-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
+
+* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+
+* Sat Jun 10 2017 Filipe Rosset <rosset.filipe@gmail.com> - 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 <rosset.filipe@gmail.com> - 2.4-2
+- rebuild tmux as PIE  - fixes rhbz #1324104
+
+* Fri Apr 21 2017 Filipe Rosset <rosset.filipe@gmail.com> - 2.4-1
+- New upstream release - fixes rhbz #1444011
+
+* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+
+* Fri Oct 28 2016 Sven Lankes <sven@lank.es> - 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 <sven@lank.es> - 2.2-3
+- add libutempter-devel as buildrequires to allow writing to utmp
+- fixes rhbz #1338936
+
+* Mon May 09 2016 Sven Lankes <sven@lank.es> - 2.2-2
+- Adapt source0 and url for new website (fixes rhbz #1334255)
+
+* Wed Apr 20 2016 Sven Lankes <sven@lank.es> - 2.2-1
+- New upstream release
+
+* Tue Feb 23 2016 Sven Lankes <sven@lank.es> - 2.1-3
+- use more correct bash completion path (thanks to Carl George)
+
+* Mon Feb 22 2016 Sven Lankes <sven@lank.es> - 2.1-2
+- add upstream bash-completion (thanks to Scott Tsai - closes rhbz #1148183)
+
+* Mon Feb 22 2016 Sven Lankes <sven@lank.es> - 2.1-1
+- New upstream release
+
+* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
+
+* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
+
+* Thu May 07 2015 Filipe Rosset <rosset.filipe@gmail.com> - 2.0-1
+- Rebuilt for new upstream version 2.0, fixes rhbz #1219300
+
+* Fri Jan 02 2015 Sven Lankes <sven@lank.es> - 1.9a-5
+- Pull in upstream commit to fix Fx-Key issues. rhbz #1177652
+
+* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9a-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
+
+* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9a-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
+* Wed Feb 26 2014 Filipe Rosset <rosset.filipe@gmail.com> 1.9a-2
+- Fix rhbz #1069950, upstream [tmux:tickets] #105
+
+* Sun Feb 23 2014 Filipe Rosset <rosset.filipe@gmail.com> 1.9a-1
+- New upstream release 1.9a
+
+* Sat Feb 22 2014 Filipe Rosset <rosset.filipe@gmail.com> 1.9-1
+- New upstream release 1.9
+- Fix rhbz #1067860
+
+* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
+
+* Mon Jun 10 2013 Petr Šabata <contyk@redhat.com> - 1.8-2
+- Remove tmux from the shells file upon package removal (#972633)
+
+* Sat Apr 13 2013 Sven Lankes <sven@lank.es> 1.8-1
+- New upstream release
+
+* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
+
+* Sat Oct 13 2012 Sven Lankes <sven@lank.es> 1.7-1
+- New upstream release
+
+* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
+
+* Tue Jan 31 2012 Sven Lankes <sven@lank.es> 1.6-1
+- New upstream release
+
+* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Tue Nov 01 2011 Sven Lankes <sven@lank.es> 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 <sven@lank.es> 1.4-4
+- Add /var/run/tmp to tmpdir.d - fixes rhbz 656704 and 697134
+
+* Sun Apr 10 2011 Sven Lankes <sven@lank.es> 1.4-3
+- Fix CVE-2011-1496
+- Fixes rhbz #693824
+
+* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Tue Dec 28 2010 Filipe Rosset <rosset.filipe@gmail.com> 1.4-1
+- New upstream release
+
+* Fri Aug 06 2010 Filipe Rosset <filiperosset@fedoraproject.org> 1.3-2
+- Rebuild for F-13
+
+* Mon Jul 19 2010 Sven Lankes <sven@lank.es> 1.3-1
+- New upstream release
+
+* Sun Mar 28 2010 Sven Lankes <sven@lank.es> 1.2-1
+- New upstream release
+- rediff writehard patch
+
+* Mon Nov 09 2009 Sven Lankes <sven@lank.es> 1.1-1
+- New upstream release
+
+* Sun Nov 01 2009 Sven Lankes <sven@lank.es> 1.0-2
+- Add debian patches
+- Add tmux group for improved socket handling
+
+* Sat Oct 24 2009 Sven Lankes <sven@lank.es> 1.0-1
+- New upstream release
+
+* Mon Jul 13 2009 Chess Griffin <chess@chessgriffin.com> 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 <chess@chessgriffin.com> 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 <chess@chessgriffin.com> 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 <chess@chessgriffin.com> 0.8-3
+- Remove fixperms.patch and instead pass them at make install stage.
+
+* Sat Jun 20 2009 Chess Griffin <chess@chessgriffin.com> 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 <chess@chessgriffin.com> 0.8-1
+- Initial RPM release.

diff --git a/sources b/sources
index acfa680..abf1f0e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (tmux-3.5a.tar.gz) = 2383e99aec2dcdb1d899793d5ecab40a68b921194f84770d3f4d19712bfc85590657a99d2a9a7bec36d4ba5ab39fa713f13937b0acad3b61cd9b2302dba61d43
+SHA512 (tmux-3.6b.tar.gz) = 0dee1a6548496e5398cda98a7740139749f98fbbb8c9c539f81b18805a560529e4d7fee2b823748ec51935a83836ca502724fa759139f8db9514229004558192

diff --git a/tmux.spec b/tmux.spec
index cdb3216..b95d916 100644
--- a/tmux.spec
+++ b/tmux.spec
@@ -1,8 +1,6 @@
-%global _hardened_build 1
-
 Name:           tmux
-Version:        3.5a
-Release:        7%{?dist}
+Version:        3.6b
+Release:        %autorelease
 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/
@@ -10,6 +8,11 @@ Source0:        https://github.com/tmux/%{name}/releases/download/%{version}/%{n
 Source1:        bash_completion_tmux.sh
 Source2:        tmux@.service
 Source3:        README.polkit
+
+# related to https://github.com/tmux/tmux/commit/f58b8d0d6abb2477b584547a4e72cc362ecbbcdb
+# this patch should be removed during next tmux upgrade since it's in the master branch
+Patch0:         0001-Setting-working-directory-after-fork-means-there-is-.patch
+
 BuildRequires:  byacc
 BuildRequires:  gcc
 BuildRequires:  systemd-devel
@@ -23,15 +26,21 @@ BuildRequires:  pkgconfig(ncursesw)
 BuildRequires:  automake
 %endif
 
+Requires(post):   coreutils
+Requires(post):   grep
+Requires(postun): sed
+
 %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
 %autosetup
 
+
 %build
 %configure --enable-sixel --enable-systemd --enable-utempter
 %make_build
@@ -42,30 +51,33 @@ as GNU Screen.
 
 # Install the bash completion file
 install -Dpm 644 %{SOURCE1} %{buildroot}%{_datadir}/bash-completion/completions/tmux
-
 # Install the systemd file
 install -Dpm 644 %{SOURCE2} %{buildroot}%{_unitdir}/tmux@.service
-
 # Install the polkit example file
 install -Dpm 644 %{SOURCE3} %{buildroot}%{_docdir}/tmux/README.polkit
 
+
+%check
+%{buildroot}%{_bindir}/tmux -V
+
+
 %post
+# Add login shell entries to /etc/shells only when installing the package
+# for the first time:
 if [ "$1" = 1 ]; then
-  if [ ! -f %{_sysconfdir}/shells ] ; then
-    touch %{_sysconfdir}/shells
+  if [ ! -f %{_sysconfdir}/shells ]; then
+    echo "%{_bindir}/tmux" > %{_sysconfdir}/shells
+    echo "/bin/tmux" >> %{_sysconfdir}/shells
+  else
+    grep -q "^%{_bindir}/tmux$" %{_sysconfdir}/shells || echo "%{_bindir}/tmux" >> %{_sysconfdir}/shells
+    grep -q "^/bin/tmux$" %{_sysconfdir}/shells || echo "/bin/tmux" >> %{_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,}
+# Remove the login shell lines from /etc/shells only when uninstalling:
+if [ "$1" = 0 ] && [ -f %{_sysconfdir}/shells ]; then
+  sed -i -e '\!^%{_bindir}/tmux$!d' -e '\!^/bin/tmux$!d' %{_sysconfdir}/shells
 fi
 
 %files
@@ -77,300 +89,4 @@ fi
 %{_unitdir}/tmux@.service
 
 %changelog
-* Thu Nov 13 2025 Filipe Rosset <rosset.filipe@gmail.com> - 3.5a-7
-- revert bash-completion removal, new bash-completion is only for rawhide atm
-
-* Tue Nov 11 2025 Yanko Kaneti <yaneti@declera.com> - 3.5a-6
-- Drop bash-completeion snippet as now its in bash-completion upstream
-
-* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.5a-5
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
-
-* Wed Jan 22 2025 Pat Riehecky <riehecky@fnal.gov> - 3.5a-4
-- Add example polkit documentation
-
-* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.5a-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
-
-* Wed Oct 09 2024 Pat Riehecky <riehecky@fnal.gov> - 3.5a-2
-- Add tmux@.service
-
-* Wed Oct 09 2024 Filipe Rosset <rosset.filipe@gmail.com> - 3.5a-1
-- update to 3.5a
-
-* Fri Sep 27 2024 Sven Lankes <sven@lank.es> - 3.5
-- update to latest upstream release
-
-* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.4-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
-
-* Sun Feb 18 2024 Filipe Rosset <rosset.filipe@gmail.com> - 3.4-1
-- Update to 3.4
-
-* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.3a-8
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
-
-* Tue Dec 12 2023 Sven Lankes <sven@lank.es> - 3.3a-7.20230918gitb202a2f
-- Don't crash on showing certain glyph
-  Resolves: rhbz#2253441
-
-* Mon Oct 02 2023 David Cantrell <dcantrell@redhat.com> - 3.3a-6.20230918gitb202a2f
-- Convert License tag to SPDX expression
-
-* Mon Sep 18 2023 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 3.3a-5.20230918gitb202a2f
-- update to snapshot
-- https://github.com/tmux/tmux/issues/3699#issuecomment-1723095544
-
-* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.3a-4
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
-
-* Sun Feb 12 2023 Filipe Rosset <rosset.filipe@gmail.com> - 3.3a-3
-- Enable support for systemd socket activation fixes rhbz#2158980
-
-* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.3a-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
-
-* Fri Aug 19 2022 Filipe Rosset <rosset.filipe@gmail.com> - 3.3a-1
-- Update to 3.3a
-
-* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2a-4
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
-
-* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2a-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
-
-* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2a-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
-
-* Fri Jul 02 2021 Igor Raits <ignatenkobrain@fedoraproject.org> - 3.2a-1
-- Update to 3.2a
-
-* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1c-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
-
-* Mon Jan  4 2021 Filipe Rosset <rosset.filipe@gmail.com> - 3.1c-1
-- Update to 3.1c
-
-* Wed Sep 16 2020 David Cantrell <dcantrell@redhat.com> - 3.1-3
-- Rebuild for new libevent
-
-* Fri Jul 17 2020 Andrew Spiers <andrew@andrewspiers.net> - 3.1-2
-- Include upstream example config file
-  Resolves: rhbz#1741836
-
-* Wed Apr 29 2020 Filipe Rosset <rosset.filipe@gmail.com> - 3.1-1
-- Update to 3.1 fixes rhbz#1715313
-
-* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0a-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
-
-* Tue Dec 03 2019 Brian C. Lane <bcl@redhat.com> - 3.0a-1
-- New upstream release v3.0a
-  Resolves: rhbz#1715313
-
-* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.9a-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
-
-* Sun May 12 2019 Filipe Rosset <rosset.filipe@gmail.com> - 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 <releng@fedoraproject.org> - 2.8-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
-
-* Thu Nov 22 2018 Filipe Rosset <rosset.filipe@gmail.com> - 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 <rosset.filipe@gmail.com> - 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 <releng@fedoraproject.org> - 2.7-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
-
-* Thu Apr 19 2018 Filipe Rosset <rosset.filipe@gmail.com> - 2.7-1
-- update to version 2.7, fixes rhbz #1486507
-- removed upstreamed patches + spec modernization
-
-* Mon Apr 09 2018 Filipe Rosset <rosset.filipe@gmail.com> - 2.6-4
-- added gcc as BR
-
-* Wed Feb 14 2018 Kevin Fenzi <kevin@scrye.com> - 2.6-3
-- Rebuild for new libevent
-
-* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.6-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
-
-* Fri Jan 26 2018 Andreas Schneider <asn@redhat.com> - 2.6-1
-- Update to version 2.6
-- Use hardened build
-
-* Sat Aug 05 2017 Filipe Rosset <rosset.filipe@gmail.com> - 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 <releng@fedoraproject.org> - 2.5-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
-
-* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
-
-* Sat Jun 10 2017 Filipe Rosset <rosset.filipe@gmail.com> - 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 <rosset.filipe@gmail.com> - 2.4-2
-- rebuild tmux as PIE  - fixes rhbz #1324104
-
-* Fri Apr 21 2017 Filipe Rosset <rosset.filipe@gmail.com> - 2.4-1
-- New upstream release - fixes rhbz #1444011
-
-* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
-
-* Fri Oct 28 2016 Sven Lankes <sven@lank.es> - 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 <sven@lank.es> - 2.2-3
-- add libutempter-devel as buildrequires to allow writing to utmp
-- fixes rhbz #1338936 
-
-* Mon May 09 2016 Sven Lankes <sven@lank.es> - 2.2-2
-- Adapt source0 and url for new website (fixes rhbz #1334255)
-
-* Wed Apr 20 2016 Sven Lankes <sven@lank.es> - 2.2-1
-- New upstream release
-
-* Tue Feb 23 2016 Sven Lankes <sven@lank.es> - 2.1-3
-- use more correct bash completion path (thanks to Carl George)
-
-* Mon Feb 22 2016 Sven Lankes <sven@lank.es> - 2.1-2
-- add upstream bash-completion (thanks to Scott Tsai - closes rhbz #1148183)
-
-* Mon Feb 22 2016 Sven Lankes <sven@lank.es> - 2.1-1
-- New upstream release 
-
-* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
-
-* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
-
-* Thu May 07 2015 Filipe Rosset <rosset.filipe@gmail.com> - 2.0-1
-- Rebuilt for new upstream version 2.0, fixes rhbz #1219300
-
-* Fri Jan 02 2015 Sven Lankes <sven@lank.es> - 1.9a-5
-- Pull in upstream commit to fix Fx-Key issues. rhbz #1177652
-
-* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9a-4
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
-
-* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9a-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
-
-* Wed Feb 26 2014 Filipe Rosset <rosset.filipe@gmail.com> 1.9a-2
-- Fix rhbz #1069950, upstream [tmux:tickets] #105
-
-* Sun Feb 23 2014 Filipe Rosset <rosset.filipe@gmail.com> 1.9a-1
-- New upstream release 1.9a
-
-* Sat Feb 22 2014 Filipe Rosset <rosset.filipe@gmail.com> 1.9-1
-- New upstream release 1.9
-- Fix rhbz #1067860
-
-* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
-
-* Mon Jun 10 2013 Petr Šabata <contyk@redhat.com> - 1.8-2
-- Remove tmux from the shells file upon package removal (#972633)
-
-* Sat Apr 13 2013 Sven Lankes <sven@lank.es> 1.8-1
-- New upstream release
-
-* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
-
-* Sat Oct 13 2012 Sven Lankes <sven@lank.es> 1.7-1
-- New upstream release
-
-* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
-
-* Tue Jan 31 2012 Sven Lankes <sven@lank.es> 1.6-1
-- New upstream release
-
-* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
-
-* Tue Nov 01 2011 Sven Lankes <sven@lank.es> 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 <sven@lank.es> 1.4-4
-- Add /var/run/tmp to tmpdir.d - fixes rhbz 656704 and 697134
-
-* Sun Apr 10 2011 Sven Lankes <sven@lank.es> 1.4-3
-- Fix CVE-2011-1496
-- Fixes rhbz #693824
-
-* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
-
-* Tue Dec 28 2010 Filipe Rosset <rosset.filipe@gmail.com> 1.4-1
-- New upstream release
-
-* Fri Aug 06 2010 Filipe Rosset <filiperosset@fedoraproject.org> 1.3-2
-- Rebuild for F-13
-
-* Mon Jul 19 2010 Sven Lankes <sven@lank.es> 1.3-1
-- New upstream release
-
-* Sun Mar 28 2010 Sven Lankes <sven@lank.es> 1.2-1
-- New upstream release
-- rediff writehard patch
-
-* Mon Nov 09 2009 Sven Lankes <sven@lank.es> 1.1-1
-- New upstream release
-
-* Sun Nov 01 2009 Sven Lankes <sven@lank.es> 1.0-2
-- Add debian patches
-- Add tmux group for improved socket handling
-
-* Sat Oct 24 2009 Sven Lankes <sven@lank.es> 1.0-1
-- New upstream release
-
-* Mon Jul 13 2009 Chess Griffin <chess@chessgriffin.com> 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 <chess@chessgriffin.com> 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 <chess@chessgriffin.com> 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 <chess@chessgriffin.com> 0.8-3
-- Remove fixperms.patch and instead pass them at make install stage.
-
-* Sat Jun 20 2009 Chess Griffin <chess@chessgriffin.com> 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 <chess@chessgriffin.com> 0.8-1
-- Initial RPM release.
+%autochangelog

diff --git a/bash_completion_tmux.sh b/bash_completion_tmux.sh
new file mode 100644
index 0000000..74728b9
--- /dev/null
+++ b/bash_completion_tmux.sh
@@ -0,0 +1,105 @@
+# START tmux completion
+# This file is in the public domain
+# See: http://www.debian-administration.org/articles/317 for how to write more.
+# Usage: Put "source bash_completion_tmux.sh" into your .bashrc
+_tmux() 
+{
+    local cur prev opts
+    COMPREPLY=()
+    cur="${COMP_WORDS[COMP_CWORD]}"
+    prev="${COMP_WORDS[COMP_CWORD-1]}"
+    
+    opts=" \
+    attach-session \
+    bind-key \
+    break-pane \
+    capture-pane \
+    choose-client \
+    choose-session \
+    choose-window \
+    clear-history \
+    clock-mode \
+    command-prompt \
+    confirm-before \
+    copy-buffer \
+    copy-mode \
+    delete-buffer \
+    detach-client \
+    display-message \
+    display-panes \
+    down-pane \
+    find-window \
+    has-session \
+    if-shell \
+    join-pane \
+    kill-pane \
+    kill-server \
+    kill-session \
+    kill-window \
+    last-window \
+    link-window \
+    list-buffers \
+    list-clients \
+    list-commands \
+    list-keys \
+    list-panes \
+    list-sessions \
+    list-windows \
+    load-buffer \
+    lock-client \
+    lock-server \
+    lock-session \
+    move-window \
+    new-session \
+    new-window \
+    next-layout \
+    next-window \
+    paste-buffer \
+    pipe-pane \
+    previous-layout \
+    previous-window \
+    refresh-client \
+    rename-session \
+    rename-window \
+    resize-pane \
+    respawn-window \
+    rotate-window \
+    run-shell \
+    save-buffer \
+    select-layout \
+    select-pane \
+    select-prompt \
+    select-window \
+    send-keys \
+    send-prefix \
+    server-info \
+    set-buffer \
+    set-environment \
+    set-option \
+    set-window-option \
+    show-buffer \
+    show-environment \
+    show-messages \
+    show-options \
+    show-window-options \
+    source-file \
+    split-window \
+    start-server \
+    suspend-client \
+    swap-pane \
+    swap-window \
+    switch-client \
+    unbind-key \
+    unlink-window \
+    up-pane"
+
+    COMPREPLY=($(compgen -W "${opts}" -- ${cur}))  
+    return 0
+
+}
+complete -F _tmux tmux
+
+# END tmux completion
+
+
+ 	  	 

diff --git a/tmux.spec b/tmux.spec
index 54305f6..b95d916 100644
--- a/tmux.spec
+++ b/tmux.spec
@@ -2,10 +2,10 @@ Name:           tmux
 Version:        3.6b
 Release:        %autorelease
 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/
 Source0:        https://github.com/tmux/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
+Source1:        bash_completion_tmux.sh
 Source2:        tmux@.service
 Source3:        README.polkit
 
@@ -48,6 +48,9 @@ as GNU Screen.
 
 %install
 %make_install
+
+# Install the bash completion file
+install -Dpm 644 %{SOURCE1} %{buildroot}%{_datadir}/bash-completion/completions/tmux
 # Install the systemd file
 install -Dpm 644 %{SOURCE2} %{buildroot}%{_unitdir}/tmux@.service
 # Install the polkit example file
@@ -82,6 +85,7 @@ fi
 %doc CHANGES README* example_tmux.conf README.polkit
 %{_bindir}/tmux
 %{_mandir}/man1/tmux.1.*
+%{_datadir}/bash-completion/completions/tmux
 %{_unitdir}/tmux@.service
 
 %changelog

                 reply	other threads:[~2026-06-26 14:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178248564715.1.6988173897380051218.rpms-tmux-b9111ba0c9b5@fedoraproject.org \
    --to=filiperosset@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox