fix yarn.js, yarn.cmd and yanrpkg.cmd
This commit is contained in:
parent
a6f87be665
commit
c4cd0050e2
@ -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 <Nodejs_Bot@openeuler.org>
|
||||
* Wed Sep 15 2021 chemingdao <chemingdao@huawei.com> - 1.22.11-2
|
||||
- support running command with yarn.js, yarn.cmd, yarnpkg.cmd
|
||||
|
||||
* Thu Sep 09 2021 Nodejs_Bot <Nodejs_Bot@openeuler.org> - 1.22.11-1
|
||||
- Package Spec generated
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user