[nodejs-markdown] Update to 0.5.0 and restrict to compatible arches

Jamie Nguyen jamielinux at fedoraproject.org
Sat Jul 27 21:06:02 UTC 2013


commit b43266a153a82dba4ca3806cb67700e3475736fb
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Sat Jul 27 22:05:43 2013 +0100

    Update to 0.5.0 and restrict to compatible arches

 .gitignore           |    2 ++
 dl-tests.sh          |   23 +++++++++++++++++++++++
 nodejs-markdown.spec |   26 +++++++++++++++++++++-----
 sources              |    3 ++-
 4 files changed, 48 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 0e76554..928b48a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,3 @@
 /markdown-0.4.0.tgz
+/markdown-0.5.0.tgz
+/tests-v0.5.0.tar.bz2
diff --git a/dl-tests.sh b/dl-tests.sh
new file mode 100644
index 0000000..67ad030
--- /dev/null
+++ b/dl-tests.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+tag=v0.5.0
+
+set -e
+
+tmp=$(mktemp -d)
+
+trap cleanup EXIT
+cleanup() {
+    set +e
+    [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
+}
+
+unset CDPATH
+pwd=$(pwd)
+
+pushd "$tmp"
+git clone https://github.com/evilstreak/markdown-js.git
+cd markdown-js
+git archive --prefix="test/" --format=tar tags/${tag}:test/ \
+    | bzip2 > "$pwd"/tests-${tag}.tar.bz2
+popd
diff --git a/nodejs-markdown.spec b/nodejs-markdown.spec
index c69fc79..d2f9aef 100644
--- a/nodejs-markdown.spec
+++ b/nodejs-markdown.spec
@@ -3,8 +3,8 @@
 %global enable_tests 0
 
 Name:       nodejs-markdown
-Version:    0.4.0
-Release:    2%{?dist}
+Version:    0.5.0
+Release:    1%{?dist}
 Summary:    A sensible Markdown parser for JavaScript
 # Upstream have been informed about missing LICENSE file:
 # https://github.com/evilstreak/markdown-js/issues/74
@@ -12,11 +12,21 @@ License:    MIT
 Group:      System Environment/Libraries
 URL:        https://github.com/evilstreak/markdown-js
 Source0:    http://registry.npmjs.org/markdown/-/markdown-%{version}.tgz
+# Source1 is generated by running Source10, which pulls from the upstream
+# revision control repository.
+Source1:    tests-v%{version}.tar.bz2
 # Include a custom man page.
-Source1:    md2html.1
+Source2:    md2html.1
+Source10:   dl-tests.sh
+
 BuildArch:  noarch
+%if 0%{?fedora} >= 19
+ExclusiveArch: %{nodejs_arches} noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm} noarch
+%endif
 
-BuildRequires:  nodejs-devel
+BuildRequires:  nodejs-packaging
 
 %if 0%{?enable_tests}
 BuildRequires:  npm(tap)
@@ -28,6 +38,7 @@ BuildRequires:  npm(tap)
 
 %prep
 %setup -q -n package
+%setup -q -T -D -a 1 -n package
 %nodejs_fixdep nopt '~2.0'
 
 
@@ -48,7 +59,7 @@ ln -sf %{nodejs_sitelib}/markdown/bin/md2html.js \
     %{buildroot}%{_bindir}/md2html
 
 mkdir -p %{buildroot}%{_mandir}/man1
-install -p -D -m0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/md2html.1
+install -p -D -m0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/md2html.1
 
 %nodejs_symlink_deps
 
@@ -67,6 +78,11 @@ install -p -D -m0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/md2html.1
 
 
 %changelog
+* Sat Jul 27 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.5.0-1
+- update to upstream release 0.5.0
+- restrict to compatible arches
+- test/ directory now excluded from npm tarball, so download separately
+
 * Wed Jun 19 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.4.0-2
 - rebuild for missing npm(markdown) provides on EL6
 
diff --git a/sources b/sources
index f6208da..5b4f0e8 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
-56d2775864e472bb0cf741698b3296f1  markdown-0.4.0.tgz
+05f7b29af118bdecb7880ec407c13939  markdown-0.5.0.tgz
+5ca05327997063de3c82843e44e4faa7  tests-v0.5.0.tar.bz2


More information about the scm-commits mailing list