From 5212b74a9f2b187e0d008c8d2d3934858598db62 Mon Sep 17 00:00:00 2001 From: gitee-cmd Date: Wed, 15 Sep 2021 13:22:29 +0800 Subject: [PATCH] fix yarn.js, yarn.cmd and yanrpkg.cmd (cherry picked from commit c4cd0050e2a6c66d53ac0bae53c71e35098331ab) --- nodejs-yarn.spec | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/nodejs-yarn.spec b/nodejs-yarn.spec index ab38994..dd47b0e 100644 --- a/nodejs-yarn.spec +++ b/nodejs-yarn.spec @@ -4,7 +4,7 @@ Name: nodejs-yarn Version: 1.22.11 -Release: 1 +Release: 2 Summary: Fast, reliable, and secure dependency management for yarn packages. License: BSD-2-Clause URL: https://github.com/yarnpkg/yarn @@ -39,8 +39,9 @@ if [ -d bin ]; then fi mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} cp -ra * %{buildroot}%{nodejs_sitelib}/%{packagename} -ln -sfr %{buildroot}%{nodejs_sitelib}/%{packagename}/bin/yarn.js %{buildroot}%{_bindir}/yarnpkg -ln -sfr %{buildroot}%{nodejs_sitelib}/%{packagename}/bin/yarn.js %{buildroot}%{_bindir}/yarn +for file in `ls ./bin`;do + ln -sfr %{buildroot}%{nodejs_sitelib}/%{packagename}/bin/yarn.js %{buildroot}%{_bindir}/$file +done pushd %{buildroot} touch filelist.lst find . -type f -printf "/%h/%f\n" >> filelist.lst @@ -51,9 +52,11 @@ cp %{buildroot}/filelist.lst . %nodejs_symlink_deps --check %files -f filelist.lst -%{_bindir}/yarnpkg -%{_bindir}/yarn +%{_bindir}/* %changelog -* Thu Sep 09 2021 Nodejs_Bot +* Wed Sep 15 2021 chemingdao - 1.22.11-2 +- support running command with yarn.js, yarn.cmd, yarnpkg.cmd + +* Thu Sep 09 2021 Nodejs_Bot - 1.22.11-1 - Package Spec generated -- Gitee