|
|
229ac4 |
%{?scl:%scl_package nodejs-%{module_name}}
|
|
|
229ac4 |
%{!?scl:%global pkg_name %{name}}
|
|
|
229ac4 |
%{?nodejs_find_provides_and_requires}
|
|
|
229ac4 |
|
|
|
229ac4 |
%global enable_tests 0
|
|
|
229ac4 |
%global module_name read-all-stream
|
|
|
229ac4 |
%global commit0 65f188a592577e590e2be30ff9d7b17d3c8e444c
|
|
|
229ac4 |
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
|
|
229ac4 |
|
|
|
229ac4 |
Name: %{?scl_prefix}nodejs-%{module_name}
|
|
|
229ac4 |
Version: 3.0.1
|
|
|
229ac4 |
Release: 5%{?dist}
|
|
|
229ac4 |
Summary: Read all stream content and pass it to callback
|
|
|
229ac4 |
|
|
|
229ac4 |
License: MIT
|
|
|
229ac4 |
URL: https://github.com/floatdrop/read-all-stream
|
|
|
229ac4 |
Source0: https://github.com/floatdrop/%{module_name}/archive/%{commit0}.tar.gz#/%{module_name}-%{shortcommit0}.tar.gz
|
|
|
229ac4 |
BuildArch: noarch
|
|
|
229ac4 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
229ac4 |
|
|
|
229ac4 |
BuildRequires: nodejs010-runtime
|
|
|
229ac4 |
|
|
|
229ac4 |
%if 0%{?enable_tests}
|
|
|
229ac4 |
BuildRequires: %{?scl_prefix}npm(mocha)
|
|
|
229ac4 |
BuildRequires: %{?scl_prefix}npm(readable-stream)
|
|
|
229ac4 |
BuildRequires: %{?scl_prefix}npm(pinkie-promise)
|
|
|
229ac4 |
%endif
|
|
|
229ac4 |
|
|
|
229ac4 |
%description
|
|
|
229ac4 |
%{summary}.
|
|
|
229ac4 |
|
|
|
229ac4 |
%prep
|
|
|
229ac4 |
%setup -q -n %{module_name}-%{commit0}
|
|
|
229ac4 |
rm -rf node_modules
|
|
|
229ac4 |
|
|
|
229ac4 |
%nodejs_fixdep pinkie-promise "^2.0.0"
|
|
|
229ac4 |
|
|
|
229ac4 |
%build
|
|
|
229ac4 |
# nothing to build
|
|
|
229ac4 |
|
|
|
229ac4 |
%install
|
|
|
229ac4 |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
|
|
|
229ac4 |
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
|
|
|
229ac4 |
%nodejs_symlink_deps
|
|
|
229ac4 |
|
|
|
229ac4 |
%if 0%{?enable_tests}
|
|
|
229ac4 |
|
|
|
229ac4 |
%check
|
|
|
229ac4 |
%nodejs_symlink_deps --check
|
|
|
229ac4 |
mocha
|
|
|
229ac4 |
%endif
|
|
|
229ac4 |
|
|
|
229ac4 |
%files
|
|
|
229ac4 |
%{!?_licensedir:%global license %doc}
|
|
|
229ac4 |
%doc readme.md
|
|
|
229ac4 |
%license license
|
|
|
229ac4 |
%{nodejs_sitelib}/%{module_name}
|
|
|
229ac4 |
|
|
|
229ac4 |
%changelog
|
|
|
229ac4 |
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 3.0.1-5
|
|
|
229ac4 |
- Use macro to find provides and requires
|
|
|
229ac4 |
|
|
|
229ac4 |
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 3.0.1-4
|
|
|
229ac4 |
- Enable scl macros, fix license macro for el6
|
|
|
229ac4 |
|
|
|
229ac4 |
* Thu Nov 26 2015 Parag Nemade <pnemade AT redhat DOT com> - 3.0.1-3
|
|
|
229ac4 |
- fixdep npm(pinkie-promise)
|
|
|
229ac4 |
|
|
|
229ac4 |
* Fri Aug 07 2015 Parag Nemade <pnemade AT redhat DOT com> - 3.0.1-2
|
|
|
229ac4 |
- Update to 3.0.1
|
|
|
229ac4 |
|
|
|
229ac4 |
* Sat Jul 18 2015 Parag Nemade <pnemade AT redhat DOT com> - 3.0.0-2
|
|
|
229ac4 |
- Add missing BR:npm(readable-stream)
|
|
|
229ac4 |
|
|
|
229ac4 |
* Wed Jul 15 2015 Parag Nemade <pnemade AT redhat DOT com> - 3.0.0-1
|
|
|
229ac4 |
- Update to 3.0.0
|
|
|
229ac4 |
|
|
|
229ac4 |
* Thu Jan 22 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.0.1-1
|
|
|
229ac4 |
- Update to 1.0.1
|
|
|
229ac4 |
|
|
|
229ac4 |
* Sun Dec 07 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.1.2-2
|
|
|
229ac4 |
- Add test.js from upstream and enable tests
|
|
|
229ac4 |
|
|
|
229ac4 |
* Thu Dec 04 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.1.2-1
|
|
|
229ac4 |
- Initial packaging
|