Package init
This commit is contained in:
parent
5190b0f542
commit
ba61df6fc0
BIN
deep-is-0.1.3.tgz
Normal file
BIN
deep-is-0.1.3.tgz
Normal file
Binary file not shown.
49
nodejs-deep-is.spec
Normal file
49
nodejs-deep-is.spec
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
%global packagename deep-is
|
||||||
|
%global enable_tests 1
|
||||||
|
Name: nodejs-deep-is
|
||||||
|
Version: 0.1.3
|
||||||
|
Release: 1
|
||||||
|
Summary: Node's assert.deepEqual algorithm except for NaN being equal to NaN
|
||||||
|
License: MIT
|
||||||
|
URL: http://github.com/thlorenz/deep-is.git
|
||||||
|
Source0: https://registry.npmjs.org/deep-is/-/deep-is-%{version}.tgz
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
BuildRequires: npm(tape)
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
Node's assert.deepEqual algorithm except for NaN being equal to NaN
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n package
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||||
|
cp -pr package.json *.js \
|
||||||
|
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||||
|
%nodejs_symlink_deps
|
||||||
|
|
||||||
|
%check
|
||||||
|
%nodejs_symlink_deps --check
|
||||||
|
%{__nodejs} -e 'require("./")'
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
%{_bindir}/tape test/*.js
|
||||||
|
%else
|
||||||
|
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{!?_licensedir:%global license %doc}
|
||||||
|
%doc *.markdown example/
|
||||||
|
%license LICENSE
|
||||||
|
%{nodejs_sitelib}/%{packagename}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Aug 18 2020 leiju <leiju4@huawei.com> - 0.1.3-1
|
||||||
|
- Package init
|
||||||
4
nodejs-deep-is.yaml
Normal file
4
nodejs-deep-is.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: thlorenz/deep-is
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user