e4bc038
%global forgeurl https://github.com/aureliojargas/clitest
e4bc038
%global tag %{version}
e4bc038
e4bc038
Name:    clitest
e4bc038
Version: 0.4.0
e4bc038
Release: 2%{?dist}
e4bc038
Summary: Command Line Tester
e4bc038
e4bc038
License: MIT
e4bc038
URL:     %{forgeurl}
e4bc038
e4bc038
%forgemeta
e4bc038
Source:  %{forgesource}
e4bc038
e4bc038
BuildArch:     noarch
ccc4f28
BuildRequires: /usr/bin/perl
e4bc038
BuildRequires: bash dash mksh zsh
e4bc038
e4bc038
Requires: diffutils
e4bc038
Requires: sed
e4bc038
Requires: grep
e4bc038
Suggests: perl
e4bc038
e4bc038
%description
e4bc038
clitest is a portable POSIX shell script that performs automatic testing in \
e4bc038
Unix command lines.
e4bc038
e4bc038
It's the same concept as in Python's doctest module: you document both the \
e4bc038
commands and their expected output, using the familiar interactive prompt \
e4bc038
format, and a specialized tool tests them.
e4bc038
e4bc038
%prep
e4bc038
%forgesetup
e4bc038
e4bc038
%build
e4bc038
#no build, only shell script
e4bc038
e4bc038
%check
e4bc038
make test docker_run=
e4bc038
e4bc038
%install
e4bc038
install -D -m755 -p clitest %{buildroot}%{_bindir}/clitest
e4bc038
e4bc038
%files
e4bc038
%license LICENSE.txt
e4bc038
%doc README.md
e4bc038
%{_bindir}/clitest
e4bc038
e4bc038
e4bc038
%changelog
e4bc038
* Sun Oct 04 2020 Jonny Heggheim <hegjon@gmail.com> - 0.4.0-2
e4bc038
- Added runtime dependencies
e4bc038
e4bc038
* Fri Oct 02 2020 Jonny Heggheim <hegjon@gmail.com> - 0.4.0-1
e4bc038
- Initial package