[nodejs-express] Initial import

Jamie Nguyen jamielinux at fedoraproject.org
Mon Mar 18 18:38:23 UTC 2013


commit 5d7fe0d71b7179cdaa835b09dd3a31a707f00547
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Mon Mar 18 18:38:16 2013 +0000

    Initial import

 .gitignore          |    2 +
 dl-tests.sh         |   23 ++++++++++
 express.1           |   50 ++++++++++++++++++++++
 nodejs-express.spec |  114 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    2 +
 5 files changed, 191 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2443408 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/express-3.1.0.tgz
+/tests-3.1.0.tar.bz2
diff --git a/dl-tests.sh b/dl-tests.sh
new file mode 100755
index 0000000..45f913b
--- /dev/null
+++ b/dl-tests.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+tag=3.1.0
+
+set -e
+
+tmp=$(mktemp -d)
+
+trap cleanup EXIT
+cleanup() {
+    set +e
+    [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
+}
+
+unset CDPATH
+pwd=$(pwd)
+
+pushd "$tmp"
+git clone git://github.com/visionmedia/express.git
+cd express
+git archive --prefix="test/" --format=tar tags/${tag}:test/ \
+    | bzip2 > "$pwd"/tests-${tag}.tar.bz2
+popd
diff --git a/express.1 b/express.1
new file mode 100644
index 0000000..58d92c3
--- /dev/null
+++ b/express.1
@@ -0,0 +1,50 @@
+.TH EXPRESS "1" "March 2013" "express 3.1.0" "User Commands"
+.SH NAME
+express \- Sinatra inspired web development framework
+.SH SYNOPSIS
+Usage: express [options]
+.SH DESCRIPTION
+This Node.js module is a fast, unopinionated, minimalist web development
+framework inspired by Sinatra.
+
+The Express philosophy is to provide small, robust tooling for HTTP servers.
+Making it a great solution for single page applications, web sites, hybrids,
+or public HTTP APIs.
+
+Built on Connect you can use only what you need, and nothing more,
+applications can be as big or as small as you like, even a single file.
+Express does not force you to use any specific ORM or template engine. With
+support for over 14 template engines via Consolidate.js you can quickly craft
+your perfect framework.
+.SH OPTIONS
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+output usage information
+.TP
+\fB\-V\fR, \fB\-\-version\fR
+output the version number
+.TP
+\fB\-s\fR, \fB\-\-sessions\fR
+add session support
+.TP
+\fB\-e\fR, \fB\-\-ejs\fR
+add ejs engine support (defaults to jade)
+.TP
+\fB\-J\fR, \fB\-\-jshtml\fR
+add jshtml engine support (defaults to jade)
+.TP
+\fB\-H\fR, \fB\-\-hogan\fR
+add hogan.js engine support
+.TP
+\fB\-c\fR, \fB\-\-css\fR <engine>
+add stylesheet <engine> support (less|stylus) (defaults to plain css)
+.TP
+\fB\-f\fR, \fB\-\-force\fR
+force on non\-empty directory
+.SH AUTHORS
+The main author of expresso is TJ Holowaychuk <\fBtj at vision-media.ca\fR>.
+For a more complete list of contributors, see the GitHub page at
+<\fBhttps://github.com/visionmedia/express\fR>
+.SH REPORTING BUGS
+Please report bugs on the GitHub issue tracker:
+<\fBhttps://github.com/visionmedia/express/issues\fR>
diff --git a/nodejs-express.spec b/nodejs-express.spec
new file mode 100644
index 0000000..7c0bb4c
--- /dev/null
+++ b/nodejs-express.spec
@@ -0,0 +1,114 @@
+%global enable_tests 0
+
+Name:       nodejs-express
+Version:    3.1.0
+Release:    3%{?dist}
+Summary:    Sinatra inspired web development framework for Node.js
+License:    MIT
+Group:      System Environment/Libraries
+URL:        https://github.com/visionmedia/express
+Source0:    http://registry.npmjs.org/express/-/express-%{version}.tgz
+# The test files are not included in the npm tarball.
+# Source1 is generated by running Source10, which pulls from the upstream
+# version control repository.
+Source1:    tests-%{version}.tar.bz2
+Source10:   dl-tests.sh
+# Pull request sent upstream:
+# https://github.com/visionmedia/express/pull/1545
+Source20:   express.1
+BuildArch:  noarch
+
+BuildRequires:  nodejs-devel
+
+%if 0%{?enable_tests}
+BuildRequires:  npm(buffer-crc32)
+BuildRequires:  npm(connect)
+BuildRequires:  npm(cookie)
+BuildRequires:  npm(cookie-signature)
+BuildRequires:  npm(debug)
+BuildRequires:  npm(fresh)
+BuildRequires:  npm(jade)
+BuildRequires:  npm(methods)
+BuildRequires:  npm(mocha)
+BuildRequires:  npm(range-parser)
+BuildRequires:  npm(send)
+BuildRequires:  npm(should)
+BuildRequires:  npm(supertest)
+%endif
+
+%description
+This Node.js module is a fast, unopinionated, minimalist web development
+framework inspired by Sinatra.
+
+The Express philosophy is to provide small, robust tooling for HTTP servers.
+Making it a great solution for single page applications, web sites, hybrids,
+or public HTTP APIs.
+
+Built on Connect you can use only what you need, and nothing more,
+applications can be as big or as small as you like, even a single file.
+Express does not force you to use any specific ORM or template engine. With
+support for over 14 template engines via Consolidate.js you can quickly craft
+your perfect framework.
+
+
+%prep
+%setup -q -n package
+%setup -q -T -D -a 1 -n package
+%nodejs_fixdep commander '1.1.x'
+%nodejs_fixdep connect '~2.7.2'
+%nodejs_fixdep mkdirp '0.3.x'
+%nodejs_fixdep buffer-crc32 '~0.1'
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/express
+cp -pr package.json client.js index.js lib/ \
+    %{buildroot}%{nodejs_sitelib}/express
+mkdir -p %{buildroot}%{nodejs_sitelib}/express/bin
+install -p -D -m0755 bin/express \
+    %{buildroot}%{nodejs_sitelib}/express/bin/express
+mkdir -p %{buildroot}%{_bindir}
+ln -s %{nodejs_sitelib}/express/bin/express %{buildroot}%{_bindir}/express
+
+mkdir -p %{buildroot}%{_mandir}/man1
+install -p -D -m0644 %{SOURCE20} %{buildroot}%{_mandir}/man1/express.1
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+cp -pr %{nodejs_sitelib} .
+rm -f test.js
+NODE_ENV=test %{nodejs_sitelib}/mocha/bin/mocha --reporter dot
+NODE_ENV=test %{nodejs_sitelib}/mocha/bin/mocha --reporter dot --bail \
+    test/acceptance/*.js
+%endif
+
+
+%files
+%doc History.md LICENSE Readme.md
+%{nodejs_sitelib}/express
+%{_bindir}/express
+%{_mandir}/man1/express.1*
+
+
+%changelog
+* Sat Mar 16 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 3.1.0-3
+- add a custom man page
+
+* Wed Feb 20 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 3.1.0-2
+- fix version of npm(connect) dependency
+
+* Wed Feb 20 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 3.1.0-1
+- update to upstream release 3.1.0
+
+* Wed Feb 13 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 3.0.6-2
+- make use of %%nodejs_fixdep
+
+* Mon Feb 11 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 3.0.6-1
+- initial package
diff --git a/sources b/sources
index e69de29..aa957ce 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+856a77afff056422aae5a70f794bc29e  express-3.1.0.tgz
+5091d605fb9fc9e881197adf41dde06f  tests-3.1.0.tar.bz2


More information about the scm-commits mailing list