%global commit c706d1470dd1376687776bbe985ac22d09780327 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: bats Version: 1.1.0 Release: 2%{?dist} Summary: Bash Automated Testing System License: MIT URL: https://github.com/bats-core/bats-core Source0: https://github.com/bats-core/bats-core/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz BuildArch: noarch Requires: bash %description Bats is a TAP-compliant testing framework for Bash. It provides a simple way to verify that the UNIX programs you write behave as expected. Bats is most useful when testing software written in Bash, but you can use it to test any UNIX program. %prep %autosetup -n %{name}-core-%{commit} sed -i '1s|#!/usr/bin/env bash|#!/usr/bin/bash|' ./libexec/bats-core/* %build # nothing to build %install ./install.sh ${RPM_BUILD_ROOT}%{_prefix} %check ./bin/bats test/bats.bats ./bin/bats test/suite.bats %files %doc README.md AUTHORS %license LICENSE.md %{_bindir}/%{name} %{_libexecdir}/%{name}-core %{_mandir}/man1/%{name}.1.gz %{_mandir}/man7/%{name}.7.gz %changelog * Thu Jan 31 2019 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Nov 02 2018 Piotr Popieluch - 1.1.0-1 - Change upstream to bats-core - Update to 1.1.0 * Thu Jul 12 2018 Fedora Release Engineering - 0.4.0-8.20160219git0360811 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 0.4.0-7.20160219git0360811 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.4.0-6.20160219git0360811 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 0.4.0-5.20160219git0360811 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Sep 05 2016 Piotr Popieluch - 0.4.0-4.20160219git0360811 - Update to latest git snapshot - Enable tests - Remove obsoleted el5 macros - Move license to %%license - Add (empty) %%build section - Add CONDUCT.md to %%doc - Set correct interpreter in scripts * Wed Feb 03 2016 Fedora Release Engineering - 0.4.0-3.20141016git3b33a5a - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 0.4.0-2.20141016git3b33a5a - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Jan 21 2015 François Cami - 0.4.0-1.20141016git3b33a5a - First package version.