Name:           oils-for-unix
Version:        0.26.0
Release:        1%{?dist}
Summary:        Upgrade path from bash to a better language and runtime

License:        Apache 2.0
URL:            https://oils.pub
Source0:        https://oils.pub/download/%{name}-%{version}.tar.gz

BuildRequires:  gcc-c++
BuildRequires:  readline-devel
Requires:       readline

%description
Oils is a small tool that unifies shell, Python, regexes, JSON, and
YAML. It's our upgrade path from bash to a better language and
runtime! osh runs your existing shell scripts; ysh is for Python and
JavaScript users who avoid shell!


%prep
%autosetup


%build
./configure --prefix=%{buildroot}/usr --with-readline
_build/oils.sh


%install
./install _bin/cxx-opt-sh/oils-for-unix


%files
%license LICENSE.txt
%doc README-native.txt
%{_bindir}/%{name}
%{_bindir}/osh
%{_bindir}/ysh
%{_mandir}/man1/osh.1*


%changelog
* Sat Jan 11 2025 Tonkünstler-on-the-Bund <copr@tonkunstler-on-the-bund.com> - 0.26.0-1
- Bump version

* Sat Jan 04 2025 Tonkünstler-on-the-Bund <copr@tonkunstler-on-the-bund.com> - 0.25.0-1
- Bump version

* Sun Nov 17 2024 Tonkünstler-on-the-Bund <copr@tonkunstler-on-the-bund.com> - 0.24.0-1
- Bump version

* Thu Sep 26 2024 Tonkünstler-on-the-Bund <copr@tonkunstler-on-the-bund.com> - 0.23.0-1
- First oils-for-unix package