9803315
Name:           nodejs-passport
3c3ebca
Version:        0.4.0
7277f76
Release:        2%{?dist}
9803315
Summary:        Simple, unobtrusive authentication for Node.js
9803315
9803315
License:        MIT
9803315
URL:            https://github.com/jaredhanson/passport
c03c67d
Source0:        https://github.com/jaredhanson/passport/archive/v%{version}/%{name}-%{version}.tar.gz
9803315
BuildArch:      noarch
9803315
93cf0ee
BuildRequires:  nodejs-packaging
9803315
70cd6f8
BuildRequires:  npm(mocha)
56b6ca3
BuildRequires:  npm(pause)
70cd6f8
BuildRequires:  npm(chai)
70cd6f8
BuildRequires:  npm(chai-connect-middleware)
70cd6f8
BuildRequires:  npm(chai-passport-strategy) >= 0.2.0
70cd6f8
BuildRequires:  npm(passport-strategy)
70cd6f8
BuildRequires:  npm(proxyquire)
9803315
9803315
%description
9803315
Passport is an authentication framework for Connect and Express, which
9803315
is extensible through "plugins" known as strategies.
9803315
9803315
Passport is designed to be a general-purpose, yet simple, modular, and
9803315
unobtrusive, authentication framework. Passport's sole purpose is to
9803315
authenticate requests. In being modular, it doesn't force any particular
9803315
authentication strategy on your application. In being unobtrusive, it
9803315
doesn't mount routes in your application. The API is simple: you give
9803315
Passport a request to authenticate, and Passport provides hooks for
9803315
controlling what occurs when authentication succeeds or fails.
9803315
9803315
9803315
%prep
340b665
%setup -q -n passport-%{version}
9803315
rm -rf node_modules
9803315
9803315
9803315
%build
9803315
9803315
56b6ca3
%install
56b6ca3
mkdir -p %{buildroot}/%{nodejs_sitelib}/passport
56b6ca3
cp -pr package.json lib %{buildroot}/%{nodejs_sitelib}/passport
56b6ca3
%nodejs_symlink_deps
56b6ca3
56b6ca3
9803315
%check
56b6ca3
%nodejs_symlink_deps --check
70cd6f8
%{nodejs_sitelib}/mocha/bin/mocha --reporter spec \
70cd6f8
  --require test/bootstrap/node test/*.test.js test/**/*.test.js
9803315
c03c67d
9803315
%files
07891f7
%doc README.md
07891f7
%license LICENSE
9803315
%{nodejs_sitelib}/passport
9803315
9803315
9803315
%changelog
7277f76
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2
7277f76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7277f76
3c3ebca
* Sat Aug 12 2017 Tom Hughes <tom@compton.nu> - 0.4.0-1
3c3ebca
- Update to 0.4.0 upstream release
3c3ebca
86b530f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-4
86b530f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
86b530f
b0c62f0
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-3
b0c62f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b0c62f0
41badd4
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-2
41badd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
41badd4
c03c67d
* Tue Nov 10 2015 Tom Hughes <tom@compton.nu> - 0.3.2-1
c03c67d
- Update to 0.3.2 upstream release
c03c67d
340b665
* Mon Aug 24 2015 Tom Hughes <tom@compton.nu> - 0.3.0-1
340b665
- Update to 0.3.0 upstream release
340b665
e946bfc
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-2
e946bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e946bfc
07891f7
* Fri May 22 2015 Tom Hughes <tom@compton.nu> - 0.2.2-1
07891f7
- Update to 0.2.2 upstream release
07891f7
- Switch to %%license for the license file
07891f7
3918e73
* Tue Sep  2 2014 Tom Hughes <tom@compton.nu> - 0.2.1-1
3918e73
- Update to 0.2.1 upstream release
3918e73
- Switch to source from github to get tests
3918e73
ff469cb
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
ff469cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ff469cb
70cd6f8
* Sun Jan 26 2014 Tom Hughes <tom@compton.nu> - 0.2.0-1
70cd6f8
- Update to 0.2.0 upstream release
70cd6f8
93cf0ee
* Sat Jan  4 2014 Tom Hughes <tom@compton.nu> - 0.1.18-1
93cf0ee
- Update to 0.1.18 upstream release
93cf0ee
- Update to latest nodejs packaging standards
93cf0ee
ee3af3c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.17-2
ee3af3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ee3af3c
56b6ca3
* Mon May 13 2013 Tom Hughes <tom@compton.num> - 0.1.17-1
56b6ca3
- Update to 0.1.17 upstream release
56b6ca3
- Enable tests
56b6ca3
9803315
* Sat Mar  2 2013 Tom Hughes <tom@compton.nu> - 0.1.16-1
9803315
- Update to 0.1.16 upstream release
9803315
- BuildRequire pkginfo for tests
9803315
- Link node_modules for tests
9803315
9803315
* Sat Feb 23 2013 Tom Hughes <tom@compton.nu> - 0.1.15-2
9803315
- Update pkginfo dependency
9803315
9803315
* Sun Feb 10 2013 Tom Hughes <tom@compton.nu> - 0.1.15-1
9803315
- Initial build of 0.1.15