[nodejs-express-session] Initial import
Jamie Nguyen
jamielinux at fedoraproject.org
Thu Mar 13 18:12:02 UTC 2014
commit e36dac40c1bcf9733761cb6b5c6422713f47545e
Author: Jamie Nguyen <j at jamielinux.com>
Date: Thu Mar 13 18:10:27 2014 +0000
Initial import
.gitignore | 1 +
LICENSE | 18 ++++++++++
nodejs-express-session.spec | 77 +++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 97 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7be9c84 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/express-session-1.0.2.tgz
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..c9b44cb
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,18 @@
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/nodejs-express-session.spec b/nodejs-express-session.spec
new file mode 100644
index 0000000..ff434db
--- /dev/null
+++ b/nodejs-express-session.spec
@@ -0,0 +1,77 @@
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 0
+
+Name: nodejs-express-session
+Version: 1.0.2
+Release: 1%{?dist}
+Summary: A module to setup a session store with the given options
+License: MIT
+Group: System Environment/Libraries
+URL: https://github.com/expressjs/session
+Source0: http://registry.npmjs.org/express-session/-/express-session-%{version}.tgz
+# Add a copy of the license text to comply with license requirements.
+# https://github.com/expressjs/session/pull/14
+Source20: LICENSE
+
+BuildArch: noarch
+%if 0%{?fedora} >= 19
+ExclusiveArch: %{nodejs_arches} noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm} noarch
+%endif
+
+BuildRequires: nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires: mocha
+BuildRequires: npm(buffer-crc32)
+BuildRequires: npm(connect)
+BuildRequires: npm(cookie-parser)
+BuildRequires: npm(cookie)
+BuildRequires: npm(cookie-signature)
+BuildRequires: npm(debug)
+BuildRequires: npm(should)
+BuildRequires: npm(supertest)
+BuildRequires: npm(uid2)
+BuildRequires: npm(utils-merge)
+%endif
+
+%description
+%{summary}.
+
+
+%prep
+%setup -q -n package
+cp -p %{SOURCE20} .
+
+%nodejs_fixdep cookie '~0.1.0'
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/express-session
+cp -pr package.json index.js session/ \
+ %{buildroot}%{nodejs_sitelib}/express-session
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+/usr/bin/mocha --bail --ui bdd --reporter list -- test/*.js
+%endif
+
+
+%files
+%doc LICENSE README.md
+%{nodejs_sitelib}/express-session
+
+
+%changelog
+* Mon Mar 10 2014 Jamie Nguyen <jamielinux at fedoraproject.org> - 1.0.2-1
+- initial package
diff --git a/sources b/sources
index e69de29..0e85655 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f43ffbebd77fe0cd796096c0ba7a326a express-session-1.0.2.tgz
More information about the scm-commits
mailing list