Ai
6 Star 0 Fork 4

src-openEuler/nodejs-argparse
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nodejs-argparse.spec 1.33 KB
一键复制 编辑 原始数据 按行查看 历史
huanghaitao 提交于 2020-09-07 17:23 +08:00 . package init
%{?nodejs_find_provides_and_requires}
%global enable_tests 1
Name: nodejs-argparse
Version: 1.0.9
Release: 1
Summary: A native port of Python's argparse, an options parsing library
License: MIT
URL: https://github.com/nodeca/argparse
Source0: https://github.com/nodeca/argparse/archive/%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(mocha) npm(underscore) npm(underscore.string) npm(sprintf-js)
%endif
%description
This is a native port of Python's argparse, an options parsing library.
It's a full port, except some very rare options. Method names have been
changed to CamelCase.
%prep
%autosetup -n argparse-%{version}
%nodejs_fixdep sprintf-js '1.x'
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/argparse
cp -pr package.json *.js lib/ \
%{buildroot}%{nodejs_sitelib}/argparse
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'
%{nodejs_sitelib}/mocha/bin/mocha -R spec
%endif
%files
%doc CHANGELOG.md README.md examples/
%license LICENSE
%{nodejs_sitelib}/argparse
%changelog
* Mon Aug 24 2020 huanghaitao <huanghaitao8@huawei.com> - 1.0.9-1
- package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/nodejs-argparse.git
git@gitee.com:src-openeuler/nodejs-argparse.git
src-openeuler
nodejs-argparse
nodejs-argparse
openEuler-24.03-LTS

搜索帮助