6 Star 0 Fork 2

src-openEuler / nodejs-optimist
关闭

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nodejs-optimist.spec 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
starlet_dx 提交于 2024-06-13 09:52 +08:00 . License compliance rectification
%{?nodejs_find_provides_and_requires}
%global bootstrap 0
Name: nodejs-optimist
Version: 0.6.1
Release: 2
Summary: Light-weight option parsing for Node.js
BuildArch: noarch
License: MIT OR X11
URL: https://github.com/substack/node-optimist
Source0: https://registry.npmjs.org/optimist/-/optimist-%{version}.tgz
Patch0: fix-tests.patch
BuildRequires: nodejs-packaging
%if !0%{?bootstrap}
BuildRequires: npm(tap) npm(hashish) npm(wordwrap)
%endif
%description
Light-weight option parsing with an argv hash. No optstrings attached.
%prep
%setup -q -n package
%patch0 -p0
%nodejs_fixdep wordwrap
%nodejs_fixdep minimist
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/optimist
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/optimist
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'
%if !0%{?bootstrap}
tap test/*.js
%endif
%files
%{nodejs_sitelib}/optimist
%doc readme.markdown example
%license LICENSE
%changelog
* Thu Jun 13 2024 yao_xin <yao_xin001@hoperun.com> - 0.6.1-2
- License compliance rectification
* Mon Aug 17 2020 wutao <wutao61@huawei.com> - 0.6.1-1
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/nodejs-optimist.git
git@gitee.com:src-openeuler/nodejs-optimist.git
src-openeuler
nodejs-optimist
nodejs-optimist
openEuler-24.09

搜索帮助