commit
c2c51782a7
BIN
2.0.0.tar.gz
Normal file
BIN
2.0.0.tar.gz
Normal file
Binary file not shown.
45
nodejs-ansi-regex.spec
Normal file
45
nodejs-ansi-regex.spec
Normal file
@ -0,0 +1,45 @@
|
||||
%global npm_name ansi-regex
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
%global enable_tests 1
|
||||
Name: nodejs-ansi-regex
|
||||
Version: 2.0.0
|
||||
Release: 1
|
||||
Summary: Regular expression for matching ANSI escape codes
|
||||
License: MIT
|
||||
URL: https://github.com/sindresorhus/ansi-regex
|
||||
Source0: https://github.com/sindresorhus/ansi-regex/archive/%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: npm(mocha)
|
||||
%endif
|
||||
%description
|
||||
Regular expression for matching ANSI escape codes
|
||||
|
||||
%prep
|
||||
%autosetup -n ansi-regex-%{version}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
|
||||
cp -pr package.json index.js \
|
||||
%{buildroot}%{nodejs_sitelib}/%{npm_name}
|
||||
%{nodejs_symlink_deps}
|
||||
%if 0%{?enable_tests}
|
||||
|
||||
%check
|
||||
%{nodejs_symlink_deps} --check
|
||||
%{__nodejs} -e 'require("./")'
|
||||
%{_bindir}/mocha -R spec test/test.js
|
||||
%endif
|
||||
|
||||
%files
|
||||
%{nodejs_sitelib}/ansi-regex
|
||||
%doc readme.md
|
||||
%license license
|
||||
|
||||
%changelog
|
||||
* Mon Aug 17 2020 Shaoqiang Kang <kangshaoqiang1@huawei.com> - 2.0.0-1
|
||||
- Package init
|
||||
4
nodejs-ansi-regex.yaml
Normal file
4
nodejs-ansi-regex.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: sindresorhus/ansi-regex
|
||||
tag_prefix: "v"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user