First packaging

This commit is contained in:
2026-03-21 20:27:21 +01:00
parent 5219aba38c
commit e313509625
+44
View File
@@ -0,0 +1,44 @@
%global upstreamname bats-assert
%global bats_libdir %{_batslibdir}/%{upstreamname}
Name: bats-assert
Version: 2.2.4
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#/%{upstreamname}-%{version}.tar.gz
BuildArch: noarch
Requires: bats-filesystem parallel
BuildRequires: bats-filesystem bats-support parallel 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.
bats-assert is a helper library providing common assertions for Bats.
%prep
%autosetup -n %{upstreamname}-%{version} -p1
%install
%{__install} -D -m 0755 -t %{buildroot}%{bats_libdir} load.bash
%{__install} -D -m 0755 -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 docs/CONTRIBUTING.md
%license LICENSE.md
%{bats_libdir}
%changelog
%autochangelog