File rc.spec of Package rc

#
# spec file for package harec
#
# Copyright (c) 2023 SUSE LLC
#
# 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/
#


%define  haredir  %{_usrsrc}/hare
Name:           rc
Release:        0
Version:        0+git.1710699033.2e5495e
Summary:        A simple shell
URL:            https://git.sr.ht/~sircmpwn/rc
Source0:        %{name}-%{version}.tar.zst
BuildRequires:  make
BuildRequires:  hare
BuildRequires:  madeline
BuildRequires:  scdoc
BuildRequires:  zstd
# For testing
BuildRequires:  bc
License:        GPL-3.0-only

%description
rc is an experimental shell for Unix inspired by Plan 9's rc.

More information on the original rc is at
https://doc.cat-v.org/plan_9/4th_edition/papers/rc, or
https://en.wikipedia.org/wiki/Rc.

%prep
%autosetup -p1

%build
%make_build


%install
# Shells should go to /bin
%make_install BINDIR="%{_bindir}" PREFIX=/ MANDIR="%{_mandir}"

%check
make check

%files
/bin/%{name}
%license COPYING
%doc     README.md
%{_mandir}/man1/rc.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by