screen インストール(開発版)
ソース取得
cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/screen co screen
( git clone git://git.savannah.gnu.org/screen.git )
cd screen
./mktar.pl
cp screen-4.0.3.tar.gz $HOME/RPM/SOURCES
cd $HOME/RPM/SOURCES
wget ftp://www.dekaino.net/pub/screen/screen-4.0.2-deadlock-patch
wget ftp://www.dekaino.net/pub/screen/screen-4.0.2-hankanacopy-patch
wget ftp://www.dekaino.net/pub/screen/screen-4.0.2-patch-cjkwidth-cvs-2006052001
specファイル
Summary: screen
Name: screen
Version: 4.0.3
Release: 1
Source0: %{name}-%{version}.tar.gz
Patch1: screen-4.0.2-deadlock-patch
Patch2: screen-4.0.2-hankanacopy-patch
Patch3: screen-4.0.2-patch-cjkwidth-cvs-2006052001
License: GPL
Group: Applications/System
BuildRoot: %{_builddir}/%{name}-root
%description
screen with 256 colors
%define prefix /usr/local
%prep
%setup -q
%patch1
%patch2
%patch3
%build
./configure --prefix=%{prefix} --enable-colors256
make
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{prefix}/man/man1/screen.1
%{prefix}/info/dir
%{prefix}/info/screen.info
%{prefix}/share/screen/utf8encodings/a1
%{prefix}/share/screen/utf8encodings/cc
%{prefix}/share/screen/utf8encodings/d6
%{prefix}/share/screen/utf8encodings/c2
%{prefix}/share/screen/utf8encodings/c8
%{prefix}/share/screen/utf8encodings/c4
%{prefix}/share/screen/utf8encodings/cd
%{prefix}/share/screen/utf8encodings/c3
%{prefix}/share/screen/utf8encodings/04
%{prefix}/share/screen/utf8encodings/c7
%{prefix}/share/screen/utf8encodings/18
%{prefix}/share/screen/utf8encodings/19
%{prefix}/share/screen/utf8encodings/03
%{prefix}/share/screen/utf8encodings/02
%{prefix}/share/screen/utf8encodings/c6
%{prefix}/share/screen/utf8encodings/bf
%{prefix}/share/screen/utf8encodings/01
%{prefix}/bin/screen-4.0.3
%{prefix}/bin/screen