]> git.pld-linux.org Git - packages/tmux.git/blob - tmux.spec
- up to 2.1
[packages/tmux.git] / tmux.spec
1 # TODO:
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
7 Name:           tmux
8 Version:        2.1
9 Release:        1
10 License:        BSD
11 Group:          Applications/Terminal
12 Source0:        https://github.com/tmux/tmux/releases/download/%{version}/%{name}-%{version}.tar.gz
13 # Source0-md5:  74a2855695bccb51b6e301383ad4818c
14 Source1:        %{name}-filedetect.vim
15 URL:            http://tmux.github.io/
16 BuildRequires:  libevent-devel
17 BuildRequires:  libutempter-devel
18 BuildRequires:  ncurses-devel
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 tmux is a terminal multiplexer: it enables a number of terminals (or
23 windows), each running a separate program, to be created, accessed,
24 and controlled from a single screen. tmux may be detached from a
25 screen and continue running in the background, then later reattached.
26
27 %description -l hu.UTF-8
28 tmux egy terminál-sokszorozó: terminálok (vagy ablakok) sokaságát
29 hozhatd létre, mindegyikben egy külön program fut, létrehozhatsz,
30 csatlakozhatsz és irányíthatod egyetlen képernyőről. tmux
31 lecsatlakozhat a képernyőről és folytathatja a futását a háttérben, és
32 később újracsatlakozhatsz.
33
34 %description -l pl.UTF-8
35 tmux to multiplekser terminali: pozwala na tworzenie wielu terminali
36 (lub okien) z osobnymi programami, dostęp do nich i sterowanie z
37 pojedynczego ekranu. tmux może być odłączony od ekranu i nadal działać
38 w tle, a następnie ponownie podłączony.
39
40 %package -n vim-syntax-tmux
41 Summary:        Vim syntax file to tmux config files
42 Summary(hu.UTF-8):      Vim syntax fájl a tmux konfigurációs fájljához
43 Summary(pl.UTF-8):      Plik składni Vima dla plików konfiguracyjnych tmuksa
44 Group:          Applications/Editors/Vim
45 Requires:       vim-rt
46
47 %description -n vim-syntax-tmux
48 Vim syntax file to tmux config files.
49
50 %description -n vim-syntax-tmux -l hu.UTF-8
51 Vim syntax fájl a tmux konfigurációs fájljához.
52
53 %package -n bash-completion-tmux
54 Summary:        Bash completion for tmux
55 Summary(pl.UTF-8):      Bashowe dopełnianie poleceń dla tmuksa
56 Group:          Applications/Shells
57 Requires:       %{name} = %{version}-%{release}
58 Requires:       bash-completion
59
60 %description -n bash-completion-tmux
61 This package provides bash-completion for tmux.
62
63 %description -n bash-completion-tmux -l pl.UTF-8
64 Ten pakiet dostarcza bashowe dopełnianie składni dla polecenia tmux.
65
66 %prep
67 %setup -q
68
69 %build
70 %{__aclocal}
71 %{__autoconf}
72 %configure \
73         CPPFLAGS="-I/usr/include/ncursesw"
74
75 %{__make}
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79
80 %{__make} install \
81         DESTDIR=$RPM_BUILD_ROOT \
82         PREFIX=%{_prefix}
83
84 install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{ftdetect,syntax}
85 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/ftdetect/tmux.vim
86 install examples/tmux.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
87 install -d $RPM_BUILD_ROOT%{_datadir}/bash-completion
88 install examples/bash_completion_tmux.sh $RPM_BUILD_ROOT%{_datadir}/bash-completion/%{name}
89 install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
90 ln -s ../../%{_datadir}/bash-completion/%{name} $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %files
96 %defattr(644,root,root,755)
97 %doc CHANGES FAQ README TODO examples/*.conf
98 %attr(755,root,root) %{_bindir}/tmux
99 %{_mandir}/man1/tmux.1*
100
101 %files -n vim-syntax-tmux
102 %defattr(644,root,root,755)
103 %{_datadir}/vim/vimfiles/ftdetect/tmux.vim
104 %{_datadir}/vim/vimfiles/syntax/tmux.vim
105
106 %files -n bash-completion-tmux
107 %defattr(644,root,root,755)
108 %{_sysconfdir}/bash_completion.d/%{name}
109 %{_datadir}/bash-completion/%{name}
This page took 0.045474 seconds and 3 git commands to generate.