1 |
%define name open |
2 |
%define version 1.4 |
3 |
%define release %mkrel 22 |
4 |
Summary: A tool which will start a program on a virtual console |
5 |
Name: %{name} |
6 |
Version: %{version} |
7 |
Release: %{release} |
8 |
License: GPL |
9 |
Group: Terminals |
10 |
Source: ftp://sunsite.unc.edu/pub/Linux/utils/console/%{name}-%{version}.tar.bz2 |
11 |
Patch0: %{name}-1.4-includes.patch |
12 |
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot |
13 |
Requires(pre): filesystem >= 2.1.9-18 |
14 |
|
15 |
%description |
16 |
The open command starts a specified command with the first available virtual |
17 |
console, or on a virtual console that you specify. |
18 |
|
19 |
Install the open package if you regularly use virtual consoles to run programs. |
20 |
|
21 |
%prep |
22 |
%setup -q |
23 |
%patch0 -p1 |
24 |
|
25 |
%build |
26 |
%make CFLAGS="$RPM_OPT_FLAGS" |
27 |
|
28 |
%install |
29 |
rm -rf $RPM_BUILD_ROOT |
30 |
mkdir -p $RPM_BUILD_ROOT/{%{_bindir},%{_mandir}/man1} |
31 |
|
32 |
make BINDIR=$RPM_BUILD_ROOT%{_bindir} MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 install |
33 |
|
34 |
%clean |
35 |
rm -rf $RPM_BUILD_ROOT |
36 |
|
37 |
%files |
38 |
%defattr(-,root,root) |
39 |
%{_bindir}/open |
40 |
%{_bindir}/switchto |
41 |
%{_mandir}/man1/open.* |
42 |
%{_mandir}/man1/switchto.* |
43 |
|
44 |
|
45 |
|
46 |
|