!1 Package init

Merge pull request !1 from wangxiao65/master
This commit is contained in:
openeuler-ci-bot 2020-08-21 15:20:07 +08:00 committed by Gitee
commit 9706071bf9
3 changed files with 65 additions and 0 deletions

60
nodejs-resolve.spec Normal file
View File

@ -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 <wangxiao65@huawei.com> - 1.7.1-1
- package init

5
nodejs-resolve.yaml Normal file
View File

@ -0,0 +1,5 @@
git_url: https://github.com/substack/node-resolve
version_control: github
src_repo: substack/node-resolve
tag_prefix: "^v"
seperator: "."

BIN
resolve-1.7.1.tgz Normal file

Binary file not shown.