]> git.pld-linux.org Git - packages/yarn.git/commitdiff
new, version 0.21.3
authorElan Ruusamäe <glen@delfi.ee>
Tue, 18 Apr 2017 21:58:47 +0000 (00:58 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 18 Apr 2017 21:58:47 +0000 (00:58 +0300)
npm compatible client
https://code.facebook.com/posts/1840075619545360

yarn.spec [new file with mode: 0644]

diff --git a/yarn.spec b/yarn.spec
new file mode 100644 (file)
index 0000000..b97a249
--- /dev/null
+++ b/yarn.spec
@@ -0,0 +1,56 @@
+Summary:       Fast, reliable, and secure node dependency management"
+Name:          yarn
+Version:       0.21.3
+Release:       1
+License:       BSD
+Group:         Development/Tools
+Source0:       https://github.com/yarnpkg/yarn/releases/download/v%{version}/%{name}-v%{version}.tar.gz
+# Source0-md5: 779e0c868fbc2c8235d20755890202fc
+URL:           https://yarnpkg.com/
+BuildRequires: rpmbuild(macros) >= 1.634
+BuildRequires: sed >= 4.0
+Requires:      nodejs >= 4.0
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Fast, reliable, and secure dependency management. Yarn: Fast,
+reliable, and secure dependency management.
+
+Fast: Yarn caches every package it downloads so it never needs to
+again. It also parallelizes operations to maximize resource
+utilization so install times are faster than ever.
+
+Reliable: Using a detailed, but concise, lockfile format, and a
+deterministic algorithm for installs, Yarn is able to guarantee that
+an install that worked on one system will work exactly the same way on
+any other system.
+
+Secure: Yarn uses checksums to verify the integrity of every installed
+package before its code is executed.
+
+%prep
+%setup -qc
+mv dist/* .
+
+%{__rm} bin/node-gyp-bin/node-gyp.cmd
+%{__rm} bin/yarn.cmd
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{nodejs_libdir}/%{name},%{_bindir}}
+
+cp -a lib lib-legacy bin node_modules package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{name}
+ln -s %{nodejs_libdir}/%{name}/bin/%{name}.js $RPM_BUILD_ROOT%{_bindir}/%{name}
+ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/yarnpkg
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md LICENSE
+%attr(755,root,root) %{_bindir}/yarn
+%attr(755,root,root) %{_bindir}/yarnpkg
+%defattr(-,root,root,-)
+%{nodejs_libdir}/%{name}
This page took 0.052013 seconds and 4 git commands to generate.