Blame SPECS/nodejs-through.spec

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