Blame SPECS/nodejs-pause-stream.spec

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