Blame SPECS/nodejs-tap-stream.spec

b06b0b
%{?scl:%scl_package nodejs-tap-stream}
b06b0b
%{!?scl:%global pkg_name %{name}}
b06b0b
b06b0b
# spec file for package nodejs-nodejs-tap-stream
b06b0b
b06b0b
%global npm_name tap-stream
b06b0b
%{?nodejs_find_provides_and_requires}
b06b0b
b06b0b
%global enable_tests 0
b06b0b
b06b0b
Name:		%{?scl_prefix}nodejs-tap-stream
b06b0b
Version:	0.2.0
b06b0b
Release:	1%{?dist}
b06b0b
Summary:	Taps a nodejs stream and logs the data that's coming through.
b06b0b
Url:		http://registry.npmjs.org/tap-stream/-/tap-stream-0.2.0.tgz
b06b0b
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
b06b0b
License:	BSD
b06b0b
b06b0b
BuildArch:	noarch
b06b0b
b06b0b
%if 0%{?fedora} >= 19
b06b0b
ExclusiveArch: %{nodejs_arches} noarch
b06b0b
%else
b06b0b
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
b06b0b
%endif
b06b0b
b06b0b
BuildRequires:  %{?scl_prefix}nodejs-devel
b06b0b
BuildRequires:  nodejs010-runtime
b06b0b
b06b0b
%if 0%{?enable_tests}
b06b0b
BuildRequires:	%{?scl_prefix}npm(tap)
b06b0b
%endif
b06b0b
b06b0b
BuildRequires:	%{?scl_prefix}npm(through)
b06b0b
b06b0b
Requires:	%{?scl_prefix}npm(through)
b06b0b
b06b0b
%description
b06b0b
Taps a nodejs stream and logs the data that's coming through.
b06b0b
b06b0b
%prep
b06b0b
%setup -q -n package
b06b0b
b06b0b
rm -rf node_modules
b06b0b
b06b0b
%build
b06b0b
b06b0b
%install
b06b0b
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
b06b0b
b06b0b
cp -pr package.json *.js \
b06b0b
%{buildroot}%{nodejs_sitelib}/%{npm_name}
b06b0b
b06b0b
%{nodejs_symlink_deps}
b06b0b
b06b0b
%if 0%{?enable_tests}
b06b0b
b06b0b
%check
b06b0b
%{nodejs_symlink_deps} --check
b06b0b
b06b0b
%endif
b06b0b
b06b0b
%files
b06b0b
%doc README.md
b06b0b
%{nodejs_sitelib}/tap-stream
b06b0b
b06b0b
%changelog
b06b0b
* Fri Jan 08 2016 Tomas Hrcka <thrcka@redhat.com> - 0.2.0-1
b06b0b
- Initial build