]>
Commit | Line | Data |
---|---|---|
0070e7df ER |
1 | Summary: Bash Automated Testing System |
2 | Name: bats | |
3 | Version: 0.4.0 | |
4 | Release: 1 | |
5 | License: MIT | |
6 | Group: Development/Libraries | |
7 | Source0: https://github.com/sstephenson/bats/archive/v%{version}/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: aeeddc0b36b8321930bf96fce6ec41ee | |
9 | Patch0: install.patch | |
10 | URL: https://github.com/sstephenson/bats | |
11 | BuildRequires: bash | |
12 | BuildRequires: sed >= 4.0 | |
13 | BuildArch: noarch | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %define _libexecdir %{_prefix}/lib | |
17 | ||
18 | %description | |
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 | |
21 | expected. | |
22 | ||
23 | Bats is most useful when testing software written in Bash, but you can | |
24 | use it to test any UNIX program. | |
25 | ||
26 | %prep | |
27 | %setup -q | |
28 | %patch0 -p1 | |
29 | ||
30 | %{__sed} -i -e '1 s,#!.*bash,#!/bin/bash,' libexec/* | |
31 | ||
32 | %install | |
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} | |
37 | ||
38 | %clean | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %files | |
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* |