Blame SPECS/nodejs-end-of-stream.spec

2f9ea3
%{?scl:%scl_package nodejs-%{module_name}}
2f9ea3
%{!?scl:%global pkg_name %{name}}
2f9ea3
%{?nodejs_find_provides_and_requires}
2f9ea3
2f9ea3
%global enable_tests 0
2f9ea3
%global module_name end-of-stream
2f9ea3
2f9ea3
Name:           %{?scl_prefix}nodejs-%{module_name}
2f9ea3
Version:        1.1.0
2f9ea3
Release:        3%{?dist}
2f9ea3
Summary:        Call a callback when a readable/writable/duplex stream has completed or failed
2f9ea3
2f9ea3
License:        MIT
2f9ea3
URL:            https://github.com/mafintosh/end-of-stream
2f9ea3
Source0:        http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
2f9ea3
BuildArch:      noarch
2f9ea3
ExclusiveArch:  %{nodejs_arches} noarch
2f9ea3
2f9ea3
BuildRequires:  %{?scl_prefix}runtime
2f9ea3
2f9ea3
%if 0%{?enable_tests}
2f9ea3
BuildRequires:  %{?scl_prefix}npm(tap)
2f9ea3
BuildRequires:  %{?scl_prefix}npm(once)
2f9ea3
%endif
2f9ea3
2f9ea3
%description
2f9ea3
%{summary}.
2f9ea3
2f9ea3
%prep
2f9ea3
%setup -q -n package
2f9ea3
rm -rf node_modules
2f9ea3
2f9ea3
%nodejs_fixdep once ~1.x
2f9ea3
2f9ea3
%build
2f9ea3
# nothing to build
2f9ea3
2f9ea3
%install
2f9ea3
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
2f9ea3
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
2f9ea3
%nodejs_symlink_deps
2f9ea3
2f9ea3
%if 0%{?enable_tests}
2f9ea3
2f9ea3
%check
2f9ea3
%nodejs_symlink_deps --check
2f9ea3
tap test.js
2f9ea3
%endif
2f9ea3
2f9ea3
%files
2f9ea3
%doc README.md LICENSE
2f9ea3
%{nodejs_sitelib}/%{module_name}
2f9ea3
2f9ea3
%changelog
2f9ea3
* Thu Jan 14 2016 Tomas Hrcka <thrcka@redhat.com> - 1.1.0-3
2f9ea3
- Enable scl macros
2f9ea3
2f9ea3
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
2f9ea3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2f9ea3
2f9ea3
* Mon Dec 22 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.1.0-1
2f9ea3
- Initial packaging