nodejs-through/nodejs-through.spec

51 lines
1.3 KiB
RPMSpec
Raw Normal View History

2020-08-20 15:43:11 +08:00
%{?nodejs_find_provides_and_requires}
2020-09-11 23:48:56 +08:00
%global commit 2c5a6f9a0cc54da759b6e10964f2081c358e49dc
%global shortcommit %(c=%{commit}; echo ${c:0:7})
2020-08-20 15:43:11 +08:00
%global enable_tests 1
Name: nodejs-through
2020-09-11 23:48:56 +08:00
Version: 2.3.8
2020-08-20 15:43:11 +08:00
Release: 1
Summary: Simplified stream construction for Node.js
License: MIT or ASL 2.0
URL: https://github.com/dominictarr/through
2020-09-11 23:48:56 +08:00
Source0: https://github.com/dominictarr/through/archive/%{commit}/nodejs-through-%{version}-%{shortcommit}.tar.gz
2020-08-20 15:43:11 +08:00
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(tape) npm(from)
%endif
%description
%{summary}.
%prep
2020-09-11 23:48:56 +08:00
%autosetup -n through-%{commit}
2020-08-20 15:43:11 +08:00
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/through
cp -pr package.json index.js \
%{buildroot}%{nodejs_sitelib}/through
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%__nodejs -e "require('./')"
%if 0%{?enable_tests}
rm test/index.js
tape test/*.js
%endif
%files
%doc readme.markdown
%license LICENSE.APACHE2 LICENSE.MIT
%{nodejs_sitelib}/through
%changelog
2020-09-11 23:48:56 +08:00
* Fri Sep 11 2020 chengzihan <chengzihan2@huawei.com> - 2.3.8-1
- upgrade to 2.3.8
2020-09-08 16:58:26 +08:00
* Tue Aug 11 2020 wutao <wutao61@huawei.com> - 2.3.7-1
2020-08-20 15:43:11 +08:00
- package init