Blame SPECS/nodejs-stream-combiner.spec

b8d895
%{?scl:%scl_package nodejs-%{module_name}}
b8d895
%{!?scl:%global pkg_name %{name}}
b8d895
%{?nodejs_find_provides_and_requires}
b8d895
b8d895
# Disabled tests 
b8d895
# circular deps needs event-stream which needs this
b8d895
%global enable_tests 0
b8d895
%global module_name stream-combiner
b8d895
b8d895
Name:           %{?scl_prefix}nodejs-%{module_name}
b8d895
Version:        0.2.1
b8d895
Release:        7%{?dist}
b8d895
Summary:        Turn a pipeline into a single stream 
b8d895
b8d895
License:        MIT
b8d895
URL:            https://github.com/dominictarr/stream-combiner
b8d895
Source0:        http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
b8d895
BuildArch:      noarch
b8d895
ExclusiveArch:  %{nodejs_arches} noarch
b8d895
b8d895
BuildRequires:  %{?scl_prefix}runtime
b8d895
b8d895
%if 0%{?enable_tests}
b8d895
BuildRequires:  %{?scl_prefix}npm(tape)
b8d895
BuildRequires:  %{?scl_prefix}npm(event-stream)
b8d895
%endif
b8d895
b8d895
%description
b8d895
Turn a pipeline into a single stream. Combine returns a stream that writes
b8d895
to the first stream and reads from the last stream. 
b8d895
b8d895
%prep
b8d895
%setup -q -n package
b8d895
rm -rf node_modules
b8d895
b8d895
%build
b8d895
# nothing to build
b8d895
b8d895
%install
b8d895
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
b8d895
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
b8d895
%nodejs_symlink_deps
b8d895
b8d895
%if 0%{?enable_tests}
b8d895
b8d895
%check
b8d895
%nodejs_symlink_deps --check
b8d895
set -e; for t in test/*.js; do node $t; done
b8d895
%endif
b8d895
b8d895
%files
b8d895
%doc README.md LICENSE
b8d895
%{nodejs_sitelib}/%{module_name}
b8d895
b8d895
%changelog
b8d895
* Mon Jul 03 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.2.1-7
b8d895
- rh-nodejs8 rebuild
b8d895
b8d895
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.2.1-6
b8d895
- Use macro in -runtime dependency
b8d895
b8d895
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.2.1-5
b8d895
- Rebuilt with updated metapackage
b8d895
b8d895
* Thu Jan 14 2016 Tomas Hrcka <thrcka@redhat.com> - 0.2.1-4
b8d895
- Invoke find_provides_and_requires macro
b8d895
b8d895
* Thu Jan 07 2016 Tomas Hrcka <thrcka@redhat.com> - 0.2.1-3
b8d895
- Enable scl macros
b8d895
b8d895
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-2
b8d895
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b8d895
b8d895
* Tue Dec 09 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.2.1-1
b8d895
- Initial packaging