[nodejs-ansi/el6] remove nonfree image file
T.C. Hollingsworth
patches at fedoraproject.org
Fri May 3 13:43:01 UTC 2013
commit 7b76f8a260553e588217e929bf9f398731d2c065
Author: T.C. Hollingsworth <tchollingsworth at gmail.com>
Date: Fri May 3 06:40:31 2013 -0700
remove nonfree image file
.gitignore | 1 +
nodejs-ansi-tarball.sh | 7 +++++++
nodejs-ansi.spec | 9 +++++++--
sources | 1 +
4 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index faf6a91..2ca0cf3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/ansi-0.1.2.tgz
+/ansi-0.1.2-stripped.tgz
diff --git a/nodejs-ansi-tarball.sh b/nodejs-ansi-tarball.sh
new file mode 100755
index 0000000..52106a0
--- /dev/null
+++ b/nodejs-ansi-tarball.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+version=$(rpm -q --specfile --qf='%{version}' nodejs-ansi.spec)
+wget http://registry.npmjs.org/ansi/-/ansi-${version}.tgz
+tar -zxf ansi-${version}.tgz
+rm -f package/examples/imgcat/yoshi.png
+tar -zcf ansi-${version}-stripped.tgz package
diff --git a/nodejs-ansi.spec b/nodejs-ansi.spec
index 74b74ee..1f19aaf 100644
--- a/nodejs-ansi.spec
+++ b/nodejs-ansi.spec
@@ -2,12 +2,14 @@
Name: nodejs-ansi
Version: 0.1.2
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: ANSI escape codes for Node.js
License: MIT
Group: System Environment/Libraries
URL: https://github.com/TooTallNate/ansi.js
-Source0: http://registry.npmjs.org/ansi/-/ansi-%{version}.tgz
+# the source contains a nonfree image file, which is removed by the Source1 script
+Source0: ansi-%{version}-stripped.tgz
+Source1: nodejs-ansi-tarball.sh
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@@ -45,6 +47,9 @@ rm -rf %{buildroot}
%doc README.md examples
%changelog
+* Fri May 03 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.1.2-7
+- remove nonfree image
+
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.1.2-6
- add macro for EPEL6 dependency generation
diff --git a/sources b/sources
index f51b451..78041ac 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
a46eec705c14995f8380828ec4f9357a ansi-0.1.2.tgz
+8497f99f5507f1dedcf7a8a9dd8db63a ansi-0.1.2-stripped.tgz
More information about the scm-commits
mailing list