1 |
%define name open |
%define name open |
2 |
%define version 1.4 |
%define version 1.4 |
3 |
%define release %mkrel 21 |
%define release %mkrel 22 |
4 |
Summary: A tool which will start a program on a virtual console |
Summary: A tool which will start a program on a virtual console |
5 |
Name: %{name} |
Name: %{name} |
6 |
Version: %{version} |
Version: %{version} |
9 |
Group: Terminals |
Group: Terminals |
10 |
Source: ftp://sunsite.unc.edu/pub/Linux/utils/console/%{name}-%{version}.tar.bz2 |
Source: ftp://sunsite.unc.edu/pub/Linux/utils/console/%{name}-%{version}.tar.bz2 |
11 |
Patch0: %{name}-1.4-includes.patch |
Patch0: %{name}-1.4-includes.patch |
12 |
Buildroot: %{_tmppath}/%{name}-%{version}-buildroot |
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot |
13 |
|
Requires(pre): filesystem >= 2.1.9-18 |
14 |
|
|
15 |
%description |
%description |
16 |
The open command starts a specified command with the first available virtual |
The open command starts a specified command with the first available virtual |
30 |
mkdir -p $RPM_BUILD_ROOT/{%{_bindir},%{_mandir}/man1} |
mkdir -p $RPM_BUILD_ROOT/{%{_bindir},%{_mandir}/man1} |
31 |
|
|
32 |
make BINDIR=$RPM_BUILD_ROOT%{_bindir} MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 install |
make BINDIR=$RPM_BUILD_ROOT%{_bindir} MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 install |
|
mkdir -p $RPM_BUILD_ROOT/bin |
|
|
mv $RPM_BUILD_ROOT%{_bindir}/open $RPM_BUILD_ROOT/bin |
|
|
ln -s /bin/open $RPM_BUILD_ROOT%{_bindir}/open |
|
33 |
|
|
34 |
%clean |
%clean |
35 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
36 |
|
|
37 |
%files |
%files |
38 |
%defattr(-,root,root) |
%defattr(-,root,root) |
|
/bin/open |
|
39 |
%{_bindir}/open |
%{_bindir}/open |
40 |
%{_bindir}/switchto |
%{_bindir}/switchto |
41 |
%{_mandir}/man1/open.* |
%{_mandir}/man1/open.* |