[nodejs-mime] Add ExclusiveArch logic

Jamie Nguyen jamielinux at fedoraproject.org
Mon Aug 26 17:04:03 UTC 2013


commit 80a3cdaca6478e835e3c77ac08c095bc579d3360
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Mon Aug 26 18:03:26 2013 +0100

    Add ExclusiveArch logic

 nodejs-mime.spec |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/nodejs-mime.spec b/nodejs-mime.spec
index 1da71b3..af078e8 100644
--- a/nodejs-mime.spec
+++ b/nodejs-mime.spec
@@ -4,8 +4,6 @@ Name:           nodejs-mime
 Version:        1.2.11
 Release:        1%{?dist}
 Summary:        A comprehensive library for mime-type mapping
-BuildArch:      noarch
-ExclusiveArch: %{nodejs_arches} noarch
 
 Group:          System Environment/Libraries
 License:        MIT
@@ -13,6 +11,13 @@ URL:            https://github.com/broofa/node-mime
 Source0:        http://registry.npmjs.org/mime/-/mime-%{version}.tgz
 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-packaging
 
 %description
@@ -42,6 +47,7 @@ rm -rf %buildroot
 %changelog
 * Mon Aug 26 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 1.2.11-1
 - update to upstream release 1.2.11
+- add ExclusiveArch logic
 
 * Tue Jul 30 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 1.2.10-1
 - new upstream release 1.2.10


More information about the scm-commits mailing list