modify Source0 & Source1
This commit is contained in:
parent
65a8942dce
commit
3dc1e7b0b6
Binary file not shown.
BIN
nodejs-has-ansi-2.0.0.tar.gz
Normal file
BIN
nodejs-has-ansi-2.0.0.tar.gz
Normal file
Binary file not shown.
@ -2,18 +2,18 @@
|
||||
|
||||
%global packagename has-ansi
|
||||
%global enable_tests 0
|
||||
# Tests disabled due to missing nodejs-ava package dependency
|
||||
|
||||
Name: nodejs-has-ansi
|
||||
Version: 2.0.0
|
||||
Release: 1
|
||||
Summary: Check if a string has ANSI escape codes
|
||||
|
||||
License: MIT
|
||||
URL: https://github.com/sindresorhus/has-ansi
|
||||
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
|
||||
URL: https://github.com/chalk/has-ansi
|
||||
#https://codeload.github.com/chalk/has-ansi/tar.gz/2.0.0
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
# The test files are not included in the npm tarball.
|
||||
Source1: https://raw.githubusercontent.com/chalk/has-ansi/0722275e1bef139fcd09137da6e5550c3cd368b9/test.js
|
||||
#https://raw.githubbusercontent.com/chalk/has-ansi/a71691f773eb78e1de02ffbf1968047c77366b71/test.js
|
||||
Source1: test.js
|
||||
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildArch: noarch
|
||||
@ -28,12 +28,11 @@ Check if a string has ANSI escape codes
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n package
|
||||
%setup -q -n %{packagename}-%{version}
|
||||
# setup the tests
|
||||
cp -p %{SOURCE1} .
|
||||
|
||||
|
||||
|
||||
%build
|
||||
# nothing to do!
|
||||
|
||||
@ -59,7 +58,6 @@ cp -pr package.json *.js \
|
||||
%{nodejs_sitelib}/%{packagename}
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Aug 20 2020 wangxiao <wangxiao65@huawei.com> - 2.0.0-1
|
||||
* Thu Sep 3 2020 wangxiao <wangxiao65@huawei.com> - 2.0.0-1
|
||||
- package init
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
git_url: https://github.com/sindresorhus/has-ansi
|
||||
git_url: https://github.com/chalk/has-ansi
|
||||
version_control: github
|
||||
src_repo: sindresorhus/has-ansi
|
||||
src_repo: chalk/has-ansi
|
||||
tag_prefix: "^v"
|
||||
seperator: "."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user