1 |
%define name tmux |
2 |
%define version 1.4 |
3 |
%define release %mkrel 2 |
4 |
|
5 |
Summary: Terminal multiplexer |
6 |
Name: %{name} |
7 |
Version: %{version} |
8 |
Release: %{release} |
9 |
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz |
10 |
# patch from fedora, CVE-2011-1496 |
11 |
Patch: tmux-1.0-04_dropping_unnecessary_privileges.diff |
12 |
License: BSD |
13 |
Group: Terminals |
14 |
Url: http://tmux.sourceforge.net/ |
15 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
16 |
BuildRequires: ncurses-devel, libevent-devel |
17 |
|
18 |
%description |
19 |
tmux is a "terminal multiplexer". It allows a number of terminals (or |
20 |
windows) to be accessed and controlled from a single terminal. It is |
21 |
intended to be a simple, modern, BSD-licensed alternative to programs |
22 |
such as GNU screen. |
23 |
|
24 |
%prep |
25 |
%setup -q |
26 |
%patch -p1 |
27 |
|
28 |
%build |
29 |
./configure |
30 |
%make |
31 |
|
32 |
%install |
33 |
%__rm -rf %{buildroot} |
34 |
%__install -d %{buildroot}%{_bindir} |
35 |
%__install -m 755 tmux %{buildroot}%{_bindir} |
36 |
%__install -d %{buildroot}%{_mandir}/man1 |
37 |
%__install -m 644 tmux.1 %{buildroot}%{_mandir}/man1 |
38 |
|
39 |
%clean |
40 |
%__rm -rf %{buildroot} |
41 |
|
42 |
%files |
43 |
%defattr(-,root,root) |
44 |
%doc FAQ NOTES TODO CHANGES examples/ |
45 |
%_bindir/tmux |
46 |
%_mandir/man1/tmux.* |
47 |
|
48 |
|
49 |
|