Change yarn command path
(cherry picked from commit ecb6a9885a638d8a944978acc3e22247109fbcf9)
This commit is contained in:
parent
cdbf867326
commit
da5d6ba402
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: nodejs-yarn
|
Name: nodejs-yarn
|
||||||
Version: 1.22.19
|
Version: 1.22.19
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Fast, reliable, and secure dependency management for yarn packages.
|
Summary: Fast, reliable, and secure dependency management for yarn packages.
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
URL: https://github.com/yarnpkg/yarn
|
URL: https://github.com/yarnpkg/yarn
|
||||||
@ -34,13 +34,13 @@ if [ -f License ]; then
|
|||||||
mv License LICENSE
|
mv License LICENSE
|
||||||
fi
|
fi
|
||||||
if [ -d bin ]; then
|
if [ -d bin ]; then
|
||||||
mkdir -p %{buildroot}%{_bindir}
|
mkdir -p %{buildroot}%{_prefix}/local/bin/
|
||||||
cp -ar bin/* %{buildroot}%{_bindir}
|
cp -ar bin/* %{buildroot}%{_prefix}/local/bin/
|
||||||
fi
|
fi
|
||||||
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||||
cp -ra * %{buildroot}%{nodejs_sitelib}/%{packagename}
|
cp -ra * %{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||||
for file in `ls ./bin`;do
|
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
|
done
|
||||||
pushd %{buildroot}
|
pushd %{buildroot}
|
||||||
touch filelist.lst
|
touch filelist.lst
|
||||||
@ -52,9 +52,12 @@ cp %{buildroot}/filelist.lst .
|
|||||||
%nodejs_symlink_deps --check
|
%nodejs_symlink_deps --check
|
||||||
|
|
||||||
%files -f filelist.lst
|
%files -f filelist.lst
|
||||||
%{_bindir}/*
|
%{_prefix}/local/bin/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sun Oct 09 2022 wangjunqi <wangjunqi@kylinos.cn> - 1.22.19-1
|
||||||
- update version to 1.22.19
|
- update version to 1.22.19
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user