Files
nodejs-tar-stream/nodejs-tar-stream.spec

45 lines
1.3 KiB
RPMSpec

%define base_name tar-stream
Name: nodejs-%{base_name}
Version: 1.1.2
Release: 0
License: MIT
Summary: tar-stream is a streaming tar parser and generator
URL: https://github.com/mafintosh/tar-stream
Group: Development/Languages/Other
Source0: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz
Requires: nodejs
Requires: nodejs-bl
Requires: nodejs-end-of-stream
Requires: nodejs-readable-stream
Requires: nodejs-xtend
BuildRequires: nodejs
BuildRequires: nodejs-packaging
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
%description
Node.js tar-stream module. tar-stream is a streaming tar parser and generator and nothing else. It is streams2 and operates purely using streams which means you can easily extract/parse tarballs without ever hitting the file system.
%prep
%setup -q -n package
%build
%install
mkdir -p %{buildroot}%{nodejs_modulesdir}/%{base_name}
cp -pr package.json *.js \
%{buildroot}%{nodejs_modulesdir}/%{base_name}/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE README.md
%{nodejs_modulesdir}/%{base_name}
%changelog