Updates for CentOS 8

This commit is contained in:
root
2019-09-29 13:58:38 +02:00
parent 5b0e3fef09
commit 9cbb068cea
7 changed files with 172 additions and 16 deletions

View File

@@ -2,7 +2,7 @@
Name: tmux
Version: 3.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A terminal multiplexer
# Most of the source is ISC licensed; some of the files in compat/ are 2 and
@@ -12,6 +12,7 @@ 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.conf
BuildRequires: gcc
BuildRequires: pkgconfig(libevent)
@@ -39,6 +40,7 @@ as GNU Screen.
%make_install
# bash completion
install -Dpm 644 %{SOURCE1} %{buildroot}%{_datadir}/bash-completion/completions/tmux
install -Dpm 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/tmux.conf
%post
if [ "$1" = 1 ]; then
@@ -64,9 +66,12 @@ fi
%{_bindir}/tmux
%{_mandir}/man1/tmux.1.*
%{_datadir}/bash-completion/completions/tmux
%config(noreplace) %{_sysconfdir}/tmux.conf
%changelog
* Sun Sep 29 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Default tmux config added.
* Fri Aug 16 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Initial to version 3.0 for CentOS.