diff --git a/.gitignore b/.gitignore index 049d742..82e8bd8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /oauth-sign-0.2.0.tgz /oauth-sign-0.3.0.tgz /oauth-sign-0.8.0.tgz +/oauth-sign-0.8.1.tgz diff --git a/nodejs-oauth-sign.spec b/nodejs-oauth-sign.spec index f5a9395..a4a378a 100644 --- a/nodejs-oauth-sign.spec +++ b/nodejs-oauth-sign.spec @@ -1,42 +1,55 @@ %{?nodejs_find_provides_and_requires} -Name: nodejs-oauth-sign -Version: 0.8.0 -Release: 1%{?dist} -Summary: OAuth1 signing for Node.js -License: ASL 2.0 -URL: https://github.com/mikeal/oauth-sign -Source0: http://registry.npmjs.org/oauth-sign/-/oauth-sign-%{version}.tgz -BuildArch: noarch -ExclusiveArch: %{nodejs_arches} noarch +%global enable_tests 0 + +Name: nodejs-oauth-sign +Version: 0.8.1 +Release: 1%{?dist} +Summary: OAuth1 signing for Node.js +License: ASL 2.0 +URL: https://github.com/mikeal/oauth-sign +Source0: https://registry.npmjs.org/oauth-sign/-/oauth-sign-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging %description %{summary}. + %prep %setup -q -n package + %build #nothing to do + %install mkdir -p %{buildroot}%{nodejs_sitelib}/oauth-sign cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/oauth-sign - %nodejs_symlink_deps -#test requires network -#%%check -#%%{__nodejs} test.js + +%check +%nodejs_symlink_deps --check +%__nodejs -e "require('./')" +%if 0%{?enable_tests} +%__nodejs test.js +%endif + %files %doc README.md %license LICENSE %{nodejs_sitelib}/oauth-sign + %changelog +* Sun Jan 31 2016 Tom Hughes - 0.8.1-1 +- Update to 0.8.1 upstream release + * Sat Oct 24 2015 Piotr Popieluch - 0.8.0-1 - Update to new version - Update to new package guidelines diff --git a/sources b/sources index fa8d4ad..bdfc43b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -ee79a38cc4472592711281bb2410c1a1 oauth-sign-0.8.0.tgz +dfabb2d0d0778318f1dbc66d26ebc5a0 oauth-sign-0.8.1.tgz