[nodejs-grunt-contrib-connect] Initial import (#1115670)
Ralph Bean
ralph at fedoraproject.org
Fri Oct 24 13:11:00 UTC 2014
commit c02f243a35390f8de4d574c583a96e296bda79fb
Author: Ralph Bean <rbean at redhat.com>
Date: Fri Oct 24 09:11:01 2014 -0400
Initial import (#1115670)
.gitignore | 1 +
nodejs-grunt-contrib-connect.spec | 91 +++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 93 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0a16978 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/grunt-contrib-connect-0.8.0.tgz
diff --git a/nodejs-grunt-contrib-connect.spec b/nodejs-grunt-contrib-connect.spec
new file mode 100644
index 0000000..cabaa65
--- /dev/null
+++ b/nodejs-grunt-contrib-connect.spec
@@ -0,0 +1,91 @@
+# This macro is needed at the start for building on EL6
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 0
+
+%global barename grunt-contrib-connect
+
+Name: nodejs-grunt-contrib-connect
+Version: 0.8.0
+Release: 2%{?dist}
+Summary: Start a connect web server
+
+Group: Development/Libraries
+License: MIT
+URL: https://www.npmjs.org/package/grunt-contrib-connect
+Source0: http://registry.npmjs.org/%{barename}/-/%{barename}-%{version}.tgz
+BuildArch: noarch
+
+%if 0%{?fedora} >= 19
+ExclusiveArch: %{nodejs_arches} noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm} noarch
+%endif
+
+BuildRequires: nodejs-packaging >= 6
+
+BuildRequires: npm(portscanner)
+BuildRequires: npm(connect)
+BuildRequires: npm(async)
+BuildRequires: npm(open)
+BuildRequires: npm(grunt)
+BuildRequires: npm(connect-livereload)
+
+Requires: npm(portscanner)
+Requires: npm(connect)
+Requires: npm(async)
+Requires: npm(open)
+Requires: npm(grunt)
+Requires: npm(connect-livereload)
+
+%if 0%{?enable_tests}
+BuildRequires: npm(grunt-contrib-nodeunit)
+BuildRequires: npm(grunt-contrib-jshint)
+BuildRequires: npm(grunt-cli)
+BuildRequires: npm(grunt)
+BuildRequires: npm(grunt-contrib-internal)
+%endif
+
+
+%description
+Start a connect web server.
+
+%prep
+%setup -q -n package
+
+# Remove bundled node_modules if there are any..
+rm -rf node_modules/
+
+%nodejs_fixdep --caret
+%nodejs_fixdep portscanner ~*
+%nodejs_fixdep connect ~2.x
+%nodejs_fixdep async ~0.x
+
+%build
+%nodejs_symlink_deps --build
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/grunt-contrib-connect
+cp -pr package.json tasks \
+ %{buildroot}%{nodejs_sitelib}/grunt-contrib-connect
+
+%nodejs_symlink_deps
+
+
+%check
+%if 0%{?enable_tests}
+%nodejs_symlink_deps --check
+grunt jshint test
+%endif
+
+
+%files
+%doc LICENSE-MIT README.md
+%{nodejs_sitelib}/grunt-contrib-connect/
+
+%changelog
+* Thu Oct 23 2014 Ralph Bean <rbean at redhat.com> - 0.8.0-2
+- Mark as noarch.
+
+* Tue Jul 08 2014 Ralph Bean <rbean at redhat.com> - 0.8.0-1
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..171ead0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e8b6b09d18d859d172a5f158c1cf5ff3 grunt-contrib-connect-0.8.0.tgz
More information about the scm-commits
mailing list