[marked] Add ExclusiveArch logic
Jamie Nguyen
jamielinux at fedoraproject.org
Sun Aug 18 15:13:44 UTC 2013
commit f0113ba8f49cb32ca9f566ae01193094d43e73a1
Author: Jamie Nguyen <j at jamielinux.com>
Date: Sun Aug 18 16:12:56 2013 +0100
Add ExclusiveArch logic
marked.spec | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/dl-tests.sh b/dl-tests.sh
old mode 100755
new mode 100644
diff --git a/marked.spec b/marked.spec
index fe0a8d7..b1596bf 100644
--- a/marked.spec
+++ b/marked.spec
@@ -17,11 +17,15 @@ Source1: tests-v%{version}.tar.bz2
Source10: dl-tests.sh
BuildArch: noarch
+%if 0%{?fedora} >= 19
ExclusiveArch: %{nodejs_arches} noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm} noarch
+%endif
Patch0: %{name}-0.2.8-fix-link-defs-after-blocks.patch
-BuildRequires: nodejs-devel
+BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(express)
@@ -83,7 +87,7 @@ install -p -D -m0644 man/marked.1 \
# def_blocks and double_link are also known to fail:
# https://github.com/chjj/marked/issues/136#issuecomment-15016714
-ln -sf %{nodejs_sitelib} .
+%nodejs_symlink_deps --check
%__nodejs ./test/
%endif
More information about the scm-commits
mailing list