From: Elan Ruusamäe Date: Sat, 9 Jan 2016 01:40:32 +0000 (+0200) Subject: new, version 1.0.1 X-Git-Tag: auto/th/nodejs-wrappy-1.0.1-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=9ee9152c771cd36c8287485f009cb4226f77f06a;p=packages%2Fnodejs-wrappy.git new, version 1.0.1 based on fedora spec (2a6c8f3) and template spec --- 9ee9152c771cd36c8287485f009cb4226f77f06a 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}