package init

This commit is contained in:
jackie_wu 2020-08-20 11:41:06 +08:00
parent 4b87ea0d62
commit ddb5153884
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: "."