Blame SPECS/nodejs-pause-stream.spec

a6768d
%{?scl:%scl_package nodejs-%{module_name}}
a6768d
%{!?scl:%global pkg_name %{name}}
a6768d
%{?nodejs_find_provides_and_requires}
a6768d
a6768d
# BR: for tests are not packaged yet
a6768d
%global enable_tests 0
a6768d
a6768d
%global module_name pause-stream
a6768d
a6768d
Name:           %{?scl_prefix}nodejs-%{module_name}
a6768d
Version:        0.0.11
a6768d
Release:        6%{?dist}
a6768d
Summary:        A ThroughStream that strictly buffers all readable events when paused
a6768d
a6768d
License:        MIT and ASL 2.0
a6768d
URL:            http://github.com/dominictarr/pause-stream
a6768d
Source0:        http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
a6768d
BuildArch:      noarch
a6768d
ExclusiveArch:  %{nodejs_arches} noarch
a6768d
a6768d
BuildRequires:  %{?scl_prefix}runtime
a6768d
a6768d
%if 0%{?enable_tests}
a6768d
BuildRequires:  %{?scl_prefix}npm(stream-tester)
a6768d
BuildRequires:  %{?scl_prefix}npm(stream-spec)
a6768d
%endif
a6768d
a6768d
%description
a6768d
This is a Stream that will strictly buffer when paused. Connect it to anything
a6768d
you need buffered.
a6768d
a6768d
%prep
a6768d
%setup -q -n package
a6768d
rm -rf node_modules
a6768d
a6768d
%build
a6768d
# nothing to build
a6768d
a6768d
%install
a6768d
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
a6768d
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name}
a6768d
a6768d
%nodejs_symlink_deps
a6768d
a6768d
%if 0%{?enable_tests}
a6768d
a6768d
%check
a6768d
%nodejs_symlink_deps --check
a6768d
node test/index.js && node test/pause-end.js
a6768d
%endif
a6768d
a6768d
%files
a6768d
%doc readme.markdown LICENSE
a6768d
%{nodejs_sitelib}/%{module_name}
a6768d
a6768d
%changelog
a6768d
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.0.11-6
a6768d
- Use macro in -runtime dependency
a6768d
a6768d
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.0.11-5
a6768d
- Rebuilt with updated metapackage
a6768d
a6768d
* Thu Jan 14 2016 Tomas Hrcka <thrcka@redhat.com> - 0.0.11-4
a6768d
- Enable find provides and requires macro
a6768d
a6768d
* Thu Jan 07 2016 Tomas Hrcka <thrcka@redhat.com> - 0.0.11-3
a6768d
- Enable scl macros
a6768d
a6768d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.11-2
a6768d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a6768d
a6768d
* Fri Dec 19 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.0.11-1
a6768d
- Initial packaging