|
|
ce6749 |
%{?scl:%scl_package nodejs-%{module_name}}
|
|
|
ce6749 |
%{!?scl:%global pkg_name %{name}}
|
|
|
ce6749 |
|
|
|
ce6749 |
%{?nodejs_find_provides_and_requires}
|
|
|
ce6749 |
# Disabled as some modules are not in fedora
|
|
|
ce6749 |
%global enable_tests 0
|
|
|
ce6749 |
|
|
|
ce6749 |
%global module_name event-stream
|
|
|
ce6749 |
|
|
|
ce6749 |
Name: %{?scl_prefix}nodejs-%{module_name}
|
|
|
ce6749 |
Version: 3.3.2
|
|
|
ce6749 |
Release: 7%{?dist}
|
|
|
ce6749 |
Summary: Construct pipes of streams of events
|
|
|
ce6749 |
|
|
|
ce6749 |
License: MIT
|
|
|
ce6749 |
URL: https://github.com/dominictarr/event-stream
|
|
|
ce6749 |
Source0: https://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
|
|
|
ce6749 |
BuildArch: noarch
|
|
|
ce6749 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
ce6749 |
|
|
|
ce6749 |
BuildRequires: %{?scl_prefix}runtime
|
|
|
ce6749 |
|
|
|
ce6749 |
%if 0%{?enable_tests}
|
|
|
ce6749 |
BuildRequires: %{?scl_prefix}npm(tape)
|
|
|
ce6749 |
BuildRequires: %{?scl_prefix}npm(it-is)
|
|
|
ce6749 |
BuildRequires: %{?scl_prefix}npm(asynct)
|
|
|
ce6749 |
BuildRequires: %{?scl_prefix}npm(stream-spec)
|
|
|
ce6749 |
%endif
|
|
|
ce6749 |
|
|
|
ce6749 |
%description
|
|
|
ce6749 |
%{summary}.
|
|
|
ce6749 |
|
|
|
ce6749 |
%prep
|
|
|
ce6749 |
%setup -q -n package
|
|
|
ce6749 |
rm -rf node_modules
|
|
|
ce6749 |
|
|
|
ce6749 |
%nodejs_fixdep map-stream ">=0.1.0"
|
|
|
ce6749 |
%nodejs_fixdep split ">=0.3"
|
|
|
ce6749 |
%nodejs_fixdep stream-combiner ">=0.0.4"
|
|
|
ce6749 |
|
|
|
ce6749 |
%build
|
|
|
ce6749 |
# nothing to build
|
|
|
ce6749 |
|
|
|
ce6749 |
%install
|
|
|
ce6749 |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
|
|
|
ce6749 |
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name}
|
|
|
ce6749 |
|
|
|
ce6749 |
%nodejs_symlink_deps
|
|
|
ce6749 |
%if 0%{?enable_tests}
|
|
|
ce6749 |
|
|
|
ce6749 |
%check
|
|
|
ce6749 |
%nodejs_symlink_deps --check
|
|
|
ce6749 |
set -e; for t in test/*.js; do node $t; done
|
|
|
ce6749 |
%endif
|
|
|
ce6749 |
|
|
|
ce6749 |
%files
|
|
|
ce6749 |
%{!?_licensedir:%global license %doc}
|
|
|
ce6749 |
%doc readme.markdown examples
|
|
|
ce6749 |
%license LICENCE
|
|
|
ce6749 |
%{nodejs_sitelib}/%{module_name}
|
|
|
ce6749 |
|
|
|
ce6749 |
%changelog
|
|
|
ce6749 |
* Mon Jul 03 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.3.2-7
|
|
|
ce6749 |
- rh-nodejs8 rebuild
|
|
|
ce6749 |
|
|
|
ce6749 |
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.3.2-6
|
|
|
ce6749 |
- Use macro in -runtime dependency
|
|
|
ce6749 |
|
|
|
ce6749 |
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.3.2-5
|
|
|
ce6749 |
- Rebuilt with updated metapackage
|
|
|
ce6749 |
|
|
|
ce6749 |
* Thu Jan 07 2016 Tomas Hrcka <thrcka@redhat.com> - 3.3.2-3
|
|
|
ce6749 |
- Enable scl macros
|
|
|
ce6749 |
|
|
|
ce6749 |
* Thu Dec 17 2015 Troy Dawson <tdawson@redhat.com> - 3.3.2-1
|
|
|
ce6749 |
- Update to 3.3.2
|
|
|
ce6749 |
|
|
|
ce6749 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-2
|
|
|
ce6749 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
ce6749 |
|
|
|
ce6749 |
* Wed Feb 04 2015 Parag Nemade <pnemade AT redhat DOT com> - 3.2.2-1
|
|
|
ce6749 |
- update to 3.2.2 upstream release
|
|
|
ce6749 |
|
|
|
ce6749 |
* Thu Jan 08 2015 Parag Nemade <pnemade AT redhat DOT com> - 3.2.1-1
|
|
|
ce6749 |
- Update to 3.2.1
|
|
|
ce6749 |
|
|
|
ce6749 |
* Sun Dec 07 2014 Parag Nemade <pnemade AT redhat DOT com> - 3.1.7-1
|
|
|
ce6749 |
- Initial packaging
|