From 7e496c35d3284859115ba567558620df6f0a4477 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 1 Jul 2024 13:50:11 +0000 Subject: automatic import of yarnpkg --- yarnpkg.spec | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 yarnpkg.spec (limited to 'yarnpkg.spec') diff --git a/yarnpkg.spec b/yarnpkg.spec new file mode 100644 index 0000000..2301e1d --- /dev/null +++ b/yarnpkg.spec @@ -0,0 +1,41 @@ +%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}/ -- cgit v1.2.3