Files
demus 331015b100
Build and provide rpm of bats-mock-buildkite-plugins-rpm / Build and deploy an rpm to the demus.dk repo (f42) (release) Has been cancelled
Build and provide rpm of bats-mock-buildkite-plugins-rpm / Build and deploy an rpm to the demus.dk repo (f43) (release) Has been cancelled
Build and provide rpm of bats-mock-buildkite-plugins-rpm / Build and deploy an rpm to the demus.dk repo (rawhide) (release) Has been cancelled
Build and provide rpm of bats-mock-buildkite-plugins-rpm / Build src rpm and send it to COPR (f42) (release) Successful in 1m41s
Build and provide rpm of bats-mock-buildkite-plugins-rpm / Build src rpm and send it to COPR (rawhide) (release) Successful in 2m10s
Build and provide rpm of bats-mock-buildkite-plugins-rpm / Build src rpm and send it to COPR (f43) (release) Successful in 1m40s
First packaging
2026-03-26 21:19:15 +01:00

48 lines
1.3 KiB
RPMSpec

%global variant buildkite-plugins
%global upstreamname bats-mock
%global bats_libdir %{_batslibdir}/%{upstreamname}
Name: %{upstreamname}+%{variant}
Version: 2.2.0
Release: %autorelease
Summary: Bash Automated Testing System mocking helper
License: MIT
URL: https://github.com/%{variant}/%{upstreamname}
Source0: https://github.com/%{variant}/%{upstreamname}/archive/v%{version}.tar.gz
Source1: load.bash
BuildArch: noarch
Requires: bats-filesystem parallel
BuildRequires: bats-filesystem
Provides: %{upstreamname}
Conflicts: %{upstreamname}+jasonkerns
%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.
Mocking/stubbing library for BATS.
%prep
%autosetup -n %{upstreamname}-%{version} -p1
%install
%{__install} -D -m 0644 -t %{buildroot}%{bats_libdir} %{SOURCE1}
%{__install} -D -m 0644 -t %{buildroot}%{bats_libdir}/src stub.bash
%{__install} -D -m 0755 -t %{buildroot}%{bats_libdir}/src binstub
%check
bats tests
%files
%doc README.md CODE_OF_CONDUCT.md
%license LICENSE
%{bats_libdir}
%changelog
%autochangelog