2 # - vim doesn't detect filetype
3 Summary: tmux - a terminal multiplexer
4 Summary(hu.UTF-8): tmux egy terminál-sokszorozó
5 Summary(pl.UTF-8): tmux - multiplekser terminali
10 Group: Applications/Terminal
11 #Source0Download: https://github.com/tmux/tmux/releases
12 Source0: https://github.com/tmux/tmux/releases/download/%{version}/%{name}-%{version}.tar.gz
13 # Source0-md5: 61fba141303aeaf8d9a6931d247f2f4a
14 Source1: %{name}-filedetect.vim
15 Source2: https://raw.githubusercontent.com/keith/tmux.vim/master/syntax/tmux.vim
16 # Source2-md5: cd1169a1757b515b5c57816d339c6f72
17 Source3: https://raw.githubusercontent.com/imomaliev/tmux-bash-completion/master/completions/tmux
18 # Source3-md5: 6d65c0f42c74f61602a399d7bb04a85c
19 Source4: tmux@.service
20 URL: http://tmux.github.io/
21 BuildRequires: libevent-devel
22 BuildRequires: libutempter-devel
23 BuildRequires: ncurses-devel >= 5
24 BuildRequires: pkgconfig
25 BuildRequires: rpmbuild(macros) >= 1.673
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 tmux is a terminal multiplexer: it enables a number of terminals (or
30 windows), each running a separate program, to be created, accessed,
31 and controlled from a single screen. tmux may be detached from a
32 screen and continue running in the background, then later reattached.
34 %description -l hu.UTF-8
35 tmux egy terminál-sokszorozó: terminálok (vagy ablakok) sokaságát
36 hozhatd létre, mindegyikben egy külön program fut, létrehozhatsz,
37 csatlakozhatsz és irányíthatod egyetlen képernyőről. tmux
38 lecsatlakozhat a képernyőről és folytathatja a futását a háttérben, és
39 később újracsatlakozhatsz.
41 %description -l pl.UTF-8
42 tmux to multiplekser terminali: pozwala na tworzenie wielu terminali
43 (lub okien) z osobnymi programami, dostęp do nich i sterowanie z
44 pojedynczego ekranu. tmux może być odłączony od ekranu i nadal działać
45 w tle, a następnie ponownie podłączony.
47 %package -n vim-syntax-tmux
48 Summary: Vim syntax file to tmux config files
49 Summary(hu.UTF-8): Vim syntax fájl a tmux konfigurációs fájljához
50 Summary(pl.UTF-8): Plik składni Vima dla plików konfiguracyjnych tmuksa
51 Group: Applications/Editors/Vim
54 %description -n vim-syntax-tmux
55 Vim syntax file to tmux config files.
57 %description -n vim-syntax-tmux -l hu.UTF-8
58 Vim syntax fájl a tmux konfigurációs fájljához.
60 %package -n bash-completion-tmux
61 Summary: Bash completion for tmux
62 Summary(pl.UTF-8): Bashowe dopełnianie poleceń dla tmuksa
63 Group: Applications/Shells
64 Requires: %{name} = %{version}-%{release}
65 Requires: bash-completion >= 2.0
67 %description -n bash-completion-tmux
68 This package provides bash-completion for tmux.
70 %description -n bash-completion-tmux -l pl.UTF-8
71 Ten pakiet dostarcza bashowe dopełnianie składni dla polecenia tmux.
77 # note: on Linux use plain glibc functions instead of utf8proc
79 CPPFLAGS="%{rpmcppflags} -I/usr/include/ncursesw"
84 rm -rf $RPM_BUILD_ROOT
87 DESTDIR=$RPM_BUILD_ROOT \
90 install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{ftdetect,syntax}
91 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/ftdetect/tmux.vim
92 install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
93 install -d $RPM_BUILD_ROOT%{bash_compdir}
94 sed -e '1s,#!/usr/bin/env bash,#!/bin/bash,' %{SOURCE3} > $RPM_BUILD_ROOT%{bash_compdir}/%{name}
95 install -d $RPM_BUILD_ROOT%{systemdunitdir}
96 install %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}
99 rm -rf $RPM_BUILD_ROOT
102 %defattr(644,root,root,755)
103 %doc CHANGES COPYING README
104 %attr(755,root,root) %{_bindir}/tmux
105 %{_mandir}/man1/tmux.1*
106 %{systemdunitdir}/tmux@.service
108 %files -n vim-syntax-tmux
109 %defattr(644,root,root,755)
110 %{_datadir}/vim/vimfiles/ftdetect/tmux.vim
111 %{_datadir}/vim/vimfiles/syntax/tmux.vim
113 %files -n bash-completion-tmux
114 %defattr(644,root,root,755)
115 %{bash_compdir}/%{name}