File sl.spec of Package sl
# spec file for package sl (Version 3.03)
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 <vodoo@vakw.ch>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
Name: sl
Version: 3.03
Release: 0
License: Copyright Toyoda Masashi (toyoda@is.titech.ac.jp)
Group: Amusements/Toys/Other
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ncurses-devel
Url: http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/index_e.html
Source: %{name}-%{version}.tar.bz2
Patch1: %{name}.Makefile.patch
Patch2: %{name}.manpage.patch
Patch3: %{name}.c.patch
#
Summary: Steam Locomotive in ASCII art
%description
SL (Steam Locomotive) runs across your terminal when you type "sl" as you meant to type "ls". It's just a joke command, and not useful at all.
Author:
--------
Toyoda Masashi
%prep
%setup
%patch1
%patch2
%patch3
sed -i -e "s/usleep(20000);/usleep(30000);/" sl.c
%build
%__make OPTFLAGS="$RPM_OPT_FLAGS" %{?_smp_flags}
%install
install -d %{buildroot}/usr/bin
install -d %{buildroot}%{_mandir}/man1
%makeinstall
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root,-)
%{_mandir}/man1/sl.1%{ext_man}
%{_bindir}/%{name}