Blame SPECS/nodejs-through.spec

881c00
# spec file for package nodejs-nodejs-through
881c00
%{?scl:%scl_package nodejs-nodejs-through}
881c00
%{!?scl:%global pkg_name %{name}}
881c00
881c00
%global npm_name through
881c00
%{?nodejs_find_provides_and_requires}
881c00
881c00
%global enable_tests 0
881c00
881c00
Name:		%{?scl_prefix}nodejs-through
881c00
Version:	2.3.8
881c00
Release:	1%{?dist}
881c00
Summary:	simplified stream construction
881c00
Url:		https://github.com/dominictarr/through
881c00
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
881c00
License:	MIT
881c00
881c00
BuildArch:	noarch
881c00
ExclusiveArch:	%{nodejs_arches} noarch
881c00
881c00
BuildRequires:	%{?scl_prefix}nodejs-devel
881c00
#BuildRequires:	nodejs-packaging
881c00
881c00
%if 0%{?enable_tests}
881c00
BuildRequires:	npm(from)
881c00
BuildRequires:	npm(stream-spec)
881c00
BuildRequires:	npm(tape)
881c00
%endif
881c00
881c00
%description
881c00
simplified stream construction
881c00
881c00
%prep
881c00
%setup -q -n package
881c00
881c00
%build
881c00
#nothing to do
881c00
881c00
%install
881c00
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
881c00
881c00
cp -pr package.json index.js \
881c00
	%{buildroot}%{nodejs_sitelib}/%{npm_name}
881c00
881c00
%{nodejs_symlink_deps}
881c00
881c00
%if 0%{?enable_tests}
881c00
%check
881c00
%{nodejs_symlink_deps} --check
881c00
set -e; for t in test/*.js; do node $t; done
881c00
%endif
881c00
881c00
%files
881c00
%{nodejs_sitelib}/through
881c00
881c00
%doc readme.markdown
881c00
%license LICENSE.APACHE2 LICENSE.MIT
881c00
881c00
%changelog
881c00
* Wed Jul 29 2015 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.3.8-1
881c00
- Initial build