summaryrefslogtreecommitdiff
path: root/yarnpkg.spec
blob: 2301e1dc1f0bc1d3ec6ead693b26f8b150f1f605 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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}/