[packages/nodejs-asar] new, version 0.8.3
glen
glen at pld-linux.org
Thu Dec 17 21:08:10 CET 2015
commit ba12c474198f68c90fa4fd15ecc47ef508e69a93
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Dec 17 22:07:52 2015 +0200
new, version 0.8.3
created from template spec
nodejs-asar.spec | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
---
diff --git a/nodejs-asar.spec b/nodejs-asar.spec
new file mode 100644
index 0000000..5c76660
--- /dev/null
+++ b/nodejs-asar.spec
@@ -0,0 +1,53 @@
+%define pkg asar
+Summary: asar - Atom-Shell Archive
+Name: nodejs-%{pkg}
+Version: 0.8.3
+Release: 0.1
+License: MIT
+Group: Development/Libraries
+Source0: http://registry.npmjs.org/asar/-/%{pkg}-%{version}.tgz
+# Source0-md5: 26b8cdc5b19c905e5f0a163b1428eb8e
+URL: https://github.com/atom/asar
+BuildRequires: rpmbuild(macros) >= 1.634
+BuildRequires: sed >= 4.0
+Requires: nodejs
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Asar is a simple extensive archive format, it works like tar that
+concatenates all files together without compression, while having
+random access support.
+
+Features:
+- Support random access
+- Use JSON to store files' information
+- Very easy to write a parser
+
+%prep
+%setup -qc
+mv package/* .
+
+%{__sed} -i -e '1s,^#!.*node,#!/usr/bin/node,' bin/*
+chmod a+rx bin/*
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{nodejs_libdir}/%{pkg}}
+cp -pr lib package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+
+cp -a bin $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+ln -s %{nodejs_libdir}/%{pkg}/bin/%{pkg} $RPM_BUILD_ROOT%{_bindir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md LICENSE
+%attr(755,root,root) %{_bindir}/asar
+%dir %{nodejs_libdir}/%{pkg}
+%{nodejs_libdir}/%{pkg}/package.json
+%{nodejs_libdir}/%{pkg}/lib
+%dir %{nodejs_libdir}/%{pkg}/bin
+%attr(755,root,root) %{nodejs_libdir}/%{pkg}/bin/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nodejs-asar.git/commitdiff/ba12c474198f68c90fa4fd15ecc47ef508e69a93
More information about the pld-cvs-commit
mailing list