!1 package init

Merge pull request !1 from jackie_wu123/master
This commit is contained in:
openeuler-ci-bot 2020-08-21 14:59:09 +08:00 committed by Gitee
commit 5a9029009e
3 changed files with 49 additions and 0 deletions

BIN
arrify-1.0.1.tar.gz Normal file

Binary file not shown.

45
nodejs-arrify.spec Normal file
View File

@ -0,0 +1,45 @@
%global enable_tests 0
%global srcname arrify
Name: nodejs-%{srcname}
Version: 1.0.1
Release: 1
Summary: Convert a value to an array
License: MIT
URL: https://www.npmjs.com/package/%{srcname}
Source0: https://github.com/sindresorhus/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(ava)
%endif
%description
%{summary}.
%prep
%autosetup -n %{srcname}-%{version}
rm -rf node_modules/
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
cp -pr index.js package.json \
%{buildroot}%{nodejs_sitelib}/%{srcname}
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'
%if 0%{?enable_tests}
node test.js
%endif
%files
%doc readme.md
%license license
%{nodejs_sitelib}/%{srcname}
%changelog
* Mon Aug 10 2020 wutao <wutao61@huawei.com> - 1.0.1-1
- package init

4
nodejs-arrify.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: sindresorhus/arrify
tag_prefix: "^v"
seperator: "."