|
|
5433c0a |
%global githubparent sstephenson
|
|
|
9d6cf87 |
%global commit 03608115df2071fff4eaaff1605768c275e5f81f
|
|
|
5433c0a |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
9d6cf87 |
%global commitdate 20160219
|
|
|
5433c0a |
%global gitversion .%{commitdate}git%{shortcommit}
|
|
|
5433c0a |
|
|
|
5433c0a |
Name: bats
|
|
|
5433c0a |
Version: 0.4.0
|
|
|
cb99aa4 |
Release: 8%{gitversion}%{?dist}
|
|
|
5433c0a |
Summary: Bash Automated Testing System
|
|
|
5433c0a |
|
|
|
5433c0a |
License: MIT
|
|
|
9d6cf87 |
URL: https://github.com/sstephenson/bats
|
|
|
5433c0a |
Source0: https://github.com/%{githubparent}/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
|
|
|
5433c0a |
|
|
|
5433c0a |
BuildArch: noarch
|
|
|
5433c0a |
|
|
|
5433c0a |
Requires: bash
|
|
|
5433c0a |
|
|
|
5433c0a |
%description
|
|
|
9d6cf87 |
Bats is a TAP-compliant testing framework for Bash. It provides a simple way to
|
|
|
9d6cf87 |
verify that the UNIX programs you write behave as expected. Bats is most useful
|
|
|
9d6cf87 |
when testing software written in Bash, but you can use it to test any UNIX
|
|
|
9d6cf87 |
program.
|
|
|
5433c0a |
|
|
|
5433c0a |
%prep
|
|
|
9d6cf87 |
%autosetup -n %{name}-%{commit}
|
|
|
9d6cf87 |
sed -i '1s|#!/usr/bin/env bash|#!/usr/bin/bash|' ./libexec/*
|
|
|
9d6cf87 |
|
|
|
9d6cf87 |
%build
|
|
|
9d6cf87 |
# nothing to build
|
|
|
5433c0a |
|
|
|
5433c0a |
%install
|
|
|
5433c0a |
./install.sh ${RPM_BUILD_ROOT}%{_prefix}
|
|
|
5433c0a |
|
|
|
5433c0a |
%check
|
|
|
9d6cf87 |
./bin/bats test/bats.bats
|
|
|
9d6cf87 |
./bin/bats test/suite.bats
|
|
|
5433c0a |
|
|
|
5433c0a |
%files
|
|
|
9d6cf87 |
%doc README.md CONDUCT.md
|
|
|
9d6cf87 |
%license LICENSE
|
|
|
5433c0a |
%{_bindir}/%{name}
|
|
|
5433c0a |
%{_libexecdir}/%{name}
|
|
|
5433c0a |
%{_libexecdir}/bats-exec-suite
|
|
|
5433c0a |
%{_libexecdir}/bats-exec-test
|
|
|
5433c0a |
%{_libexecdir}/bats-format-tap-stream
|
|
|
5433c0a |
%{_libexecdir}/bats-preprocess
|
|
|
5433c0a |
%{_mandir}/man1/%{name}.1.gz
|
|
|
5433c0a |
%{_mandir}/man7/%{name}.7.gz
|
|
|
5433c0a |
|
|
|
5433c0a |
%changelog
|
|
|
cb99aa4 |
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-8.20160219git0360811
|
|
|
cb99aa4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
cb99aa4 |
|
|
|
1fbce32 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-7.20160219git0360811
|
|
|
1fbce32 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
1fbce32 |
|
|
|
ebcc2b1 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-6.20160219git0360811
|
|
|
ebcc2b1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
ebcc2b1 |
|
|
|
7e91499 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-5.20160219git0360811
|
|
|
7e91499 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
7e91499 |
|
|
|
9d6cf87 |
* Mon Sep 05 2016 Piotr Popieluch <piotr1212@gmail.com> - 0.4.0-4.20160219git0360811
|
|
|
9d6cf87 |
- Update to latest git snapshot
|
|
|
9d6cf87 |
- Enable tests
|
|
|
9d6cf87 |
- Remove obsoleted el5 macros
|
|
|
9d6cf87 |
- Move license to %%license
|
|
|
9d6cf87 |
- Add (empty) %%build section
|
|
|
9d6cf87 |
- Add CONDUCT.md to %%doc
|
|
|
9d6cf87 |
- Set correct interpreter in scripts
|
|
|
9d6cf87 |
|
|
|
c2ea481 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-3.20141016git3b33a5a
|
|
|
c2ea481 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
c2ea481 |
|
|
|
74130d8 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-2.20141016git3b33a5a
|
|
|
74130d8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
74130d8 |
|
|
|
5433c0a |
* Wed Jan 21 2015 Fran├žois Cami <fcami@redhat.com> - 0.4.0-1.20141016git3b33a5a
|
|
|
5433c0a |
- First package version.
|
|
|
5433c0a |
|