|
|
9093f6 |
%{?scl:%scl_package nodejs-isstream}
|
|
|
9093f6 |
%{!?scl:%global package name %{name}}
|
|
|
9093f6 |
%global npm_name isstream
|
|
|
9093f6 |
|
|
|
9093f6 |
%{?nodejs_find_provides_and_requires}
|
|
|
9093f6 |
|
|
|
9093f6 |
%{!?scl:%global enable_tests 0}
|
|
|
9093f6 |
#tests are missing from npm tarball
|
|
|
9093f6 |
|
|
|
9093f6 |
Name: %{?scl_prefix}nodejs-isstream
|
|
|
9093f6 |
Version: 0.1.2
|
|
|
eee35c |
Release: 3%{?dist}
|
|
|
9093f6 |
Summary: Determine if an object is a Stream
|
|
|
9093f6 |
Url: https://github.com/rvagg/isstream
|
|
|
9093f6 |
Source0: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
|
|
|
9093f6 |
License: MIT
|
|
|
9093f6 |
|
|
|
9093f6 |
BuildArch: noarch
|
|
|
9093f6 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
9093f6 |
|
|
|
9093f6 |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
9093f6 |
|
|
|
9093f6 |
%if 0%{?enable_tests}
|
|
|
9093f6 |
BuildRequires: npm(core-util-is)
|
|
|
9093f6 |
BuildRequires: npm(inherits)
|
|
|
9093f6 |
BuildRequires: npm(isarray)
|
|
|
9093f6 |
BuildRequires: npm(string_decoder)
|
|
|
9093f6 |
BuildRequires: npm(tape)
|
|
|
9093f6 |
%endif
|
|
|
9093f6 |
|
|
|
9093f6 |
%description
|
|
|
9093f6 |
Determine if an object is a Stream
|
|
|
9093f6 |
|
|
|
9093f6 |
%prep
|
|
|
9093f6 |
%setup -q -n package
|
|
|
9093f6 |
|
|
|
9093f6 |
%build
|
|
|
9093f6 |
#nothing to do
|
|
|
9093f6 |
|
|
|
9093f6 |
%install
|
|
|
9093f6 |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
|
|
|
9093f6 |
|
|
|
9093f6 |
cp -pr package.json isstream.js \
|
|
|
9093f6 |
%{buildroot}%{nodejs_sitelib}/%{npm_name}
|
|
|
9093f6 |
|
|
|
9093f6 |
%{nodejs_symlink_deps}
|
|
|
9093f6 |
|
|
|
9093f6 |
%if 0%{?enable_tests}
|
|
|
9093f6 |
%check
|
|
|
9093f6 |
%{nodejs_symlink_deps} --check
|
|
|
9093f6 |
tar --xform 's/^package/readable-stream-1.0/' -zxf readable-stream-1.0.*.tgz && tar --xform 's/^package/readable-stream-1.1/' -zxf readable-stream-1.1.*.tgz && node test.js; rm -rf readable-stream-1.?/
|
|
|
9093f6 |
%endif
|
|
|
9093f6 |
|
|
|
9093f6 |
%files
|
|
|
9093f6 |
%{nodejs_sitelib}/isstream
|
|
|
9093f6 |
|
|
|
9093f6 |
%doc README.md
|
|
|
9093f6 |
%license LICENSE.md
|
|
|
9093f6 |
|
|
|
9093f6 |
%changelog
|
|
|
eee35c |
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.2-3
|
|
|
eee35c |
- Resolves: RHBZ#1543198, rebuild for multiarch
|
|
|
eee35c |
|
|
|
9093f6 |
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.2-2
|
|
|
9093f6 |
- rebuilt
|
|
|
9093f6 |
|
|
|
9093f6 |
* Thu Jul 16 2015 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.2-1
|
|
|
9093f6 |
- Initial build
|