[packages/yarn: 1/2] new, version 0.21.3

glen glen at pld-linux.org
Wed Apr 19 00:07:46 CEST 2017


commit b3fffc6d82fe0a76c6fbf0d86f39f8cac0d2be99
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Apr 19 00:58:47 2017 +0300

    new, version 0.21.3
    
    npm compatible client
    https://code.facebook.com/posts/1840075619545360

 yarn.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)
---
diff --git a/yarn.spec b/yarn.spec
new file mode 100644
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}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/yarn.git/commitdiff/48ff7003d82ab07373b96e9e2580d1e2fc5c4c5c



More information about the pld-cvs-commit mailing list