From 4ca9c498ab08c46db82b4df234afba74c517e487 Mon Sep 17 00:00:00 2001 From: lei_ju <983277505@qq.com> Date: Mon, 14 Sep 2020 19:28:09 +0800 Subject: [PATCH] Add macro file macros.nodejs-tap --- macros.nodejs-tap | 4 ++++ nodejs-tap.spec | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 macros.nodejs-tap diff --git a/macros.nodejs-tap b/macros.nodejs-tap new file mode 100644 index 0000000..8ea19fe --- /dev/null +++ b/macros.nodejs-tap @@ -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} \ No newline at end of file diff --git a/nodejs-tap.spec b/nodejs-tap.spec index f33da2f..fe6e446 100644 --- a/nodejs-tap.spec +++ b/nodejs-tap.spec @@ -2,11 +2,12 @@ %global enable_tests 1 Name: nodejs-tap Version: 0.7.1 -Release: 1 +Release: 2 Summary: A Test Anything Protocol library License: MIT URL: https://github.com/isaacs/node-tap Source0: https://github.com/isaacs/node-tap/archive/v%{version}.tar.gz +Source1: macros.nodejs-tap BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch 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(yamlish) %endif + %description 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 @@ -35,6 +37,7 @@ mkdir -p %{buildroot}%{nodejs_sitelib}/tap cp -pr bin lib package.json %{buildroot}%{nodejs_sitelib}/tap mkdir -p %{buildroot}%{_bindir} 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/* %nodejs_symlink_deps @@ -52,5 +55,8 @@ rm -f test/debug-test.js %doc coverage-example example README.md AUTHORS LICENSE %changelog +* Mon Sep 14 2020 leiju - 0.7.1-2 +- Add macro file macros.nodejs-tap + * Fri Aug 21 2020 wangyue - 0.7.1-1 - package init