generated from demus/basic-rpm-template
Build and provide rpm of bats-file / Build src rpm and send it to COPR (f42) (release) Successful in 2m22s
Build and provide rpm of bats-file / Build src rpm and send it to COPR (f43) (release) Successful in 2m12s
Build and provide rpm of bats-file / Build src rpm and send it to COPR (f44) (release) Successful in 2m12s
Build and provide rpm of bats-file / Build src rpm and send it to COPR (rawhide) (release) Successful in 2m6s
47 lines
1.4 KiB
RPMSpec
47 lines
1.4 KiB
RPMSpec
%global upstreamname bats-file
|
|
%global bats_libdir %{_batslibdir}/%{upstreamname}
|
|
|
|
Name: %upstreamname
|
|
Version: 0.4.0
|
|
Release: %autorelease
|
|
Summary: Bash Automated Testing System assertion helper
|
|
|
|
License: CC0-1.0
|
|
URL: https://github.com/bats-core/%{upstreamname}
|
|
Source: https://github.com/bats-core/%{upstreamname}/archive/v%{version}.tar.gz
|
|
Patch0: 01-disable-tests-requiring-root.patch
|
|
Patch1: 02-disable-tests-that-fail-because-of-path-sanitization-on-copr.patch
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: bats-filesystem bats-support parallel
|
|
BuildRequires: bats-filesystem bats-support parallel procps-ng python-unversioned-command
|
|
|
|
%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.
|
|
|
|
bats-assert is a helper library providing common assertions for Bats.
|
|
|
|
%prep
|
|
%autosetup -n %{upstreamname}-%{version} -p1
|
|
|
|
%install
|
|
%{__install} -D -m 0644 -t %{buildroot}%{bats_libdir} load.bash
|
|
%{__install} -D -m 0644 -t %{buildroot}%{bats_libdir}/src src/*
|
|
%dnl Should turn up with the next release
|
|
%dnl ./install.sh ${RPM_BUILD_ROOT}%{_prefix}
|
|
|
|
%check
|
|
bats test
|
|
|
|
%files
|
|
%doc README.md CHANGELOG.md
|
|
%license LICENSE
|
|
%{bats_libdir}
|
|
|
|
%changelog
|
|
%autochangelog
|