[nodejs-ansi] Update to upstream release 0.2.1

Jamie Nguyen jamielinux at fedoraproject.org
Fri Sep 6 16:43:14 UTC 2013


commit 210754940796aa0e50102b2a3b976534d7ed9a71
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Fri Sep 6 17:39:52 2013 +0100

    Update to upstream release 0.2.1

 .gitignore             |    1 +
 nodejs-ansi-tarball.sh |    6 +++++-
 nodejs-ansi.spec       |   14 +++++++++++---
 sources                |    2 +-
 4 files changed, 18 insertions(+), 5 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index f014892..47077e8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
 /ansi-0.1.2-stripped.tgz
 /ansi-0.2.0.tgz
 /ansi-0.2.0-stripped.tgz
+/ansi-0.2.1-stripped.tgz
diff --git a/nodejs-ansi-tarball.sh b/nodejs-ansi-tarball.sh
index 52106a0..71def75 100755
--- a/nodejs-ansi-tarball.sh
+++ b/nodejs-ansi-tarball.sh
@@ -1,6 +1,10 @@
 #!/bin/sh
 
-version=$(rpm -q --specfile --qf='%{version}' nodejs-ansi.spec)
+if [ $# -eq 1 ]; then
+    version="${1}"
+else
+    version=$(rpm -q --specfile --qf='%{version}' nodejs-ansi.spec)
+fi
 wget http://registry.npmjs.org/ansi/-/ansi-${version}.tgz
 tar -zxf ansi-${version}.tgz
 rm -f package/examples/imgcat/yoshi.png
diff --git a/nodejs-ansi.spec b/nodejs-ansi.spec
index 18098f6..087c0d6 100644
--- a/nodejs-ansi.spec
+++ b/nodejs-ansi.spec
@@ -1,8 +1,8 @@
 %{?nodejs_find_provides_and_requires}
 
 Name:       nodejs-ansi
-Version:    0.2.0
-Release:    2%{?dist}
+Version:    0.2.1
+Release:    1%{?dist}
 Summary:    ANSI escape codes for Node.js
 License:    MIT
 Group:      System Environment/Libraries
@@ -11,10 +11,15 @@ URL:        https://github.com/TooTallNate/ansi.js
 Source0:    ansi-%{version}-stripped.tgz
 Source1:    nodejs-ansi-tarball.sh
 BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
 BuildArch:  noarch
+%if 0%{?fedora} >= 19
 ExclusiveArch: %{nodejs_arches} noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm} noarch
+%endif
 
-BuildRequires:  nodejs-devel
+BuildRequires:  nodejs-packaging
 
 %description
 ansi.js is a module for Node.js that provides an easy-to-use API for writing
@@ -48,6 +53,9 @@ rm -rf %{buildroot}
 %doc README.md examples
 
 %changelog
+* Fri Sep 06 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.2.1-1
+- update to upstream release 0.2.1
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2.0-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
diff --git a/sources b/sources
index 04f7399..72b37b8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-4d9c18341184ed05182eaf51722ced8d  ansi-0.2.0-stripped.tgz
+6f7bf7faab7c356f4599a2db4b6c22df  ansi-0.2.1-stripped.tgz


More information about the scm-commits mailing list