Blame SPECS/nodejs-duplexify.spec

7bff41
%{?scl:%scl_package nodejs-%{module_name}}
7bff41
%{!?scl:%global pkg_name %{name}}
7bff41
%{?nodejs_find_provides_and_requires}
7bff41
7bff41
%global enable_tests 0
7bff41
%global module_name duplexify
7bff41
7bff41
Name:           %{?scl_prefix}nodejs-%{module_name}
7bff41
Version:        3.4.2
7bff41
Release:        3%{?dist}
7bff41
Summary:        Turn a writeable and readable stream into a single streams2 duplex stream
7bff41
7bff41
License:        MIT
7bff41
URL:            https://github.com/mafintosh/duplexify
7bff41
Source0:        http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
7bff41
BuildArch:      noarch
7bff41
ExclusiveArch:  %{nodejs_arches} noarch
7bff41
7bff41
BuildRequires:  nodejs010-runtime
7bff41
7bff41
%if 0%{?enable_tests}
7bff41
BuildRequires:  %{?scl_prefix}npm(tape)
7bff41
BuildRequires:  %{?scl_prefix}npm(tap)
7bff41
BuildRequires:  %{?scl_prefix}npm(through2)
7bff41
BuildRequires:  %{?scl_prefix}npm(concat-stream)
7bff41
BuildRequires:  %{?scl_prefix}npm(end-of-stream)
7bff41
%endif
7bff41
7bff41
%description
7bff41
%{summary}.
7bff41
7bff41
%prep
7bff41
%setup -q -n package
7bff41
rm -rf node_modules
7bff41
7bff41
%nodejs_fixdep end-of-stream ~1.x
7bff41
%nodejs_fixdep readable-stream ~2.x
7bff41
7bff41
%build
7bff41
# nothing to build
7bff41
7bff41
%install
7bff41
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
7bff41
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
7bff41
%nodejs_symlink_deps
7bff41
7bff41
%if 0%{?enable_tests}
7bff41
7bff41
%check
7bff41
%nodejs_symlink_deps --check
7bff41
tap test.js
7bff41
%endif
7bff41
7bff41
%files
7bff41
%{!?_licensedir:%global license %doc}
7bff41
%doc README.md LICENSE
7bff41
%{nodejs_sitelib}/%{module_name}
7bff41
7bff41
%changelog
7bff41
* Thu Jan 14 2016 Tomas Hrcka <thrcka@redhat.com> - 3.4.2-3
7bff41
- Enable scl macros
7bff41
7bff41
* Fri Aug 14 2015 Parag Nemade <pnemade AT redhat DOT com> - 3.4.2-1
7bff41
- Update to 3.4.2
7bff41
7bff41
* Fri Aug 14 2015 Parag Nemade <pnemade AT redhat DOT com> - 3.4.0-1
7bff41
- Update to 3.4.0
7bff41
7bff41
* Wed Jul 22 2015 Parag Nemade <pnemade AT fedoraproject DOT org> - 3.2.0-3
7bff41
- fixdep npm(readable-stream)
7bff41
7bff41
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0-2
7bff41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7bff41
7bff41
* Mon Dec 22 2014 Parag Nemade <pnemade AT redhat DOT com> - 3.2.0-1
7bff41
- Initial packaging