Name: yarn Version: 1.22.19 Release: %mkrel 1 Summary: 📦🐈 Fast, reliable, and secure dependency management License: BSD-2-Clause URL: https://github.com/yarnpkg/%{name}/releases Source: %{URL}/download/v%{version}/yarn-v%{version}.tar.gz Source1: %{URL}/download/v%{version}/yarn-v%{version}.tar.gz.asc Requires: nodejs >= 4.0 Requires: sed BuildArch: noarch %description Fast: Yarn caches every package it has downloaded, so it never needs to download the same package again. It also does almost everything concurrently to maximize resource utilization. This means even faster installs. Reliable: Using a detailed but concise lockfile format and a deterministic algorithm for install operations, Yarn is able to guarantee that any installation that works on one system will work exactly the same on another system. Secure: Yarn uses checksums to verify the integrity of every installed package before its code is executed. %prep %autosetup -n %{name}-v%{version} -p1 %build rm bin/*.cmd perl -p -i -e 's|%{_bindir}/env node|%{_bindir}/node|g' bin/* lib/* %install install -D -d -m 0755 %{buildroot}%{_datadir}/yarn/ %{buildroot}%{_bindir} cp -av bin/ lib/ package.json %{buildroot}%{_datadir}/yarn/ ln -s %{_datadir}/yarn/bin/yarn %{buildroot}%{_bindir}/yarn ln -s %{_datadir}/yarn/bin/yarnpkg %{buildroot}%{_bindir}/yarnpkg %files %doc README.md %license LICENSE %{_datadir}/yarn/ %{_bindir}/yarn %{_bindir}/yarnpkg