782063b
%{?nodejs_find_provides_and_requires}
782063b
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}
c91faf1
Version:        0.1.3
c91faf1
Release:        1%{?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
c91faf1
* Sun Dec 07 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.1.3-1
c91faf1
- Initial packaging
c91faf1