diff --git a/.gitignore b/.gitignore
index bd9765c..50e8c80 100644
--- a/.gitignore
+++ b/.gitignore
@@ -22,3 +22,4 @@ tmux-1.3.tar.gz
 /tmux-3.1c.tar.gz
 /tmux-3.2a.tar.gz
 /tmux-3.3a.tar.gz
+/tmux-b202a2f1b517a3de7141fc35fbd9e39ed5ac5284.tar.gz
diff --git a/sources b/sources
index fe79608..d7b7eb4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (tmux-3.3a.tar.gz) = 29a846df7d93601c42a22f84f606931dc65da1f70b67d351d0425f77ea3affe3e8218b2940d42cd3dadf3cd1aa95032daad3ecb14fbff0f69939d1beae0498c7
+SHA512 (tmux-b202a2f1b517a3de7141fc35fbd9e39ed5ac5284.tar.gz) = c198961cf5d5520810b235e7db5f4d7345d070e7003609c7efd4c104066b18eb783e91a9788dca69b0266b6998acf89f83f6eb46b9f333e56d688b099a9f9922
diff --git a/tmux.spec b/tmux.spec
index 202f294..ae7e3b0 100644
--- a/tmux.spec
+++ b/tmux.spec
@@ -1,18 +1,26 @@
 %global _hardened_build 1
 
+
 Name:           tmux
+%global forgeurl https://github.com/tmux/%{name}
+%global commit   b202a2f1b517a3de7141fc35fbd9e39ed5ac5284
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%forgemeta
+
 Version:        3.3a
-Release:        4%{?dist}
+# forge meta appends commit info
+Release:        5%{?dist}
 Summary:        A terminal multiplexer
 
 # Most of the source is ISC licensed; some of the files in compat/ are 2 and
 # 3 clause BSD licensed.
 License:        ISC and BSD
 URL:            https://tmux.github.io/
-Source0:        https://github.com/tmux/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
+Source0:        %{forgesource}
 # Examples has been removed - so include the bash_completion here
 Source1:        bash_completion_tmux.sh
 
+BuildRequires:  byacc
 BuildRequires:  gcc
 BuildRequires:  systemd-devel
 BuildRequires:  libutempter-devel
@@ -21,6 +29,9 @@ BuildRequires:  pkgconfig(libevent_core) >= 2
 BuildRequires:  pkgconfig(tinfo)
 BuildRequires:  pkgconfig(ncurses)
 BuildRequires:  pkgconfig(ncursesw)
+%if "%0{?commit}" != "0"
+BuildRequires:  automake
+%endif
 
 %description
 tmux is a "terminal multiplexer."  It enables a number of terminals (or
@@ -29,9 +40,12 @@ intended to be a simple, modern, BSD-licensed alternative to programs such
 as GNU Screen.
 
 %prep
-%autosetup
+%forgesetup
 
 %build
+%if "%0{?commit}" != "0"
+sh ./autogen.sh
+%endif
 %configure --enable-systemd
 %make_build
 
@@ -68,6 +82,10 @@ fi
 %{_datadir}/bash-completion/completions/tmux
 
 %changelog
+* 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