From 9ef921ed97cec55f1eb050d657978d0577c564f8 Mon Sep 17 00:00:00 2001 From: Jamie Nguyen Date: Apr 19 2014 21:41:17 +0000 Subject: Revert "Update to 0.4.0 upstream release" This reverts commit 1958ee896c9fe65974d73e8592fa11a4b6db5a2b. --- diff --git a/.gitignore b/.gitignore index 625459c..a869907 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,3 @@ /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 92cb8ce..cf0c648 100644 --- a/nodejs-xml2js.spec +++ b/nodejs-xml2js.spec @@ -1,6 +1,8 @@ +%global enable_tests 1 + Name: nodejs-xml2js -Version: 0.4.0 -Release: 1 +Version: 0.2.8 +Release: 2%{?dist} Summary: Simple XML to JavaScript object converter License: MIT @@ -15,13 +17,13 @@ Source10: xml2js-dl-tests.sh BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch -BuildRequires: nodejs-packaging +BuildRequires: nodejs-devel +%if 0%{?enable_tests} BuildRequires: npm(zap) BuildRequires: npm(coffee-script) BuildRequires: npm(sax) -BuildRequires: npm(diff) -BuildRequires: npm(xmlbuilder) +%endif %description Ever had the urge to parse XML? And wanted to access the data in @@ -45,9 +47,11 @@ 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 @@ -56,10 +60,6 @@ cp -pr package.json lib %{buildroot}/%{nodejs_sitelib}/xml2js %changelog -* Mon Nov 25 2013 Tom Hughes - 0.4.0-1 -- Update to 0.4.0 upstream release -- Update to latest nodejs packaging standards - * Sat Aug 03 2013 Fedora Release Engineering - 0.2.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild diff --git a/sources b/sources index b8e6700..4387909 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -f137e255516d65492815f5131702ccf3 xml2js-0.4.0.tgz -c55398a6512a04f3d3fc98060dbb540f xml2js-tests-0.4.0.tar.bz2 +1b6adcc3553c6986244ca755f3d5ebc8 xml2js-0.2.8.tgz +aaf08b0ce81bc989b6122f4a503a9488 xml2js-tests-0.2.8.tar.bz2 diff --git a/xml2js-dl-tests.sh b/xml2js-dl-tests.sh index 76edd0c..8159b03 100755 --- a/xml2js-dl-tests.sh +++ b/xml2js-dl-tests.sh @@ -1,6 +1,6 @@ #!/bin/bash -tag=0.4.0 +tag=0.2.8 set -e