[nodejs-xml2js] Update to 0.4.0 upstream release

Tom Hughes tomh at fedoraproject.org
Thu Dec 5 18:28:18 UTC 2013


commit 1958ee896c9fe65974d73e8592fa11a4b6db5a2b
Author: Tom Hughes <tom at compton.nu>
Date:   Mon Nov 25 09:31:02 2013 +0000

    Update to 0.4.0 upstream release

 .gitignore         |    2 ++
 nodejs-xml2js.spec |   18 +++++++++---------
 sources            |    4 ++--
 xml2js-dl-tests.sh |    2 +-
 4 files changed, 14 insertions(+), 12 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a869907..625459c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,5 @@
 /xml2js-tests-0.2.7.tar.bz2
 /xml2js-0.2.8.tgz
 /xml2js-tests-0.2.8.tar.bz2
+/xml2js-0.4.0.tgz
+/xml2js-tests-0.4.0.tar.bz2
diff --git a/nodejs-xml2js.spec b/nodejs-xml2js.spec
index cf0c648..92cb8ce 100644
--- a/nodejs-xml2js.spec
+++ b/nodejs-xml2js.spec
@@ -1,8 +1,6 @@
-%global enable_tests 1
-
 Name:           nodejs-xml2js
-Version:        0.2.8
-Release:        2%{?dist}
+Version:        0.4.0
+Release:        1
 Summary:        Simple XML to JavaScript object converter
 
 License:        MIT
@@ -17,13 +15,13 @@ Source10:       xml2js-dl-tests.sh
 BuildArch:      noarch
 ExclusiveArch:  %{nodejs_arches} noarch
 
-BuildRequires:  nodejs-devel
+BuildRequires:  nodejs-packaging
 
-%if 0%{?enable_tests}
 BuildRequires:  npm(zap)
 BuildRequires:  npm(coffee-script)
 BuildRequires:  npm(sax)
-%endif
+BuildRequires:  npm(diff)
+BuildRequires:  npm(xmlbuilder)
 
 %description
 Ever had the urge to parse XML? And wanted to access the data in
@@ -47,11 +45,9 @@ cp -pr package.json lib %{buildroot}/%{nodejs_sitelib}/xml2js
 %nodejs_symlink_deps
 
 
-%if 0%{?enable_tests}
 %check
 %nodejs_symlink_deps --check
 %{nodejs_sitelib}/zap/bin/zap
-%endif
 
 
 %files
@@ -60,6 +56,10 @@ cp -pr package.json lib %{buildroot}/%{nodejs_sitelib}/xml2js
 
 
 %changelog
+* Mon Nov 25 2013 Tom Hughes <tom at compton.nu> - 0.4.0-1
+- Update to 0.4.0 upstream release
+- Update to latest nodejs packaging standards
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2.8-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
diff --git a/sources b/sources
index 4387909..b8e6700 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-1b6adcc3553c6986244ca755f3d5ebc8  xml2js-0.2.8.tgz
-aaf08b0ce81bc989b6122f4a503a9488  xml2js-tests-0.2.8.tar.bz2
+f137e255516d65492815f5131702ccf3  xml2js-0.4.0.tgz
+c55398a6512a04f3d3fc98060dbb540f  xml2js-tests-0.4.0.tar.bz2
diff --git a/xml2js-dl-tests.sh b/xml2js-dl-tests.sh
index 8159b03..76edd0c 100755
--- a/xml2js-dl-tests.sh
+++ b/xml2js-dl-tests.sh
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-tag=0.2.8
+tag=0.4.0
 
 set -e
 


More information about the scm-commits mailing list