!16 [sync] PR-15: Change yarn command path

From: @openeuler-sync-bot 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
This commit is contained in:
openeuler-ci-bot 2023-03-03 02:23:54 +00:00 committed by Gitee
commit 9430b216f9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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 <jiangxinyu@kylinos.cn> - 1.22.19-2
- Change yarn command path
* Sun Oct 09 2022 wangjunqi <wangjunqi@kylinos.cn> - 1.22.19-1
- update version to 1.22.19