File sl.spec of Package sl
#
# spec file for package sl
#
# Copyright (c) 2023 SUSE LLC
# 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 https://bugs.opensuse.org/
#
Name: sl
Version: 5.05
Release: 0
Summary: Steam Locomotive in ASCII art
# The warranty claim is a bit different, but the rights are the same as in ISC
License: ISC
Group: Amusements/Toys/Other
URL: https://github.com/eyJhb/sl
Source: https://github.com/eyJhb/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: ncurses-devel
Conflicts: python3-softlayer
%description
"sl" displays a steam locomotive running across the terminal.
It is a joke command intended to catch any mistypings of "ls".
%prep
%autosetup -p1
%build
%make_build OPTFLAGS="%{optflags}"
%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1
cp sl %{buildroot}%{_bindir}/sl
cp sl.1 %{buildroot}%{_mandir}/man1/sl.1
%files
%{_mandir}/man1/sl.1%{?ext_man}
%{_bindir}/%{name}
%doc README.md
%license LICENSE
%changelog