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

Tom Hughes tomh at fedoraproject.org
Wed Apr 3 18:30:44 UTC 2013


commit ffe60c00e26ae650d134a753e4c147fa726347a6
Author: Tom Hughes <tom at compton.nu>
Date:   Wed Apr 3 19:03:15 2013 +0100

    Filter out unwanted provide and enable tests

 nodejs-srs.spec |   24 +++++++++++++++---------
 1 files changed, 15 insertions(+), 9 deletions(-)
---
diff --git a/nodejs-srs.spec b/nodejs-srs.spec
index 3ff220b..e7f20b7 100644
--- a/nodejs-srs.spec
+++ b/nodejs-srs.spec
@@ -1,8 +1,8 @@
-%global enable_tests 0
+%global enable_tests 1
 
 Name:           nodejs-srs
 Version:        0.2.20
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Spatial reference library for Node.js
 
 License:        BSD
@@ -33,6 +33,8 @@ BuildRequires:  gdal
 BuildRequires:  proj-epsg
 %endif
 
+%{?nodejs_default_filter}
+
 %description
 Bindings to libosr for handling spatial references in Node.js.
 
@@ -51,25 +53,29 @@ node-gyp rebuild
 cp -pr build/Release/_srs.node lib
 
 
-%if 0%{?enable_tests}
-%check
-ln -s %{nodejs_sitearch} .
-NODE_PATH=lib %{nodejs_sitearch}/mocha/bin/mocha -R spec
-%endif
-
-
 %install
 mkdir -p %{buildroot}/%{nodejs_sitearch}/srs
 cp -pr package.json lib %{buildroot}/%{nodejs_sitearch}/srs
 %nodejs_symlink_deps
 
 
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+NODE_PATH=lib %{nodejs_sitearch}/mocha/bin/mocha -R spec
+%endif
+
+
 %files
 %doc LICENSE.txt README.md
 %{nodejs_sitearch}/srs
 
 
 %changelog
+* Wed Apr  3 2013 Tom Hughes <tom at compton.nu> - 0.2.20-3
+- Filter out provide for Node.js native extension
+- Enable tests
+
 * Wed Mar 13 2013 Tom Hughes <tom at compton.nu> - 0.2.20-2
 - Restrict supported architectures using ExclusiveArch
 - Rebuild against node 0.10


More information about the scm-commits mailing list