18e720a
Name:           nodejs-oauth
ca3cf46
Version:        0.9.13
ca3cf46
Release:        1%{?dist}
18e720a
Summary:        Library for interacting with OAuth 1.0, 1.0A, 2 and Echo
18e720a
18e720a
License:        MIT
18e720a
URL:            https://github.com/ciaranj/node-oauth
18e720a
Source0:        http://registry.npmjs.org/oauth/-/oauth-%{version}.tgz
18e720a
# Remove fallback to bundled SHA1 implementation
18e720a
Patch0:         nodejs-oauth-sha1.patch
18e720a
BuildArch:      noarch
84e99a5
ExclusiveArch:  %{nodejs_arches} noarch
18e720a
84e99a5
BuildRequires:  nodejs-packaging
18e720a
18e720a
BuildRequires:  npm(vows)
18e720a
18e720a
%description
18e720a
Library for interacting with OAuth 1.0, 1.0A, 2 and Echo. Provides
18e720a
simplified client access and allows for construction of more complex
18e720a
APIs and OAuth providers.
18e720a
18e720a
18e720a
%prep
18e720a
%setup -q -n package
18e720a
%patch0 -p1
18e720a
rm -rf node_modules lib/sha1.js tests/sha1.js
18e720a
18e720a
18e720a
%build
18e720a
18e720a
18e720a
%install
18e720a
mkdir -p %{buildroot}/%{nodejs_sitelib}/oauth
18e720a
cp -pr package.json index.js lib %{buildroot}/%{nodejs_sitelib}/oauth
18e720a
%nodejs_symlink_deps
18e720a
18e720a
84e99a5
%check
84e99a5
%nodejs_symlink_deps --check
84e99a5
%{nodejs_sitelib}/vows/bin/vows tests/* --spec
84e99a5
84e99a5
18e720a
%files
18e720a
%doc LICENSE Readme.md examples
18e720a
%{nodejs_sitelib}/oauth
18e720a
18e720a
18e720a
%changelog
ca3cf46
* Sun May 17 2015 Tom Hughes <tom@compton.nu> - 0.9.13-1
ca3cf46
- Update to 0.9.13 upstream release
ca3cf46
02801be
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.12-2
02801be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
02801be
e5e89d6
* Fri May 23 2014 Tom Hughes <tom@compton.nu> - 0.9.12-1
e5e89d6
- Update to 0.9.12 upstream release
e5e89d6
84e99a5
* Mon Jan  6 2014 Tom Hughes <tom@compton.nu> - 0.9.11-1
84e99a5
- Update to 0.9.11 upstream release
84e99a5
- Update to latest nodejs packaging standards
84e99a5
89724d5
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.10-2
89724d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
89724d5
18e720a
* Sun Mar 10 2013 Tom Hughes <tom@compton.nu> - 0.9.10-1
18e720a
- Update to 0.9.10 upstream release
18e720a
18e720a
* Sun Mar 10 2013 Tom Hughes <tom@compton.nu> - 0.9.8-4
18e720a
- Remove fallback to bundled SHA1 implementation
18e720a
18e720a
* Sat Mar  9 2013 Tom Hughes <tom@compton.nu> - 0.9.8-3
18e720a
- Replace bundled sha1.js with a dependency on jshashes
18e720a
- Remove BSD from license
18e720a
18e720a
* Sat Mar  2 2013 Tom Hughes <tom@compton.nu> - 0.9.8-2
18e720a
- Link node_modules for tests
18e720a
- Improve description
18e720a
- Add BSD to license
18e720a
18e720a
* Sun Feb 10 2013 Tom Hughes <tom@compton.nu> - 0.9.8-1
18e720a
- Initial build of 0.9.8