commit
95643801cc
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://github.com/isaacs/nopt/archive/v%{version}.tar.gz
|
||||||
|
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
|
||||||
|
%autosetup -n nopt-%{version}
|
||||||
|
|
||||||
|
%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
v3.0.6.tar.gz
Normal file
BIN
v3.0.6.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user