Update version to 1.22.19

This commit is contained in:
jxy_git 2023-05-24 15:43:38 +08:00
parent 17ae717b3e
commit 4c2a0c7774
3 changed files with 10 additions and 7 deletions

View File

@ -3,12 +3,12 @@
%global packagename yarn
Name: nodejs-yarn
Version: 1.22.11
Release: 2
Version: 1.22.19
Release: 1
Summary: Fast, reliable, and secure dependency management for yarn packages.
License: BSD-2-Clause
URL: https://github.com/yarnpkg/yarn
Source0: https://registry.npmjs.org/yarn/-/yarn-1.22.11.tgz
Source0: https://registry.npmjs.org/yarn/-/yarn-1.22.19.tgz
BuildArch: noarch
@ -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
* Wed May 24 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 1.22.19-1
- Update version to 1.22.19
* Wed Sep 15 2021 chemingdao <chemingdao@huawei.com> - 1.22.11-2
- support running command with yarn.js, yarn.cmd, yarnpkg.cmd

Binary file not shown.

BIN
yarn-1.22.19.tgz Normal file

Binary file not shown.