[nodejs-node-static] Initial import (#965895).

tdawson tdawson at fedoraproject.org
Fri Oct 11 14:20:09 UTC 2013


commit b15192f30a2b18b441d6597624d927bf92bcc089
Author: Troy Dawson <tdawson at redhat.com>
Date:   Fri Oct 11 09:20:03 2013 -0500

    Initial import (#965895).

 .gitignore              |    1 +
 nodejs-node-static.spec |   60 +++++++++++++++++++++++++++++++++++++++++++++++
 sources                 |    1 +
 3 files changed, 62 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2df936d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/node-static-0.7.1.tgz
diff --git a/nodejs-node-static.spec b/nodejs-node-static.spec
new file mode 100644
index 0000000..12e8800
--- /dev/null
+++ b/nodejs-node-static.spec
@@ -0,0 +1,60 @@
+%global npm_name node-static
+%global enable_tests 0
+
+Summary:       Simple, compliant file streaming module for node
+Name:          nodejs-%{npm_name}
+Version:       0.7.1
+Release:       2%{?dist}
+Group:         Development/Languages
+License:       MIT
+URL:           http://github.com/cloudhead/node-static
+Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
+BuildRequires: nodejs-devel
+%if 0%{?enable_tests}
+BuildRequires:  npm(vows)
+%endif
+BuildArch:     noarch
+
+%description
+node-static is a simple, "rfc 2616 compliant" file streaming module 
+for node.
+
+node-static has an in-memory file cache, making it highly efficient.
+node-static understands and supports "conditional GET" and "HEAD" requests.
+node-static was inspired by some of the other static-file serving modules
+out there, such as node-paperboy and antinode.
+
+%prep
+%setup -q -n package
+
+%build
+#nothing to do
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
+cp -pr benchmark bin etc examples lib package.json test %{buildroot}%{nodejs_sitelib}/%{npm_name}
+
+# Setup Binaries
+mkdir %{buildroot}%{_bindir}
+ln -s %{nodejs_sitelib}/%{npm_name}/bin/cli.js %{buildroot}%{_bindir}/static
+
+%if 0%{?enable_tests}
+%check
+vows --spec --isolate
+%endif
+
+%files
+%doc LICENSE README.md
+%{nodejs_sitelib}/%{npm_name}
+%{_bindir}/static
+
+%changelog
+* Fri Oct 11 2013 Troy Dawson <tdawson at redhat.com> - 0.7.1-2
+- Cleaned up description
+
+* Tue Oct 08 2013 Troy Dawson <tdawson at redhat.com> - 0.7.1-1
+- Updated to 0.7.1
+
+* Thu Feb 16 2012 Troy Dawson <tdawson at redhat.com> - 0.6.9-1
+- Initial build
+
diff --git a/sources b/sources
index e69de29..12dcde8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2daa8b8b409e73bbbc5e9f710c5889b6  node-static-0.7.1.tgz


More information about the scm-commits mailing list