File gash.spec of Package gash

#
# spec file for package guile-gash
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2023 Jonathan Brielmaier <j.brielmaier@opensuse.org>
#
# 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:           gash
Version:        0.3.0
Release:        0
Summary:        POSIX-compatible shell written in Guile
License:        GPL-3.0-or-later AND CC0-1.0
Group:          System/Shells
URL:            https://savannah.nongnu.org/projects/gash/
Source0:        http://download.savannah.nongnu.org/releases/gash/gash-%{version}.tar.gz
Source1:        http://download.savannah.nongnu.org/releases/gash/gash-%{version}.tar.gz.sig
BuildRequires:  guile-devel
BuildRequires:  pkg-config
Requires:       guile >= 2.2
Requires(pre):  %{install_info_prereq}

%description
Gash is a POSIX-compatible shell written in Guile. It provides a shell
interface as well as a Guile library for parsing shell scripts. It is designed
to bootstrap Bash as part of Guix bootstrap effort.

Be aware, that at the moment it is extremly limited and extremly slow. So it's
not recommended to use Gash as your shell.

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
%make_install

%check
make check

%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%files
%license COPYING COPYING.CC0
%doc NEWS README
%{_bindir}/gash
%{_datadir}/guile*
%{_infodir}/gash.info.gz
%{_libdir}/guile*

%changelog
openSUSE Build Service is sponsored by