[nodejs-passport] Initial import of nodejs-passport

Tom Hughes tomh at fedoraproject.org
Mon Mar 4 14:16:27 UTC 2013


commit 980331581940fe7939980618522742b47234518a
Author: Tom Hughes <tom at compton.nu>
Date:   Mon Mar 4 14:16:09 2013 +0000

    Initial import of nodejs-passport

 .gitignore           |    2 +
 nodejs-passport.spec |   77 ++++++++++++++++++++++++++++++++++++++++++++++++++
 passport-dl-tests.sh |   23 +++++++++++++++
 sources              |    2 +
 4 files changed, 104 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e35474b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/passport-0.1.16.tgz
+/passport-tests-v0.1.16.tar.bz2
diff --git a/nodejs-passport.spec b/nodejs-passport.spec
new file mode 100644
index 0000000..99fbdf1
--- /dev/null
+++ b/nodejs-passport.spec
@@ -0,0 +1,77 @@
+%global enable_tests 0
+
+Name:           nodejs-passport
+Version:        0.1.16
+Release:        1%{?dist}
+Summary:        Simple, unobtrusive authentication for Node.js
+
+License:        MIT
+URL:            https://github.com/jaredhanson/passport
+Source0:        http://registry.npmjs.org/passport/-/passport-%{version}.tgz
+# The test files are not included in the npm tarball.
+# Source1 is generated using Source10, which pulls from the upstream
+# version control repository.
+Source1:        passport-tests-v%{version}.tar.bz2
+Source10:       passport-dl-tests.sh
+BuildArch:      noarch
+
+BuildRequires:  nodejs-devel
+
+%if 0%{?enable_tests}
+BuildRequires:  npm(vows)
+BuildRequires:  npm(pkginfo)
+%endif
+
+%description
+Passport is an authentication framework for Connect and Express, which
+is extensible through "plugins" known as strategies.
+
+Passport is designed to be a general-purpose, yet simple, modular, and
+unobtrusive, authentication framework. Passport's sole purpose is to
+authenticate requests. In being modular, it doesn't force any particular
+authentication strategy on your application. In being unobtrusive, it
+doesn't mount routes in your application. The API is simple: you give
+Passport a request to authenticate, and Passport provides hooks for
+controlling what occurs when authentication succeeds or fails.
+
+
+%prep
+%setup -q -n package
+%setup -T -D -a 1 -q -n package
+%nodejs_fixdep pkginfo "~0.3.0"
+rm -rf node_modules
+
+
+%build
+
+
+%if 0%{?enable_tests}
+%check
+ln -s %{nodejs_sitelib} .
+NODE_PATH=lib %{nodejs_sitelib}/vows/bin/vows \
+  test/*-test.js test/**/*-test.js test/context/http/*-test.js
+%endif
+
+
+%install
+mkdir -p %{buildroot}/%{nodejs_sitelib}/passport
+cp -pr package.json lib %{buildroot}/%{nodejs_sitelib}/passport
+%nodejs_symlink_deps
+
+
+%files
+%doc LICENSE README.md
+%{nodejs_sitelib}/passport
+
+
+%changelog
+* Sat Mar  2 2013 Tom Hughes <tom at compton.nu> - 0.1.16-1
+- Update to 0.1.16 upstream release
+- BuildRequire pkginfo for tests
+- Link node_modules for tests
+
+* Sat Feb 23 2013 Tom Hughes <tom at compton.nu> - 0.1.15-2
+- Update pkginfo dependency
+
+* Sun Feb 10 2013 Tom Hughes <tom at compton.nu> - 0.1.15-1
+- Initial build of 0.1.15
diff --git a/passport-dl-tests.sh b/passport-dl-tests.sh
new file mode 100755
index 0000000..0971400
--- /dev/null
+++ b/passport-dl-tests.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+tag=v0.1.16
+
+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/jaredhanson/passport.git
+cd passport
+git archive --prefix="test/" --format=tar tags/${tag}:test/ \
+    | bzip2 > "$pwd"/passport-tests-${tag}.tar.bz2
+popd
diff --git a/sources b/sources
index e69de29..c953527 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+52779982df72fd262e728fc25c3f1466  passport-0.1.16.tgz
+9abc391fc0aa2db98f4a62bc654957a9  passport-tests-v0.1.16.tar.bz2


More information about the scm-commits mailing list