diff --git a/nodejs-resolve.spec b/nodejs-resolve.spec new file mode 100644 index 0000000..659b172 --- /dev/null +++ b/nodejs-resolve.spec @@ -0,0 +1,60 @@ +%{?nodejs_find_provides_and_requires} + +# Disable tests due to the way errors are now thrown +%global enable_tests 0 + +Name: nodejs-resolve +Version: 1.7.1 +Release: 1 +Summary: Resolve like require.resolve() on behalf of files asynchronously/synchronously + +License: MIT +URL: https://github.com/substack/node-resolve +Source0: https://registry.npmjs.org/resolve/-/resolve-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs-packaging + +%if 0%{?enable_tests} +BuildRequires: npm(tap) npm(tape) +%endif + +%description +%{summary}. + + +%prep +%setup -q -n package + + +%build +#nothing to do + + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/resolve +cp -pr package.json index.js lib/ \ + %{buildroot}%{nodejs_sitelib}/resolve + +%nodejs_symlink_deps + + +%check +%nodejs_symlink_deps --check +%__nodejs -e "require('./')" +%if 0%{?enable_tests} +%tap test/*.js +%endif + + +%files +%{!?_licensedir:%global license %doc} +%doc readme.markdown example/ +%license LICENSE +%{nodejs_sitelib}/resolve + + +%changelog +* Wed Aug 19 2020 wangxiao - 1.7.1-1 +- package init diff --git a/nodejs-resolve.yaml b/nodejs-resolve.yaml new file mode 100644 index 0000000..efadb5e --- /dev/null +++ b/nodejs-resolve.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/substack/node-resolve +version_control: github +src_repo: substack/node-resolve +tag_prefix: "^v" +seperator: "." diff --git a/resolve-1.7.1.tgz b/resolve-1.7.1.tgz new file mode 100644 index 0000000..ce6f392 Binary files /dev/null and b/resolve-1.7.1.tgz differ