Blame SPECS/nodejs-stream-combiner.spec

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