pnemade pushed to nodejs-wrappy (master). "Some spec cleanup to follow nodejs packaging guidelines (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Sun Apr 12 02:46:11 UTC 2015


>From 0c4e4f44785c338957d89293702338ca75ff102d Mon Sep 17 00:00:00 2001
From: Parag Nemade <pnemade at redhat.com>
Date: Sun, 12 Apr 2015 08:15:45 +0530
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 <pnemade AT redhat DOT com> - 1.0.1-2
+- Some spec cleanup to follow nodejs packaging guidelines
+- Add missing macro in %%check
+
 * Thu Nov 06 2014 Anish Patil <apatil at redhat.com> - 1.0.1-1
 - Initial package
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/nodejs-wrappy.git/commit/?h=master&id=0c4e4f44785c338957d89293702338ca75ff102d


More information about the scm-commits mailing list