generated from demus/basic-rpm-template
Initial package spec
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
# BATS_LIB_PATH initialistion
|
||||||
|
export BATS_LIB_PATH=/usr/lib/bats-helpers
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user