From 0c4e4f44785c338957d89293702338ca75ff102d Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Apr 12 2015 02:45:45 +0000 Subject: Some spec cleanup to follow nodejs packaging guidelines - Add missing macro in %check --- diff --git a/nodejs-wrappy.spec b/nodejs-wrappy.spec index 3907af6..1a5e7a9 100644 --- a/nodejs-wrappy.spec +++ b/nodejs-wrappy.spec @@ -1,8 +1,10 @@ %{?nodejs_find_provides_and_requires} -%global enable_tests 0 + +%global enable_tests 1 + Name: nodejs-wrappy Version: 1.0.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Callback wrapping utility License: ISC URL: https://github.com/npm/wrappy @@ -11,7 +13,10 @@ Source: https://github.com/npm/wrappy/archive/v%{version}.tar.gz BuildArch: noarch BuildRequires: nodejs-packaging + +%if 0%{?enable_tests} BuildRequires: npm(tap) +%endif ExclusiveArch: %{nodejs_arches} noarch @@ -29,17 +34,24 @@ mkdir -p %{buildroot}%{nodejs_sitelib}/nodejs-wrappy cp -pr wrappy.js package.json \ %{buildroot}%{nodejs_sitelib}/nodejs-wrappy +%{nodejs_symlink_deps} -%check %if 0%{?enable_tests} +%check +%{nodejs_symlink_deps} --check tap test/*.js %endif %files -%doc LICENSE README.md test/ +%doc README.md +%license LICENSE %{nodejs_sitelib}/nodejs-wrappy %changelog +* Sun Apr 12 2015 Parag Nemade - 1.0.1-2 +- Some spec cleanup to follow nodejs packaging guidelines +- Add missing macro in %%check + * Thu Nov 06 2014 Anish Patil - 1.0.1-1 - Initial package