Updateto 1.4.0

This commit is contained in:
chen-jan 2022-06-30 09:19:00 +00:00
parent 4dfa5c52d9
commit f12f4f6a43
3 changed files with 6 additions and 7 deletions

Binary file not shown.

View File

@ -1,12 +1,12 @@
%{?nodejs_find_provides_and_requires} %{?nodejs_find_provides_and_requires}
%global enable_tests 1 %global enable_tests 1
Name: nodejs-colors Name: nodejs-colors
Version: 1.2.1 Version: 1.4.0
Release: 2 Release: 1
Summary: Get colors in your Node.js console Summary: Get colors in your Node.js console
License: MIT License: MIT
URL: https://github.com/Marak/colors.js URL: https://github.com/Marak/colors.js
Source0: https://github.com/Marak/colors.js/archive/v%{version}/colors-%{version}.tar.gz Source0: https://github.com/Marak/colors.js/archive/refs/tags/v%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging BuildRequires: nodejs-packaging
@ -17,10 +17,6 @@ BuildRequires: nodejs-packaging
%autosetup -n colors.js-%{version} -p1 %autosetup -n colors.js-%{version} -p1
%build %build
sed -i '/colors.mode/a\\if (colors.enabled === true) {' tests/basic-test.js
sed -i '/typeof("astring".error),/a\\}' tests/basic-test.js
sed -i '/colors.mode/a\\if (colors.enabled === true) {' tests/safe-test.js
sed -i '/typeof(colors.error("astring"))/a\\}' tests/safe-test.js
%install %install
mkdir -p %{buildroot}%{nodejs_sitelib}/colors mkdir -p %{buildroot}%{nodejs_sitelib}/colors
@ -39,6 +35,9 @@ cp -pr package.json safe.js lib themes/ \
%{nodejs_sitelib}/colors %{nodejs_sitelib}/colors
%changelog %changelog
* Thu Jun 30 2022 chenchen <chen_aka_jan@163.com> - 1.4.0-1
- Update to 1.4.0
* Wed Dec 09 2020 Ge Wang <wangge20@huawei.com> - 1.2.1-2 * Wed Dec 09 2020 Ge Wang <wangge20@huawei.com> - 1.2.1-2
- delete nodejs-colors.spec.old redundancy file - delete nodejs-colors.spec.old redundancy file

BIN
v1.4.0.tar.gz Normal file

Binary file not shown.