diff --git a/caller-path-2.0.0.tgz b/caller-path-2.0.0.tgz deleted file mode 100644 index 0bec58a..0000000 Binary files a/caller-path-2.0.0.tgz and /dev/null differ diff --git a/nodejs-caller-path.spec b/nodejs-caller-path.spec index 18a25f4..3feaf20 100644 --- a/nodejs-caller-path.spec +++ b/nodejs-caller-path.spec @@ -6,8 +6,7 @@ Release: 1 Summary: Get the path of the caller module License: MIT URL: https://github.com/sindresorhus/caller-path -Source0: http://registry.npmjs.org/caller-path/-/caller-path-%{version}.tgz -Source1: https://raw.githubusercontent.com/sindresorhus/caller-path/master/test.js +Source0: https://github.com/sindresorhus/caller-path/archive/v%{version}.tar.gz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging @@ -20,7 +19,7 @@ cached and it will return the first caller module, not necessarily the current one. %prep -%setup -q -n package +%autosetup -n caller-path-%{version} rm -rf node_modules cp -p %{SOURCE1} . diff --git a/test.js b/test.js deleted file mode 100644 index 9cba378..0000000 --- a/test.js +++ /dev/null @@ -1,11 +0,0 @@ -import path from 'path'; -import test from 'ava'; -import fixture from './fixture'; -import fixture2 from './fixture2'; -import fixture3 from './fixture3'; - -test(t => { - t.is(path.basename(fixture()), 'test.js'); - t.is(path.basename(fixture2()), 'test.js'); - t.is(path.basename(fixture3()), 'test.js'); -}); diff --git a/v2.0.0.tar.gz b/v2.0.0.tar.gz new file mode 100644 index 0000000..a92e85c Binary files /dev/null and b/v2.0.0.tar.gz differ