[packages/nodejs-bl] new, version 0.9.0

glen glen at pld-linux.org
Sun Jan 10 20:23:56 CET 2016


commit 30b8cf1a2e558e7443e534d93ed4f012dc37dec7
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Jan 10 21:23:39 2016 +0200

    new, version 0.9.0
    
    based on fedora package, 4a92e6a

 nodejs-bl.spec | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
---
diff --git a/nodejs-bl.spec b/nodejs-bl.spec
new file mode 100644
index 0000000..9e230a9
--- /dev/null
+++ b/nodejs-bl.spec
@@ -0,0 +1,52 @@
+#
+# Conditional build:
+%bcond_with	tests		# build with tests
+
+%define		pkg	bl
+Summary:	A Node.js Buffer list collector, reader and streamer
+Name:		nodejs-%{pkg}
+Version:	0.9.0
+Release:	1
+License:	MIT
+Group:		Development/Libraries
+Source0:	https://registry.npmjs.org/%{pkg}/-/%{pkg}-%{version}.tgz
+# Source0-md5:	0b654b2070b835ea9ea5cfac6254101e
+URL:		https://github.com/rvagg/bl
+BuildRequires:	rpmbuild(macros) >= 1.634
+BuildRequires:	sed >= 4.0
+%if %{with tests}
+BuildRequires:	npm(hash_file)
+BuildRequires:	npm(readable-stream)
+BuildRequires:	npm(tape)
+%endif
+Requires:	nodejs
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+bl is a storage object for collections of Node Buffers, exposing them
+with the main Buffer readable API. Also works as a duplex stream so
+you can collect buffers from a stream that emits them and emit buffers
+to a stream that consumes them!
+
+%prep
+%setup -qc
+mv package/* .
+
+%build
+%if %{with tests}
+node test/test.js
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+cp -pr package.json *.js $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{nodejs_libdir}/%{pkg}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nodejs-bl.git/commitdiff/30b8cf1a2e558e7443e534d93ed4f012dc37dec7



More information about the pld-cvs-commit mailing list