diff --git a/has-ansi-2.0.0.tgz b/has-ansi-2.0.0.tgz deleted file mode 100644 index 93eedb4..0000000 Binary files a/has-ansi-2.0.0.tgz and /dev/null differ diff --git a/nodejs-has-ansi-2.0.0.tar.gz b/nodejs-has-ansi-2.0.0.tar.gz new file mode 100644 index 0000000..9da4c31 Binary files /dev/null and b/nodejs-has-ansi-2.0.0.tar.gz differ diff --git a/nodejs-has-ansi.spec b/nodejs-has-ansi.spec index e17c7f5..dddb435 100644 --- a/nodejs-has-ansi.spec +++ b/nodejs-has-ansi.spec @@ -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 - 2.0.0-1 +* Thu Sep 3 2020 wangxiao - 2.0.0-1 - package init diff --git a/nodejs-has-ansi.yaml b/nodejs-has-ansi.yaml index e61113f..bf8392f 100644 --- a/nodejs-has-ansi.yaml +++ b/nodejs-has-ansi.yaml @@ -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: "."