!1 add package

Merge pull request !1 from 付安安/master
This commit is contained in:
openeuler-ci-bot 2020-09-07 21:21:33 +08:00 committed by Gitee
commit 0af5803733
3 changed files with 43 additions and 0 deletions

39
nodejs-eyes.spec Normal file
View File

@ -0,0 +1,39 @@
%{?nodejs_find_provides_and_requires}
%global enable_tests 1
Name: nodejs-eyes
Version: 0.1.8
Release: 1
Summary: A customizable value inspector for Node.js
License: MIT
URL: https://github.com/cloudhead/eyes.js
Source0: https://github.com/cloudhead/eyes.js/archive/v%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
BuildRequires: nodejs-packaging
%description
%{summary}
%prep
%autosetup -n eyes.js-%{version}
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/eyes
cp -pr package.json lib/ \
%{buildroot}%{nodejs_sitelib}/eyes
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%__nodejs test/*-test.js
%endif
%files
%doc LICENSE README.md
%{nodejs_sitelib}/eyes
%changelog
* Thu Aug 20 2020 Anan Fu <fuanan3@huawei.com> - 0.1.8-1
- package init

4
nodejs-eyes.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: cloudhead/eyes.js
tag_prefix: "^v"
seperator: "."

BIN
v0.1.8.tar.gz Normal file

Binary file not shown.