diff --git a/nodejs-yarn.spec b/nodejs-yarn.spec index ab389945f0396e6f4d2ddf79624022f08d229292..dd47b0edf74d957a4ca589aed6dd8fbe5377d0a2 100644 --- a/nodejs-yarn.spec +++ b/nodejs-yarn.spec @@ -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 +* Wed Sep 15 2021 chemingdao - 1.22.11-2 +- support running command with yarn.js, yarn.cmd, yarnpkg.cmd + +* Thu Sep 09 2021 Nodejs_Bot - 1.22.11-1 - Package Spec generated