nodejs-eyes/nodejs-eyes.spec

44 lines
1.1 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-20 20:31:13 +08:00
%{?nodejs_find_provides_and_requires}
%global enable_tests 1
Name: nodejs-eyes
Version: 0.1.8
2020-11-20 15:42:37 +08:00
Release: 2
2020-08-20 20:31:13 +08:00
Summary: A customizable value inspector for Node.js
License: MIT
URL: https://github.com/cloudhead/eyes.js
2020-09-07 20:19:59 +08:00
Source0: https://github.com/cloudhead/eyes.js/archive/v%{version}.tar.gz
2020-11-20 15:42:37 +08:00
Patch0001: nodejs-eyes-node12.patch
2020-08-20 20:31:13 +08:00
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
BuildRequires: nodejs-packaging
%description
%{summary}
%prep
2020-11-20 15:42:37 +08:00
%autosetup -n eyes.js-%{version} -p1
2020-08-20 20:31:13 +08:00
%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
2020-11-20 15:42:37 +08:00
* Fri Nov 20 2020 lingsheng <lingsheng@huawei.com> - 0.1.8-2
- Fix tests for node 12.x support
2020-08-20 20:31:13 +08:00
* Thu Aug 20 2020 Anan Fu <fuanan3@huawei.com> - 0.1.8-1
- package init