%global forgeurl https://github.com/aureliojargas/clitest Name: clitest Version: 0.4.0 Release: 1%{?dist} Summary: Command Line Tester License: MIT URL: %{forgeurl} %forgemeta Source: %{forgesource} BuildArch: noarch BuildRequires: /usr/bin/shellcheck BuildRequires: /usr/bin/checkbashisms BuildRequires: bash dash mksh zsh %description clitest is a portable POSIX shell script that performs automatic testing in \ Unix command lines. It's the same concept as in Python's doctest module: you document both the \ commands and their expected output, using the familiar interactive prompt \ format, and a specialized tool tests them. %prep %forgesetup %build #no build, only shell script %check checkbashisms --posix clitest shellcheck clitest bash ./clitest --first --progress none test.md dash ./clitest --first --progress none test.md mksh ./clitest --first --progress none test.md sh ./clitest --first --progress none test.md zsh ./clitest --first --progress none test.md %install install -D -m755 -p clitest %{buildroot}%{_bindir}/clitest %files %license LICENSE.txt %doc README.md %{_bindir}/clitest %changelog * Fri Oct 02 2020 Jonny Heggheim - 0.4.0-1 - Initial package