[nodejs-zipfile/f19] Filter out unwanted provide and enable tests

Tom Hughes tomh at fedoraproject.org
Wed Apr 3 20:06:10 UTC 2013


commit afdda52f18263d21b18374bef851a71acfb10f47
Author: Tom Hughes <tom at compton.nu>
Date:   Wed Apr 3 20:24:11 2013 +0100

    Filter out unwanted provide and enable tests

 nodejs-zipfile.spec |   22 ++++++++++++++--------
 1 files changed, 14 insertions(+), 8 deletions(-)
---
diff --git a/nodejs-zipfile.spec b/nodejs-zipfile.spec
index 9c5bf6d..7de438d 100644
--- a/nodejs-zipfile.spec
+++ b/nodejs-zipfile.spec
@@ -1,8 +1,8 @@
-%global enable_tests 0
+%global enable_tests 1
 
 Name:           nodejs-zipfile
 Version:        0.3.4
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        C++ library for handling zipfiles in Node.js
 
 License:        BSD
@@ -25,6 +25,8 @@ BuildRequires:  npm(mocha)
 BuildRequires:  npm(mkdirp)
 %endif
 
+%{?nodejs_default_filter}
+
 %description
 Bindings to libzip for handling zipfile archives in Node.js.
 
@@ -46,6 +48,12 @@ node-gyp rebuild
 install -p -D -m0755 build/Release/_zipfile.node lib
 
 
+%install
+mkdir -p %{buildroot}/%{nodejs_sitearch}/zipfile
+cp -pr package.json lib %{buildroot}/%{nodejs_sitearch}/zipfile
+%nodejs_symlink_deps
+
+
 %if 0%{?enable_tests}
 %check
 ln -s %{nodejs_sitelib} .
@@ -53,18 +61,16 @@ NODE_PATH=lib %{nodejs_sitelib}/mocha/bin/mocha -R spec
 %endif
 
 
-%install
-mkdir -p %{buildroot}/%{nodejs_sitearch}/zipfile
-cp -pr package.json lib %{buildroot}/%{nodejs_sitearch}/zipfile
-%nodejs_symlink_deps
-
-
 %files
 %doc LICENSE.txt README.md
 %{nodejs_sitearch}/zipfile
 
 
 %changelog
+* Wed Apr  3 2013 Tom Hughes <tom at compton.nu> - 0.3.4-4
+- Filter out provide for Node.js native extension
+- Enable tests
+
 * Wed Mar 13 2013 Tom Hughes <tom at compton.nu> - 0.3.4-3
 - Restrict supported architectures using ExclusiveArch
 - Rebuild against node 0.10


More information about the scm-commits mailing list