From bd6f030ab708999d576b567a745fdddb4bff741b Mon Sep 17 00:00:00 2001 From: wang_yue111 <648774160@qq.com> Date: Thu, 20 Aug 2020 11:14:09 +0800 Subject: [PATCH] package init --- LICENSE | 14 +++++++++++ nodejs-require-inject.spec | 46 +++++++++++++++++++++++++++++++++++++ nodejs-require-inject.yaml | 5 ++++ require-inject-1.2.0.tgz | Bin 0 -> 1892 bytes 4 files changed, 65 insertions(+) create mode 100644 LICENSE create mode 100644 nodejs-require-inject.spec create mode 100644 nodejs-require-inject.yaml create mode 100644 require-inject-1.2.0.tgz diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..93b59b7 --- /dev/null +++ b/LICENSE @@ -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. diff --git a/nodejs-require-inject.spec b/nodejs-require-inject.spec new file mode 100644 index 0000000..ddd2335 --- /dev/null +++ b/nodejs-require-inject.spec @@ -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 - 1.2.0-1 +- Package init diff --git a/nodejs-require-inject.yaml b/nodejs-require-inject.yaml new file mode 100644 index 0000000..65d1d71 --- /dev/null +++ b/nodejs-require-inject.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/iarna/require-inject +version_control: github +src_repo: iarna/require-inject +tag_prefix: "^v" +seperator: "." diff --git a/require-inject-1.2.0.tgz b/require-inject-1.2.0.tgz new file mode 100644 index 0000000000000000000000000000000000000000..73f4733d1eabd454b858d40ef57c89f175576c1f GIT binary patch literal 1892 zcmV-q2b=gGiwFP!000001MOLDZ`(Ey?q~f9!u{YExU&3~0O``LXpN!6)(ljI+^;-muuz+BkR0l;%?4bT{mUksD2zjup>LG4qgU zKF?A{<}yAZj$JAe%Xvl(AH#%TEa75GgoJ5rR6b|IP~?YaVrGn_e5|PAOp`Igm4<1< z5~prXxz)o(!ps2E6C#=ry- zFZ@X1a@^#x6|Yz(H3#o4N_H(Wdp=WcJYTNTV&o_IH_OK%IQxK8C1|I5j3II@eUS2) z32mi4`Qwp4%+tqyW8nXiUYg;;S5Y_!yL~GpxC}mb$nNMCsmS}CP-JsH6;iR=*YWQB zA4UBE=Kn#j*Wd3A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