From ecb6a9885a638d8a944978acc3e22247109fbcf9 Mon Sep 17 00:00:00 2001 From: jxy_git Date: Thu, 2 Mar 2023 10:45:09 +0800 Subject: [PATCH] Change yarn command path --- nodejs-yarn.spec | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/nodejs-yarn.spec b/nodejs-yarn.spec index 45aabaf..9d8f773 100644 --- a/nodejs-yarn.spec +++ b/nodejs-yarn.spec @@ -4,7 +4,7 @@ Name: nodejs-yarn Version: 1.22.19 -Release: 1 +Release: 2 Summary: Fast, reliable, and secure dependency management for yarn packages. License: BSD-2-Clause URL: https://github.com/yarnpkg/yarn @@ -34,13 +34,13 @@ if [ -f License ]; then mv License LICENSE fi if [ -d bin ]; then - mkdir -p %{buildroot}%{_bindir} - cp -ar bin/* %{buildroot}%{_bindir} + mkdir -p %{buildroot}%{_prefix}/local/bin/ + cp -ar bin/* %{buildroot}%{_prefix}/local/bin/ fi mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} cp -ra * %{buildroot}%{nodejs_sitelib}/%{packagename} for file in `ls ./bin`;do - ln -sfr %{buildroot}%{nodejs_sitelib}/%{packagename}/bin/yarn.js %{buildroot}%{_bindir}/$file + ln -sfr %{buildroot}%{nodejs_sitelib}/%{packagename}/bin/yarn.js %{buildroot}%{_prefix}/local/bin/$file done pushd %{buildroot} touch filelist.lst @@ -52,9 +52,12 @@ cp %{buildroot}/filelist.lst . %nodejs_symlink_deps --check %files -f filelist.lst -%{_bindir}/* +%{_prefix}/local/bin/* %changelog +* Thu Mar 02 2023 jiangxinyu - 1.22.19-2 +- Change yarn command path + * Sun Oct 09 2022 wangjunqi - 1.22.19-1 - update version to 1.22.19 -- Gitee