!3 Add macro file macros.nodejs-tap
From: @lei_ju Reviewed-by: @zhengyuhanghans Signed-off-by: @zhengyuhanghans
This commit is contained in:
commit
d36ff2dfc6
4
macros.nodejs-tap
Normal file
4
macros.nodejs-tap
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Macros to call tap in %%check
|
||||||
|
# in case we want to pass options to tap later on, e.g. to increase the timeout
|
||||||
|
%__tap /usr/bin/tap
|
||||||
|
%tap %{__tap}
|
||||||
@ -2,11 +2,12 @@
|
|||||||
%global enable_tests 1
|
%global enable_tests 1
|
||||||
Name: nodejs-tap
|
Name: nodejs-tap
|
||||||
Version: 0.7.1
|
Version: 0.7.1
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: A Test Anything Protocol library
|
Summary: A Test Anything Protocol library
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/isaacs/node-tap
|
URL: https://github.com/isaacs/node-tap
|
||||||
Source0: https://github.com/isaacs/node-tap/archive/v%{version}.tar.gz
|
Source0: https://github.com/isaacs/node-tap/archive/v%{version}.tar.gz
|
||||||
|
Source1: macros.nodejs-tap
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
ExclusiveArch: %{nodejs_arches} noarch
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
BuildRequires: nodejs-packaging
|
BuildRequires: nodejs-packaging
|
||||||
@ -15,6 +16,7 @@ BuildRequires: gcc npm(buffer-equal) npm(deep-equal) npm(difflet) npm(glob
|
|||||||
BuildRequires: npm(inherits) = 1.0.0 npm(mkdirp) npm(nopt) npm(runforcover) npm(slide)
|
BuildRequires: npm(inherits) = 1.0.0 npm(mkdirp) npm(nopt) npm(runforcover) npm(slide)
|
||||||
BuildRequires: npm(yamlish)
|
BuildRequires: npm(yamlish)
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This is a mix-and-match set of utilities that you can use to write test
|
This is a mix-and-match set of utilities that you can use to write test
|
||||||
harnesses and frameworks that communicate with one another using the
|
harnesses and frameworks that communicate with one another using the
|
||||||
@ -35,6 +37,7 @@ mkdir -p %{buildroot}%{nodejs_sitelib}/tap
|
|||||||
cp -pr bin lib package.json %{buildroot}%{nodejs_sitelib}/tap
|
cp -pr bin lib package.json %{buildroot}%{nodejs_sitelib}/tap
|
||||||
mkdir -p %{buildroot}%{_bindir}
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
ln -sf ../lib/node_modules/tap/bin/tap.js %{buildroot}%{_bindir}/tap
|
ln -sf ../lib/node_modules/tap/bin/tap.js %{buildroot}%{_bindir}/tap
|
||||||
|
install -Dpm0644 %{SOURCE1} %{buildroot}%{macrosdir}/macros.tap
|
||||||
chmod 0755 %{buildroot}%{nodejs_sitelib}/tap/bin/*
|
chmod 0755 %{buildroot}%{nodejs_sitelib}/tap/bin/*
|
||||||
%nodejs_symlink_deps
|
%nodejs_symlink_deps
|
||||||
|
|
||||||
@ -49,8 +52,12 @@ rm -f test/debug-test.js
|
|||||||
%files
|
%files
|
||||||
%{nodejs_sitelib}/tap
|
%{nodejs_sitelib}/tap
|
||||||
%{_bindir}/tap
|
%{_bindir}/tap
|
||||||
|
%{macrosdir}/macros.tap
|
||||||
%doc coverage-example example README.md AUTHORS LICENSE
|
%doc coverage-example example README.md AUTHORS LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 14 2020 leiju <leiju4@huawei.com> - 0.7.1-2
|
||||||
|
- Add macro file macros.nodejs-tap
|
||||||
|
|
||||||
* Fri Aug 21 2020 wangyue <wangyue92@huawei.com> - 0.7.1-1
|
* Fri Aug 21 2020 wangyue <wangyue92@huawei.com> - 0.7.1-1
|
||||||
- package init
|
- package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user