From: Aria Date: Sat, 16 Feb 2013 17:32:46 +0000 (-0700) Subject: Initial commit X-Git-Tag: auto/th/nodejs-mute-stream-0.0.3-1~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=9c033cf8f287aae2c21dc4e06a7f679e0244d467;p=packages%2Fnodejs-mute-stream.git Initial commit --- 9c033cf8f287aae2c21dc4e06a7f679e0244d467 diff --git a/nodejs-mute-stream.spec b/nodejs-mute-stream.spec new file mode 100644 index 0000000..932688c --- /dev/null +++ b/nodejs-mute-stream.spec @@ -0,0 +1,37 @@ +%define pkg mute-stream +Summary: Bytes go in, but they don\'t come out (when muted) +Name: nodejs-%{pkg} +Version: 0.0.3 +Release: 1 +License: MIT +Group: Development/Libraries +URL: https://github.com/isaacs/read +Source0: http://registry.npmjs.org/%{pkg}/-/%{pkg}-%{version}.tgz +# Source0-md5: 6ed0470ad5443989c57d7fa153ce76a3 +BuildRequires: rpmbuild(macros) >= 1.634 +Requires: nodejs +Requires: nodejs-mute-stream >= 0.0.2 +Requires: nodejs-mute-stream < 0.1.0 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Bytes go in, but they don\'t come out (when muted). + +%prep +%setup -qc +mv package/* . + +%install +rm -rf $RPM_BUILD_ROOT + +install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg} +cp -pr mute.js package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README.md +%{nodejs_libdir}/%{pkg}