>>371
つくってみた。
置くとこあればsrpm置いてもいいけど、
ホスト情報が出ると恥ずかしいのでとりあえずspec。


%define ver 1.0
%define rel 1
%define prefix /usr/local
%define bindir %{prefix}/bin/

Summary: computer language which specialized in calculation.
Name: k
Version: %ver
Release: %rel
Group: Development/Languages
Copyright: TYOTOMI,Hideyoshi
BuildRoot: /var/tmp/k-%{PACKAGE_VERSION}-root
Source: k.tar.gz
URL: http://pc.2ch.net/test/read.cgi/unix/1010652760/357-358

%description
K is a computer language which specialized in calculation.
It is a two-line language (Two Line Language),
and syntax is very easy and consists of the first number and the second number.

%prep
%setup
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{bindir}

%build
gcc k.c -o k

%install
install -m755 k $RPM_BUILD_ROOT%{bindir}

%clean
rm -rf $RPM_BUILD_ROOT

%post

%files
%{bindir}k