]>
Commit | Line | Data |
---|---|---|
21dfa491 ZU |
1 | # TODO: |
2 | # - vim doesn't detect filetype | |
ed019aa1 | 3 | # - pass LDFLAGS (fix as-needed problem first) |
df1e8c4e ZU |
4 | Summary: tmux is a terminal multiplexer |
5 | Summary(hu.UTF-8): tmux egy terminál-sokszorozó | |
6 | Name: tmux | |
3cebd4ca | 7 | Version: 1.4 |
ee0f9a2f | 8 | Release: 2 |
df1e8c4e ZU |
9 | License: BSD |
10 | Group: Applications/Terminal | |
11 | Source0: http://dl.sourceforge.net/tmux/%{name}-%{version}.tar.gz | |
3cebd4ca | 12 | # Source0-md5: 0bfc7dd9a5bab192406167589c716a21 |
df1e8c4e ZU |
13 | Source1: %{name}-filedetect.vim |
14 | Patch0: %{name}-makefile.patch | |
05eab483 | 15 | BuildRequires: libevent-devel |
6390aa10 | 16 | BuildRequires: ncurses-devel |
df1e8c4e ZU |
17 | URL: http://tmux.sourceforge.net/ |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | tmux is a terminal multiplexer: it enables a number of terminals (or | |
22 | windows), each running a separate program, to be created, accessed, | |
23 | and controlled from a single screen. tmux may be detached from a | |
24 | screen and continue running in the background, then later reattached. | |
25 | ||
26 | %description -l hu.UTF-8 | |
27 | tmux egy terminál-sokszorozó: terminálok (vagy ablakok) sokaságát | |
28 | hozhatd létre, mindegyikben egy külön program fut, létrehozhatsz, | |
29 | csatlakozhatsz és irányíthatod egyetlen képernyőről. tmux | |
30 | lecsatlakozhat a képernyőről és folytathatja a futását a háttérben, és | |
31 | később újracsatlakozhatsz. | |
32 | ||
33 | %package -n vim-syntax-tmux | |
34 | Summary: Vim syntax file to tmux config files | |
35 | Summary(hu.UTF-8): Vim syntax fájl a tmux konfigurációs fájljához | |
36 | Group: Applications/Editors/Vim | |
37 | ||
38 | %description -n vim-syntax-tmux | |
39 | Vim syntax file to tmux config files. | |
40 | ||
41 | %description -n vim-syntax-tmux -l hu.UTF-8 | |
42 | Vim syntax fájl a tmux konfigurációs fájljához. | |
43 | ||
ee0f9a2f ZU |
44 | %package -n bash-completion-tmux |
45 | Summary: Bash completion for tmux | |
46 | Group: Applications/Shell | |
47 | ||
48 | %description -n bash-completion-tmux | |
49 | This package provides bash-completion for tmux. | |
50 | ||
df1e8c4e ZU |
51 | %prep |
52 | %setup -q | |
53 | %patch0 -p1 | |
54 | ||
55 | %build | |
56 | ./configure | |
57 | CFLAGS="%{rpmcflags} -I/usr/include/ncursesw" %{__make} \ | |
05eab483 | 58 | CC="%{__cc}" \ |
df1e8c4e ZU |
59 | PREFIX=%{_prefix} |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %{__make} install \ | |
65 | DESTDIR=$RPM_BUILD_ROOT \ | |
66 | PREFIX=%{_prefix} | |
67 | ||
68 | install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{ftdetect,syntax} | |
69 | install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/ftdetect/tmux.vim | |
70 | install examples/tmux.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax | |
ee0f9a2f ZU |
71 | install -d $RPM_BUILD_ROOT%{_datadir}/bash-completion |
72 | install examples/bash_completion_tmux.sh $RPM_BUILD_ROOT%{_datadir}/bash-completion/%{name} | |
73 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d | |
74 | ln -s ../../%{_datadir}/bash-completion/%{name} $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d | |
df1e8c4e ZU |
75 | |
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %doc CHANGES FAQ NOTES TODO examples/*.conf | |
82 | %attr(755,root,root) %{_bindir}/* | |
83 | %{_mandir}/man1/tmux* | |
84 | ||
85 | %files -n vim-syntax-tmux | |
86 | %defattr(644,root,root,755) | |
87 | %{_datadir}/vim/vimfiles/ftdetect/tmux.vim | |
88 | %{_datadir}/vim/vimfiles/syntax/tmux.vim | |
ee0f9a2f ZU |
89 | |
90 | %files -n bash-completion-tmux | |
91 | %defattr(644,root,root,755) | |
92 | %{_sysconfdir}/bash_completion.d/%{name} | |
93 | %{_datadir}/bash-completion/%{name} |