c91faf1
# Disabled as BR: for tests are not in fedora
c91faf1
%global enable_tests 0
c91faf1
c91faf1
%global module_name from
c91faf1
c91faf1
Name:           nodejs-%{module_name}
3986006
Version:        0.1.7
cbd0f6a
Release:        3%{?dist}
c91faf1
Summary:        Easy way to make a Readable Stream
c91faf1
c91faf1
License:        MIT or ASL 2.0
c91faf1
URL:            http://github.com/dominictarr/from
c91faf1
Source0:        http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
c91faf1
BuildArch:      noarch
c91faf1
ExclusiveArch:  %{nodejs_arches} noarch
c91faf1
c91faf1
BuildRequires:  nodejs-packaging
c91faf1
c91faf1
%if 0%{?enable_tests}
c91faf1
BuildRequires:  npm(asynct)
c91faf1
BuildRequires:  npm(stream-spec)
c91faf1
BuildRequires:  npm(assertions)
c91faf1
%endif
c91faf1
c91faf1
%description
c91faf1
%{summary}.
c91faf1
c91faf1
%prep
c91faf1
%setup -q -n package
c91faf1
rm -rf node_modules
c91faf1
c91faf1
%build
c91faf1
# nothing to build
c91faf1
c91faf1
%install
c91faf1
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
c91faf1
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name}
c91faf1
c91faf1
%nodejs_symlink_deps
c91faf1
c91faf1
%if 0%{?enable_tests}
c91faf1
%check
c91faf1
%nodejs_symlink_deps --check
c91faf1
asynct test/*.js
c91faf1
%endif
c91faf1
c91faf1
%files
c91faf1
%doc readme.markdown LICENSE.MIT LICENSE.APACHE2
c91faf1
%{nodejs_sitelib}/%{module_name}
c91faf1
c91faf1
%changelog
cbd0f6a
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.7-3
cbd0f6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
cbd0f6a
32ca5a5
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.7-2
32ca5a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
32ca5a5
3986006
* Sun Mar 12 2017 Parag Nemade <pnemade AT redhat DOT com> - 0.1.7-1
3986006
- Update to 0.1.7 version
3986006
5771402
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.3-4
5771402
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5771402
4b9dfb3
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.3-3
4b9dfb3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4b9dfb3
486e597
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
486e597
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
486e597
c91faf1
* Sun Dec 07 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.1.3-1
c91faf1
- Initial packaging
c91faf1