%global commit d4c812b7c40da28127168a860470b3a6983abba0 %global checkout_date 20250426 %global short_commit %(c=%{commit}; echo ${c:0:7}) %global snapshot .%{checkout_date}git%{short_commit} %global contrib_commit e12501e0b2993bc09495e45c39d5c4abeb8e25f7 Name: blesh Version: 4.0 Release: 0%{?snapshot}%{?dist} Summary: Bash Line Editor (ble.sh) License: BSD-3-Clause URL: https://github.com/akinomyoga/ble.sh Source0: https://github.com/akinomyoga/ble.sh/archive/%{commit}/%{name}-%{commit}.tar.gz Source1: https://github.com/akinomyoga/blesh-contrib/archive/%{contrib_commit}/blesh-contrib-%{contrib_commit}.tar.gz BuildArch: noarch BuildRequires: make BuildRequires: gawk Requires: gawk %description Bash Line Editor (ble.sh) - a replacement for Bash's line editor with enhanced features. %prep %setup -q -D -T -b0 -n ble.sh-%{commit} %setup -q -D -T -b1 -n ble.sh-%{commit} rmdir contrib ln -s -v ../blesh-contrib-%{contrib_commit} contrib %build make all %install make install \ DESTDIR="%{buildroot}" \ PREFIX="/usr" \ INSDIR_LICENSE="%{buildroot}/usr/share/licenses/%{name}" %files %{_datadir}/%{name} %{_datadir}/licenses/%{name} %{_docdir}/%{name} %changelog * Sat Apr 26 2025 Ivan Mironov - 4.0-0.0.20250426gitd4c812b - Initial packaging