%define debug_package %{nil}
Name: babashka
Version: 1.12.195
Release: 1%{?dist}
Summary: Babashka is a native Clojure interpreter for scripting with fast startup
Group: Development/Tools
License: EPL-1.0

URL: https://github.com/babashka/babashka

Source0:        https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}-linux-amd64-static.tar.gz
Source1:        https://raw.githubusercontent.com/babashka/babashka/v%{version}/LICENSE
ExclusiveArch: x86_64

%description
Babashka is a native Clojure interpreter for scripting with fast startup. Its main goal is to leverage
Clojure in places where you would be using bash otherwise.

%prep
tar zxvf '%{SOURCE0}'

%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_pkgdocdir}
install -pm 755 %{_builddir}/bb %{buildroot}%{_bindir}/bb
install -pm 644 %{SOURCE1} %{buildroot}%{_pkgdocdir}/LICENSE

%files
%{_bindir}/bb
%license %{_pkgdocdir}/LICENSE

%changelog
* Thu Nov 28 2024 Markku Korkeala <markku.korkeala@iki.fi> - 1.12.195-1
- Update to 1.12.195

* Tue Jun 04 2024 Markku Korkeala <markku.korkeala@iki.fi> - 1.3.190-2
- Use ExclusiveArch, set debug_package nil

* Tue Jun 04 2024 Markku Korkeala <markku.korkeala@iki.fi> - 1.3.190-1
- Update to 1.3.188

* Wed Feb 21 2024 Markku Korkeala <markku.korkeala@iki.fi> - 1.3.188-1
- Update to 1.3.188

* Tue Oct 03 2023 Markku Korkeala <markku.korkeala@iki.fi> - 1.3.185-1
- Update to 1.3.185

* Wed Apr 26 2023 Markku Korkeala <markku.korkeala@iki.fi> - 1.3.178-1
- Update to 1.3.178

* Fri Oct 28 2022 Markku Korkeala <markku.korkeala@iki.fi> - 1.0.164-1
- Update to 1.0.164

* Sun Sep 11 2022 Markku Korkeala <markku.korkeala@iki.fi> - 0.9.162-1
- Update to 0.9.162
- Get license file from version tag source tree

* Thu Aug 04 2022 Markku Korkeala <markku.korkeala@iki.fi> - 0.9.161-1
- Initial packaging