You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.1 KiB
45 lines
1.1 KiB
%global upstreamname bats-core
|
|
|
|
Name: bats
|
|
Version: 1.8.0
|
|
Release: %autorelease
|
|
Summary: Bash Automated Testing System
|
|
|
|
License: MIT
|
|
URL: https://github.com/%{upstreamname}/%{upstreamname}
|
|
Source0: https://github.com/%{upstreamname}/%{upstreamname}/archive/v%{version}.tar.gz#/%{upstreamname}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: bash
|
|
Requires: parallel
|
|
BuildRequires: parallel
|
|
BuildRequires: procps-ng
|
|
|
|
%description
|
|
Bats is a TAP-compliant testing framework for Bash. It provides a simple way to
|
|
verify that the UNIX programs you write behave as expected. Bats is most useful
|
|
when testing software written in Bash, but you can use it to test any UNIX
|
|
program.
|
|
|
|
%prep
|
|
%autosetup -n %{upstreamname}-%{version}
|
|
|
|
%install
|
|
./install.sh ${RPM_BUILD_ROOT}%{_prefix}
|
|
|
|
%check
|
|
./bin/bats test
|
|
|
|
%files
|
|
%doc AUTHORS README.md docs/CHANGELOG.md
|
|
%license LICENSE.md
|
|
%{_bindir}/%{name}
|
|
%{_libexecdir}/%{upstreamname}
|
|
%{_prefix}/lib/%{upstreamname}
|
|
%{_mandir}/man1/%{name}.1.gz
|
|
%{_mandir}/man7/%{name}.7.gz
|
|
|
|
%changelog
|
|
%autochangelog
|