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