[nodejs-pedding] Switch to source from github to get tests

Tom Hughes tomh at fedoraproject.org
Sun Jun 8 11:24:37 UTC 2014


commit 37618af7cb2cb6f93966d50f821ea9d4dd65626e
Author: Tom Hughes <tom at compton.nu>
Date:   Sun Jun 8 12:23:23 2014 +0100

    Switch to source from github to get tests

 .gitignore          |    1 +
 nodejs-pedding.spec |   13 +++++++------
 sources             |    2 +-
 3 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index fda1341..2640750 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /pedding-0.0.1.tgz
 /pedding-0.0.2.tgz
 /pedding-0.0.3.tgz
+/pedding-32dcaede6463778b4851333b49b13f1bd4328215.tar.gz
diff --git a/nodejs-pedding.spec b/nodejs-pedding.spec
index c3a05af..0085b13 100644
--- a/nodejs-pedding.spec
+++ b/nodejs-pedding.spec
@@ -1,13 +1,13 @@
-%global enable_tests 1
+%global commit 32dcaede6463778b4851333b49b13f1bd4328215
 
 Name:           nodejs-pedding
 Version:        0.0.3
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Just pedding for callback
 
 License:        MIT
 URL:            https://github.com/fengmk2/pedding
-Source0:        http://registry.npmjs.org/pedding/-/pedding-%{version}.tgz
+Source0:        https://github.com/fengmk2/pedding/archive/%{commit}/pedding-%{commit}.tar.gz
 BuildArch:      noarch
 ExclusiveArch:  %{ix86} %{arm} x86_64 noarch
 
@@ -23,7 +23,7 @@ BuildRequires:  npm(should)
 
 
 %prep
-%setup -q -n package
+%setup -q -n pedding-%{commit}
 rm -rf node_modules
 
 
@@ -36,11 +36,9 @@ cp -pr package.json index.js %{buildroot}/%{nodejs_sitelib}/pedding
 %nodejs_symlink_deps
 
 
-%if 0%{?enable_tests}
 %check
 %nodejs_symlink_deps --check
 %{nodejs_sitelib}/mocha/bin/mocha -R tap -t 1000 test/*.js
-%endif
 
 
 %files
@@ -49,6 +47,9 @@ cp -pr package.json index.js %{buildroot}/%{nodejs_sitelib}/pedding
 
 
 %changelog
+* Sun Jun  8 2014 Tom Hughes <tom at compton.nu> - 0.0.3-4
+- Switch to source from github to get tests
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.0.3-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/sources b/sources
index abab839..2143f12 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-20d1e082d3d500981c6162f75da47fec  pedding-0.0.3.tgz
+19d52039efb2e548f2eb4f3617191892  pedding-32dcaede6463778b4851333b49b13f1bd4328215.tar.gz


More information about the scm-commits mailing list