summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-07-01 13:50:11 +0000
committerCoprDistGit <infra@openeuler.org>2024-07-01 13:50:11 +0000
commit7e496c35d3284859115ba567558620df6f0a4477 (patch)
tree45dbbfa7bed134a503b3aa8a1d622807b01d82f2
parentb1bc71f06fd123804e70c08704310636b87ea518 (diff)
automatic import of yarnpkgopeneuler24.03_LTS
-rw-r--r--.gitignore1
-rw-r--r--sources1
-rw-r--r--yarnpkg.spec41
3 files changed, 43 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..322524c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/yarn-v1.22.22.tar.gz
diff --git a/sources b/sources
new file mode 100644
index 0000000..57ae5a6
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+368f9a4d279c2014bee630da7b7771d2 yarn-v1.22.22.tar.gz
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}/