diff --git a/nodejs-chalk.spec b/nodejs-chalk.spec index d2f696f..434d69f 100644 --- a/nodejs-chalk.spec +++ b/nodejs-chalk.spec @@ -2,7 +2,7 @@ %global enable_tests 0 Name: nodejs-chalk Version: 1.1.3 -Release: 1 +Release: 2 Summary: Terminal string styling done right License: MIT URL: https://github.com/chalk/chalk @@ -13,7 +13,6 @@ Patch0: chalk-fix-lack-of-dim.patch Patch1: chalk-fix-tests.patch BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch -ExclusiveArch: %{ix86} x86_64 %{arm} noarch BuildRequires: nodejs-packaging npm(ansi-styles) npm(escape-string-regexp) BuildRequires: npm(has-ansi) >= 2.0.0 npm(has-color) npm(strip-ansi) npm(supports-color) %if 0%{?enable_tests} @@ -58,5 +57,8 @@ ln -s %{nodejs_sitelib}/tape node_modules/tape %{nodejs_sitelib}/chalk %changelog +* Thu Nov 26 2020 caodongxia - 1.1.3-2 +- Delete file nodejs-chalk.spec.old + * Mon Aug 17 2020 Anan Fu - 1.1.3-1 - Package init diff --git a/nodejs-chalk.spec.old b/nodejs-chalk.spec.old deleted file mode 100644 index fc23437..0000000 --- a/nodejs-chalk.spec.old +++ /dev/null @@ -1,65 +0,0 @@ -%{?nodejs_find_provides_and_requires} -%global enable_tests 0 -Name: nodejs-chalk -Version: 1.1.3 -Release: 1 -Summary: Terminal string styling done right -License: MIT -URL: https://github.com/sindresorhus/chalk -Source0: http://registry.npmjs.org/chalk/-/chalk-%{version}.tgz -Source1: https://raw.githubusercontent.com/chalk/chalk/v%{version}/test.js -Source2: https://raw.githubusercontent.com/chalk/chalk/v%{version}/license -Patch0: chalk-fix-lack-of-dim.patch -Patch1: chalk-fix-tests.patch -BuildArch: noarch -%if 0%{?fedora} >= 19 -ExclusiveArch: %{nodejs_arches} noarch -%else -ExclusiveArch: %{ix86} x86_64 %{arm} noarch -%endif -BuildRequires: nodejs-packaging npm(ansi-styles) npm(escape-string-regexp) -BuildRequires: npm(has-ansi) >= 2.0.0 npm(has-color) npm(strip-ansi) npm(supports-color) -%if 0%{?enable_tests} -BuildRequires: npm(mocha) npm(require-uncached) npm(semver) -%endif -%description -%{summary}. - -%prep -%setup -q -n package -cp -p %{SOURCE1} . -cp -p %{SOURCE2} . -%patch0 -p1 -%patch1 -p1 -%nodejs_fixdep has-color -%nodejs_fixdep ansi-styles '^2.0.0' -%nodejs_fixdep strip-ansi -%nodejs_fixdep supports-color - -%build - -%install -mkdir -p %{buildroot}%{nodejs_sitelib}/chalk -cp -pr package.json index.js \ - %{buildroot}%{nodejs_sitelib}/chalk -%nodejs_symlink_deps - -%check -%nodejs_symlink_deps --check -%{__nodejs} -e 'require("./")' -%if 0%{?enable_tests} -ln -s %{nodejs_sitelib}/tape node_modules/tape -%{_bindir}/mocha -R spec -%else -%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m" -%endif - -%files -%{!?_licensedir:%global license %doc} -%doc *.md -%license license -%{nodejs_sitelib}/chalk - -%changelog -* Mon Aug 17 2020 Anan Fu - 1.1.3-1 -- Package init diff --git a/nodejs-chalk.yaml b/nodejs-chalk.yaml index 8b447c8..ca6c317 100644 --- a/nodejs-chalk.yaml +++ b/nodejs-chalk.yaml @@ -1,4 +1,4 @@ version_control: github src_repo: chalk/chalk -tag_prefix: "^" +tag_prefix: "^v" seperator: "."