6 Star 0 Fork 5

src-openEuler/nodejs-through2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nodejs-through2.spec 1.38 KB
一键复制 编辑 原始数据 按行查看 历史
lyn 提交于 2022-06-30 16:09 +08:00 . Package upgrade
# test are failing
%global enable_tests 0
%global module_name through2
Name: nodejs-%{module_name}
Version: 4.0.2
Release: 1
Summary: Node streams2 Transform wrapper to avoid explicit subclassing noise
License: MITNFA
URL: https://github.com/rvagg/through2
Source0: https://github.com/rvagg/%{module_name}/archive/v%{version}/%{module_name}-%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(tap) npm(tape) npm(xtend) npm(bl) npm(stream-spigot)
%endif
%description
A tiny wrapper around Node streams2 Transform to avoid explicit subclassing
noise.
%prep
%autosetup -n %{module_name}-%{version}
%nodejs_fixdep readable-stream "^2.0.5"
rm -rf node_modules
%build
# nothing to build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'
node test/test.js
%endif
%files
%doc README.md
%license LICENSE.md
%{nodejs_sitelib}/%{module_name}
%changelog
* Thu Jun 30 2022 liyanan <liyanan32@h-partners.com> - 4.0.2-1
- Update to 4.0.2
* Thu Aug 20 2020 wutao <wutao61@huawei.com> - 2.0.3-1
- package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/nodejs-through2.git
git@gitee.com:src-openeuler/nodejs-through2.git
src-openeuler
nodejs-through2
nodejs-through2
openEuler-22.03-LTS-SP4

搜索帮助