First packaging
Build and provide rpm of bats-mock / Build and deploy an rpm to the demus.dk repo (f42) (release) Has been cancelled
Build and provide rpm of bats-mock / Build and deploy an rpm to the demus.dk repo (f43) (release) Has been cancelled
Build and provide rpm of bats-mock / Build and deploy an rpm to the demus.dk repo (f44) (release) Has been cancelled
Build and provide rpm of bats-mock / Build and deploy an rpm to the demus.dk repo (rawhide) (release) Has been cancelled
Build and provide rpm of bats-mock / Build src rpm and send it to COPR (f42) (release) Successful in 2m19s
Build and provide rpm of bats-mock / Build src rpm and send it to COPR (f43) (release) Successful in 2m17s
Build and provide rpm of bats-mock / Build src rpm and send it to COPR (f44) (release) Successful in 2m24s
Build and provide rpm of bats-mock / Build src rpm and send it to COPR (rawhide) (release) Successful in 1m48s

This commit is contained in:
2026-03-22 01:08:59 +01:00
parent e42ffd3386
commit 95282b74bd
6 changed files with 55 additions and 12 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
name: Build and provide rpm of bats-mock-rpm
run-name: Build bats-mock-rpm from ${{ gitea.repository }} on COPR by ${{ github.actor }}
name: Build and provide rpm of bats-mock
run-name: Build bats-mock from ${{ gitea.repository }} on COPR by ${{ github.actor }}
on:
workflow_dispatch:
inputs:
@@ -7,7 +7,7 @@ on:
type: choice
description: "Choose a fedora version"
required: true
options: [ f42, f43, rawhide ]
options: [ f42, f43, f44, rawhide ]
coprproject:
type: choice
description: "Which repo"
+3 -3
View File
@@ -1,12 +1,12 @@
name: Build and provide rpm of bats-mock-rpm
run-name: Build bats-mock-rpm from ${{ gitea.repository }} on COPR by ${{ github.actor }}
name: Build and provide rpm of bats-mock
run-name: Build bats-mock from ${{ gitea.repository }} on COPR by ${{ github.actor }}
on: [release]
jobs:
coprbuild:
name: Build src rpm and send it to COPR
strategy:
matrix:
fedoraversion: [ f42, f43, rawhide ]
fedoraversion: [ f42, f43, f44, rawhide ]
runs-on: ${{ matrix.fedoraversion }}-minimal-copr
steps:
- name: Check out repository code
+3 -3
View File
@@ -1,5 +1,5 @@
name: Build and provide rpm of bats-mock-rpm
run-name: Rpmbuild bats-mock-rpm at ${{ gitea.repository }} by ${{ github.actor }}
name: Build and provide rpm of bats-mock
run-name: Rpmbuild bats-mock at ${{ gitea.repository }} by ${{ github.actor }}
on:
workflow_dispatch:
inputs:
@@ -7,7 +7,7 @@ on:
type: choice
description: "Choose a fedora version"
required: true
options: [ f42, f43, rawhide ]
options: [ f42, f43, f44, rawhide ]
jobs:
rpmbuild:
name: Build and deploy an rpm to the demus.dk repo
+3 -3
View File
@@ -1,12 +1,12 @@
name: Build and provide rpm of bats-mock-rpm
run-name: Rpmbuild bats-mock-rpm by ${{ github.actor }} by ${{ github.actor }}
name: Build and provide rpm of bats-mock
run-name: Rpmbuild bats-mock by ${{ github.actor }} by ${{ github.actor }}
on: [ release ]
jobs:
rpmbuild:
name: Build and deploy an rpm to the demus.dk repo
strategy:
matrix:
fedoraversion: [ f42, f43, rawhide ]
fedoraversion: [ f42, f43, f44, rawhide ]
runs-on: ${{ matrix.fedoraversion }}-minimal-rpmbuild
steps:
- name: Check out repository code
+42
View File
@@ -0,0 +1,42 @@
%global variant jasonkarns
%global upstreamname bats-mock
%global bats_libdir %{_batslibdir}/%{upstreamname}
Name: %upstreamname
Version: 1.2.5
Release: %autorelease
Summary: Bash Automated Testing System mocking helper
License: CC0-1.0
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
%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 0644 -t %{buildroot}%{bats_libdir}/src binstub
%files
%doc README.md docs/CODE_OF_CONDUCT.md
%license LICENSE
%{bats_libdir}
%changelog
%autochangelog
+1
View File
@@ -0,0 +1 @@
source "$(dirname "${BASH_SOURCE[0]}")/src/stub.bash"