%global debug_package %{nil} %global npm_name yarn %global __requires_exclude_from ^(%{nodejs_sitelib}/yarn/lib/.*|%{nodejs_sitelib}/yarn/bin/yarn(|\\.cmd|\\.ps1|pkg.*))$ Name: yarnpkg Version: 1.22.22 Release: 1 Summary: Fast, reliable, and secure dependency management. License: BSD-2-Clause URL: https://github.com/yarnpkg/yarn Source0: https://github.com/yarnpkg/yarn/releases/download/v%{version}/yarn-v%{version}.tar.gz Requires: nodejs BuildRequires: npm %description Fast, reliable, and secure dependency management. %prep %setup -q -n yarn-v%{version} %build %install npm i -g --prefix="%{buildroot}/usr" %{SOURCE0} rm -rfv %{buildroot}/etc/ %files %doc README.md %license LICENSE %{_bindir}/yarnpkg %{_bindir}/yarn %{nodejs_sitelib}/%{npm_name}/