48 lines
1.4 KiB
RPMSpec
48 lines
1.4 KiB
RPMSpec
%{?nodejs_find_provides_and_requires}
|
|
%global commit 8d3927995821596148e77f4af049ab38b03d1b99
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
Name: nodejs-callsite
|
|
Version: 1.0.0
|
|
Release: 1
|
|
Summary: Provides access to V8's "raw" CallSites from Node.js
|
|
License: MIT
|
|
URL: https://github.com/visionmedia/callsite
|
|
Source0: https://github.com/visionmedia/callsite/archive/%{commit}/nodejs-callsite-%{version}-%{shortcommit}.tar.gz
|
|
Source1: https://raw.github.com/tchollingsworth/callsite/8d7615a28a6507c3ef0731f072d3f1a100b3fe27/LICENSE
|
|
BuildArch: noarch
|
|
ExclusiveArch: %{nodejs_arches} noarch
|
|
Patch1: %{name}_fix-tests.patch
|
|
BuildRequires: nodejs-devel
|
|
BuildRequires: npm(mocha) npm(should)
|
|
|
|
%description
|
|
%{summary}.
|
|
This is useful for custom traces, C-style assertions, getting the line number in
|
|
execution, and more.
|
|
|
|
%prep
|
|
%setup -q -n callsite-%{commit}
|
|
%patch1 -p1
|
|
cp %{SOURCE1} LICENSE
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{nodejs_sitelib}/callsite
|
|
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/callsite
|
|
%nodejs_symlink_deps
|
|
|
|
%check
|
|
%nodejs_symlink_deps --check
|
|
%{__nodejs} -e 'require("./")'
|
|
mocha --require should
|
|
|
|
%files
|
|
%doc Readme.md examples History.md
|
|
%license LICENSE
|
|
%{nodejs_sitelib}/callsite
|
|
|
|
%changelog
|
|
* Tue Aug 18 2020 leiju <leiju4@huawei.com> - 1.0.0-1
|
|
- Package init
|