The package rpms/nodejs-http-server.git has added or updated architecture specific content
in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/nodejs-http-server.git/commit/?id....
Change:
+ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change:
============
commit 58c6f41d9ddb099ae3c258016ba4f72137feaf49
Author: Parag A Nemade <pnemade(a)fedoraproject.org>
Date: Wed May 31 22:21:03 2017 +0530
Initial commit(#1447201)
diff --git a/.gitignore b/.gitignore
index e69de29..abe309c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/0.9.0.tar.gz
diff --git a/nodejs-http-server.spec b/nodejs-http-server.spec
new file mode 100644
index 0000000..cda1857
--- /dev/null
+++ b/nodejs-http-server.spec
@@ -0,0 +1,79 @@
+%{?nodejs_find_provides_and_requires}
+
+# tests need n/w access
+%global enable_tests 0
+%global packagename http-server
+
+Name: nodejs-http-server
+Version: 0.9.0
+Release: 2%{?dist}
+Summary: Simple, zero-configuration command-line http server
+
+License: MIT
+URL:
https://github.com/indexzero/http-server
+Source0:
https://github.com/indexzero/http-server/archive/%{version}.tar.gz
+
+BuildArch: noarch
+ExclusiveArch: %{nodejs_arches} noarch
+
+BuildRequires: nodejs-packaging
+BuildRequires: npm(colors)
+BuildRequires: npm(corser)
+BuildRequires: npm(http-proxy)
+BuildRequires: npm(opener)
+BuildRequires: npm(optimist)
+BuildRequires: npm(ecstatic)
+BuildRequires: npm(portfinder)
+BuildRequires: npm(union)
+
+%if 0%{?enable_tests}
+BuildRequires: npm(vows)
+BuildRequires: npm(request)
+%endif
+
+Requires: nodejs
+
+%description
+http-server is a simple, zero-configuration command-line http server. It is
+powerful enough for production usage, but it's simple and hackable enough
+to be used for testing, local development, and learning.
+
+%prep
+%autosetup -n %{packagename}-%{version}
+%nodejs_fixdep colors
+
+sed -i '1s/env //' bin/http-server
+
+%build
+# nothing to do!
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
+cp -pr package.json lib public screenshots \
+ %{buildroot}%{nodejs_sitelib}/%{packagename}
+
+mkdir -p %{buildroot}%{_bindir}
+cp -p bin/%{packagename} %{buildroot}%{_bindir}/
+
+%nodejs_symlink_deps
+
+%check
+%nodejs_symlink_deps --check
+%{__nodejs} -e 'require("./")'
+%if 0%{?enable_tests}
+vows --spec --isolate
+%endif
+
+
+%files
+%doc README.md
+%license LICENSE
+%{_bindir}/%{packagename}
+%{nodejs_sitelib}/%{packagename}
+
+%changelog
+* Wed May 31 2017 Parag Nemade <pnemade AT redhat DOT com> - 0.9.0-2
+- Fix shebang and description line
+
+* Mon Apr 17 2017 Parag Nemade <pnemade AT redhat DOT com> - 0.9.0-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..e731d11 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (0.9.0.tar.gz) =
ce53970d0f60fb604f811a25da01b92b5d994bcdf3ab402ca1132f8463e23f4d074760b0f7cf748d7bb586ddc092d12b6bb0c72c7cd0cf98553dfbbe92f2465f