package init
This commit is contained in:
parent
06064a7901
commit
bd6f030ab7
14
LICENSE
Normal file
14
LICENSE
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Copyright (c) 2015, Rebecca Turner
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software for
|
||||||
|
any purpose with or without fee is hereby granted, provided that the
|
||||||
|
above copyright notice and this permission notice appear in all
|
||||||
|
copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY
|
||||||
|
SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
||||||
|
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
46
nodejs-require-inject.spec
Normal file
46
nodejs-require-inject.spec
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
%global npm_name require-inject
|
||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
%global enable_tests 1
|
||||||
|
Name: nodejs-require-inject
|
||||||
|
Version: 1.2.0
|
||||||
|
Release: 1
|
||||||
|
Summary: A simple mock injector needing no instrumentation in the libraries being tested
|
||||||
|
Url: https://github.com/iarna/require-inject
|
||||||
|
Source0: https://registry.npmjs.org/require-inject/-/require-inject-%{version}.tgz
|
||||||
|
Source1: https://raw.githubusercontent.com/kasicka/require-inject/12ac5bd3a1b13adeda81f5c4b17d41a86a9e99e3/LICENSE
|
||||||
|
License: ISC
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildRequires: nodejs-devel nodejs-packaging
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
BuildRequires: npm(tap)
|
||||||
|
%endif
|
||||||
|
%description
|
||||||
|
A simple mock injector needing no instrumentation in the libraries being tested
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n package
|
||||||
|
cp -p %{SOURCE1} .
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
|
||||||
|
cp -pr package.json index.js \
|
||||||
|
%{buildroot}%{nodejs_sitelib}/%{npm_name}
|
||||||
|
%{nodejs_symlink_deps}
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{nodejs_symlink_deps} --check
|
||||||
|
tap test/*.js
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{nodejs_sitelib}/require-inject
|
||||||
|
%doc README.md
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Aug 14 2020 wangyue <wangyue92@huawei.com> - 1.2.0-1
|
||||||
|
- Package init
|
||||||
5
nodejs-require-inject.yaml
Normal file
5
nodejs-require-inject.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
git_url: https://github.com/iarna/require-inject
|
||||||
|
version_control: github
|
||||||
|
src_repo: iarna/require-inject
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
BIN
require-inject-1.2.0.tgz
Normal file
BIN
require-inject-1.2.0.tgz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user