Initial package spec

This commit is contained in:
2026-03-21 01:59:33 +01:00
parent a419d839cc
commit 4690648cc6
2 changed files with 38 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
# BATS_LIB_PATH initialistion
export BATS_LIB_PATH=/usr/lib/bats-helpers
+36
View File
@@ -0,0 +1,36 @@
%global helper_dir %{_prefix}/lib/bats-helpers
Name: bats-filesystem
Version: 0.0.1
Release: 1%{?dist}
Summary: Add environment variables and location to find BATS test helpers
License: GPL-3.0
URL: https://git.demus.dk/demus/bats-filesystem
Source0: 90-bats-lib-dir.sh
Source1: LICENSE
Source2: README.md
Requires: bash bats
BuildArch: noarch
%description
Adds an entry to profile.d that point to a dircetory that other BATS
test helpers should be installed to to enable automatic discovery.
%prep
%setup -cT
%{__cp} %{SOURCE1} %{SOURCE2} .
%install
%{__install} -d -m 0755 %{buildroot}%{helper_dir}
%{__install} -D -m 0755 -t %{buildroot}%{_sysconfdir}/profile.d %{SOURCE0}
%files
%license LICENSE
%doc README.md
%{_sysconfdir}/profile.d/*
%dir %{helper_dir}
%changelog