package init
This commit is contained in:
parent
4b87ea0d62
commit
ddb5153884
BIN
arrify-1.0.1.tar.gz
Normal file
BIN
arrify-1.0.1.tar.gz
Normal file
Binary file not shown.
45
nodejs-arrify.spec
Normal file
45
nodejs-arrify.spec
Normal 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
4
nodejs-arrify.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: sindresorhus/arrify
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user