1 Summary: Bash Automated Testing System
6 Group: Development/Libraries
7 Source0: https://github.com/sstephenson/bats/archive/v%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5: aeeddc0b36b8321930bf96fce6ec41ee
10 URL: https://github.com/sstephenson/bats
12 BuildRequires: sed >= 4.0
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define _libexecdir %{_prefix}/lib
19 Bats is a TAP-compliant testing framework for Bash. It provides a
20 simple way to verify that the UNIX programs you write behave as
23 Bats is most useful when testing software written in Bash, but you can
24 use it to test any UNIX program.
30 %{__sed} -i -e '1 s,#!.*bash,#!/bin/bash,' libexec/*
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT{%{_prefix},%{_libexecdir},%{_mandir}}
35 ./install.sh $RPM_BUILD_ROOT%{_prefix}
36 ln -sf ../lib/bats $RPM_BUILD_ROOT%{_bindir}
39 rm -rf $RPM_BUILD_ROOT
42 %defattr(644,root,root,755)
43 %doc README.md LICENSE
44 %attr(755,root,root) %{_bindir}/bats
45 %attr(755,root,root) %{_libexecdir}/bats
46 %attr(755,root,root) %{_libexecdir}/bats-exec-suite
47 %attr(755,root,root) %{_libexecdir}/bats-exec-test
48 %attr(755,root,root) %{_libexecdir}/bats-format-tap-stream
49 %attr(755,root,root) %{_libexecdir}/bats-preprocess
50 %{_mandir}/man1/bats.1*
51 %{_mandir}/man7/bats.7*