2 # - vim doesn't detect filetype
3 # - pass LDFLAGS (fix as-needed problem first)
4 Summary: tmux - a terminal multiplexer
5 Summary(hu.UTF-8): tmux egy terminál-sokszorozó
6 Summary(pl.UTF-8): tmux - multiplekser terminali
11 Group: Applications/Terminal
12 Source0: https://github.com/tmux/tmux/releases/download/%{version}/%{name}-%{version}.tar.gz
13 # Source0-md5: bd95ee7205e489c62c616bb7af040099
14 Source1: %{name}-filedetect.vim
15 Source2: https://raw.githubusercontent.com/keith/tmux.vim/master/syntax/tmux.vim
16 # Source2-md5: 49b70ec6d65ba3b22e5007a3bbd7d2e4
17 Source3: https://raw.githubusercontent.com/przepompownia/tmux-bash-completion/master/completions/tmux
18 # Source3-md5: 5b9e87301e09fab4c30d0d0f83fe6cf5
19 URL: http://tmux.github.io/
20 BuildRequires: libevent-devel
21 BuildRequires: libutempter-devel
22 BuildRequires: ncurses-devel
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 tmux is a terminal multiplexer: it enables a number of terminals (or
27 windows), each running a separate program, to be created, accessed,
28 and controlled from a single screen. tmux may be detached from a
29 screen and continue running in the background, then later reattached.
31 %description -l hu.UTF-8
32 tmux egy terminál-sokszorozó: terminálok (vagy ablakok) sokaságát
33 hozhatd létre, mindegyikben egy külön program fut, létrehozhatsz,
34 csatlakozhatsz és irányíthatod egyetlen képernyőről. tmux
35 lecsatlakozhat a képernyőről és folytathatja a futását a háttérben, és
36 később újracsatlakozhatsz.
38 %description -l pl.UTF-8
39 tmux to multiplekser terminali: pozwala na tworzenie wielu terminali
40 (lub okien) z osobnymi programami, dostęp do nich i sterowanie z
41 pojedynczego ekranu. tmux może być odłączony od ekranu i nadal działać
42 w tle, a następnie ponownie podłączony.
44 %package -n vim-syntax-tmux
45 Summary: Vim syntax file to tmux config files
46 Summary(hu.UTF-8): Vim syntax fájl a tmux konfigurációs fájljához
47 Summary(pl.UTF-8): Plik składni Vima dla plików konfiguracyjnych tmuksa
48 Group: Applications/Editors/Vim
51 %description -n vim-syntax-tmux
52 Vim syntax file to tmux config files.
54 %description -n vim-syntax-tmux -l hu.UTF-8
55 Vim syntax fájl a tmux konfigurációs fájljához.
57 %package -n bash-completion-tmux
58 Summary: Bash completion for tmux
59 Summary(pl.UTF-8): Bashowe dopełnianie poleceń dla tmuksa
60 Group: Applications/Shells
61 Requires: %{name} = %{version}-%{release}
62 Requires: bash-completion
64 %description -n bash-completion-tmux
65 This package provides bash-completion for tmux.
67 %description -n bash-completion-tmux -l pl.UTF-8
68 Ten pakiet dostarcza bashowe dopełnianie składni dla polecenia tmux.
77 CPPFLAGS="-I/usr/include/ncursesw"
82 rm -rf $RPM_BUILD_ROOT
85 DESTDIR=$RPM_BUILD_ROOT \
88 install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{ftdetect,syntax}
89 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/ftdetect/tmux.vim
90 install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
91 install -d $RPM_BUILD_ROOT%{_datadir}/bash-completion
92 install %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/bash-completion/%{name}
93 install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
94 ln -s ../../%{_datadir}/bash-completion/%{name} $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
97 rm -rf $RPM_BUILD_ROOT
100 %defattr(644,root,root,755)
101 %doc CHANGES FAQ README TODO
102 %attr(755,root,root) %{_bindir}/tmux
103 %{_mandir}/man1/tmux.1*
105 %files -n vim-syntax-tmux
106 %defattr(644,root,root,755)
107 %{_datadir}/vim/vimfiles/ftdetect/tmux.vim
108 %{_datadir}/vim/vimfiles/syntax/tmux.vim
110 %files -n bash-completion-tmux
111 %defattr(644,root,root,755)
112 %{_sysconfdir}/bash_completion.d/%{name}
113 %{_datadir}/bash-completion/%{name}