package init
This commit is contained in:
parent
f5ed762265
commit
f80b558e39
40
nodejs-nopt.spec
Normal file
40
nodejs-nopt.spec
Normal file
@ -0,0 +1,40 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
Name: nodejs-nopt
|
||||
Version: 3.0.6
|
||||
Release: 1
|
||||
Summary: Node.js option parsing
|
||||
License: MIT
|
||||
URL: https://github.com/isaacs/nopt
|
||||
Source0: https://registry.npmjs.org/nopt/-/nopt-%{version}.tgz
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging
|
||||
BuildRequires: npm(tap) npm(abbrev)
|
||||
%description
|
||||
An option parsing library for Node.js and its package manager (npm).
|
||||
|
||||
%prep
|
||||
%setup -q -n package
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/nopt
|
||||
cp -pr bin lib package.json %{buildroot}%{nodejs_sitelib}/nopt
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
ln -sf ../lib/node_modules/nopt/bin/nopt.js %{buildroot}%{_bindir}/nopt
|
||||
%nodejs_symlink_deps
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%tap test/*.js
|
||||
|
||||
%files
|
||||
%doc README.md examples
|
||||
%license LICENSE
|
||||
%{nodejs_sitelib}/nopt
|
||||
%{_bindir}/nopt
|
||||
|
||||
%changelog
|
||||
* Mon Aug 17 2020 wutao <wutao61@huawei.com> - 3.0.6-1
|
||||
- Package init
|
||||
4
nodejs-nopt.yaml
Normal file
4
nodejs-nopt.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: isaacs/nopt
|
||||
tag_prefix: "^v"
|
||||
seperator: "."
|
||||
BIN
nopt-3.0.6.tgz
Normal file
BIN
nopt-3.0.6.tgz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user