Blame SPECS/nodejs-stream-combiner.spec

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