File sl.spec of Package sl
#
# spec file for package sl
#
# Copyright (c) 2018 SUSE LINUX 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/
#
# norootforbuild
Name: sl
Version: 5.03
Release: 0
Summary: Ultimate Joke Command
License: Public domain, Freeware
Group: System/Console
Url: https://github.com/mtoyoda/sl
Source: %{name}-%{version}.tar.bz2
Patch1: %{name}.Makefile.patch
BuildRequires: ncurses-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 (mtoyoda@acm.org)
%prep
%setup -c
%patch1
%build
%__make CFLAGS='%{optflags}' %{?_smp_mflags}
%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1
%makeinstall
%clean
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_mandir}/man1/sl.1%{ext_man}
%changelog