Change yarn command path

(cherry picked from commit ecb6a9885a638d8a944978acc3e22247109fbcf9)
This commit is contained in:
jxy_git 2023-03-02 10:45:09 +08:00 committed by openeuler-sync-bot
parent cdbf867326
commit da5d6ba402

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