[packages/nodejs-wrappy] new, version 1.0.1
glen
glen at pld-linux.org
Sat Jan 9 02:41:43 CET 2016
commit 9ee9152c771cd36c8287485f009cb4226f77f06a
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Jan 9 03:40:32 2016 +0200
new, version 1.0.1
based on fedora spec (2a6c8f3) and template spec
nodejs-wrappy.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
---
diff --git a/nodejs-wrappy.spec b/nodejs-wrappy.spec
new file mode 100644
index 0000000..cdb620f
--- /dev/null
+++ b/nodejs-wrappy.spec
@@ -0,0 +1,48 @@
+#
+# Conditional build:
+%bcond_with tests # build with tests
+
+%define commit 006a8cbac6b99988315834c207896eed71fd069a
+%define pkg wrappy
+Summary: Callback wrapping utility
+Name: nodejs-%{pkg}
+Version: 1.0.1
+Release: 1
+License: ISC
+Group: Development/Libraries
+Source0: https://github.com/npm/wrappy/archive/%{commit}/wrappy-%{commit}.tar.gz
+# Source0-md5: cf45c69076ebb4fcf013834b1dd9dae8
+URL: https://github.com/npm/wrappy
+BuildRequires: rpmbuild(macros) >= 1.634
+BuildRequires: sed >= 4.0
+%if %{with tests}
+BuildRequires: nodejs-tap
+%endif
+Requires: nodejs
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Callback wrapping utility for node.js
+
+%prep
+%setup -qc
+mv %{pkg}-*/* .
+
+%build
+%if %{with tests}
+tap test/*.js
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+cp -p %{pkg}.js package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md LICENSE
+%{nodejs_libdir}/%{pkg}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nodejs-wrappy.git/commitdiff/9ee9152c771cd36c8287485f009cb4226f77f06a
More information about the pld-cvs-commit
mailing list