diff --git a/nodejs-detective.spec b/nodejs-detective.spec index 33100f5..c44b2dd 100644 --- a/nodejs-detective.spec +++ b/nodejs-detective.spec @@ -2,21 +2,17 @@ %global enable_tests 1 -Name: nodejs-detective -Version: 2.3.0 -Release: 3%{?dist} -Summary: Node.js module to find all calls to require() -License: MIT -Group: System Environment/Libraries -URL: https://github.com/substack/node-detective -Source0: http://registry.npmjs.org/detective/-/detective-%{version}.tgz - -BuildArch: noarch -%if 0%{?fedora} >= 19 -ExclusiveArch: %{nodejs_arches} noarch -%else -ExclusiveArch: %{ix86} x86_64 %{arm} noarch -%endif +Name: nodejs-detective +Version: 2.3.0 +Release: 4%{?dist} +Summary: Node.js module to find all calls to require() + +License: MIT +Group: System Environment/Libraries +URL: https://github.com/substack/node-detective +Source0: http://registry.npmjs.org/detective/-/detective-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging @@ -31,9 +27,9 @@ Node.js module to find all calls to require(), no matter how crazily nested, using a proper walk of the AST. %prep -%setup -q -n package -%nodejs_fixdep esprima '~1.1' -%nodejs_fixdep escodegen '~1.3' +%autosetup -n package +%nodejs_fixdep esprima "^2.7.1" +%nodejs_fixdep escodegen "^1.3.2" %build @@ -44,7 +40,6 @@ using a proper walk of the AST. mkdir -p %{buildroot}%{nodejs_sitelib}/detective cp -pr package.json index.js \ %{buildroot}%{nodejs_sitelib}/detective - %nodejs_symlink_deps @@ -56,11 +51,16 @@ cp -pr package.json index.js \ %files -%doc LICENSE readme.markdown example/ +%{!?_licensedir:%global license %doc} +%doc readme.markdown example/ +%license LICENSE %{nodejs_sitelib}/detective %changelog +* Fri Jan 1 2016 Tom Hughes - 2.3.0-4 +- Update npm(esprima) dependency + * Wed Jun 17 2015 Fedora Release Engineering - 2.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild