# TODO:
# - vim doesn't detect filetype
+#
+# Conditional build:
+%bcond_without systemd # without system integration
+
+%define commit e809c2ec359b0fd6151cf33929244b7a7d637119
+
Summary: tmux - a terminal multiplexer
Summary(hu.UTF-8): tmux egy terminál-sokszorozó
Summary(pl.UTF-8): tmux - multiplekser terminali
Name: tmux
-Version: 3.2a
-Release: 1
+Version: 3.3a
+Release: 3
License: ISC
Group: Applications/Terminal
#Source0Download: https://github.com/tmux/tmux/releases
-Source0: https://github.com/tmux/tmux/releases/download/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 61fba141303aeaf8d9a6931d247f2f4a
+# Source0: https://github.com/tmux/tmux/releases/download/%{version}/%{name}-%{version}.tar.gz
+Source0: https://github.com/tmux/tmux/archive/%{commit}.zip
+# Source0-md5: f8eeb580e28377656d1d60f3b29e4dad
Source1: %{name}-filedetect.vim
Source2: https://raw.githubusercontent.com/keith/tmux.vim/master/syntax/tmux.vim
# Source2-md5: cd1169a1757b515b5c57816d339c6f72
BuildRequires: ncurses-devel >= 5
BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 1.673
+%{?with_systemd:BuildRequires: systemd-devel}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Ten pakiet dostarcza bashowe dopełnianie składni dla polecenia tmux.
%prep
-%setup -q
+%setup -q -n %{name}-%{commit}
%build
+[ ! -x configure ] && ./autogen.sh
# note: on Linux use plain glibc functions instead of utf8proc
%configure \
- CPPFLAGS="%{rpmcppflags} -I/usr/include/ncursesw"
+ CPPFLAGS="%{rpmcppflags} -I/usr/include/ncursesw" \
+ %{__enable_disable systemd}
%{__make}