Blame SPECS/nodejs-timed-out.spec

105ae6
%{?scl:%scl_package nodejs-%{module_name}}
105ae6
%{!?scl:%global pkg_name %{name}}
105ae6
%{?nodejs_find_provides_and_requires}
105ae6
105ae6
%global enable_tests 0
105ae6
%global module_name timed-out
105ae6
105ae6
Name:           %{?scl_prefix}nodejs-%{module_name}
105ae6
Version:        2.0.0
105ae6
Release:        8%{?dist}
105ae6
Summary:        Timeout HTTP/HTTPS requests
105ae6
105ae6
License:        MIT
105ae6
URL:            https://github.com/floatdrop/timed-out
105ae6
Source0:        http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
105ae6
Source1:        https://raw.githubusercontent.com/floatdrop/timed-out/master/license
105ae6
Source2:        https://raw.githubusercontent.com/floatdrop/timed-out/master/test.js
105ae6
BuildArch:      noarch
105ae6
ExclusiveArch:  %{nodejs_arches} noarch
105ae6
105ae6
BuildRequires:  %{?scl_prefix}runtime
105ae6
105ae6
%if 0%{?enable_tests}
105ae6
BuildRequires:  %{?scl_prefix}npm(mocha)
105ae6
%endif
105ae6
105ae6
%description
105ae6
Timeout HTTP/HTTPS requests. Emit Error object with code property
105ae6
equal ETIMEDOUT or ESOCKETTIMEDOUT when ClientRequest is hanged.
105ae6
105ae6
%prep
105ae6
%setup -q -n package
105ae6
rm -rf node_modules
105ae6
105ae6
cp -p %{SOURCE1} %{SOURCE2} .
105ae6
105ae6
%build
105ae6
# nothing to build
105ae6
105ae6
%install
105ae6
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
105ae6
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
105ae6
%nodejs_symlink_deps
105ae6
105ae6
%if 0%{?enable_tests}
105ae6
105ae6
%check
105ae6
%nodejs_symlink_deps --check
105ae6
mocha
105ae6
%endif
105ae6
105ae6
%files
105ae6
%{!?_licensedir:%global license %doc}
105ae6
%doc readme.md license
105ae6
%{nodejs_sitelib}/%{module_name}
105ae6
105ae6
%changelog
105ae6
* Mon Jul 03 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.0-8
105ae6
- rh-nodejs8 rebuild
105ae6
105ae6
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.0-7
105ae6
- Use macro in -runtime dependency
105ae6
105ae6
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.0-6
105ae6
- Rebuilt with updated metapackage
105ae6
105ae6
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 2.0.0-5
105ae6
- Use macro to find provides and requires
105ae6
105ae6
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 2.0.0-4
105ae6
- Enable scl macros, fix license macro for el6
105ae6
105ae6
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-3
105ae6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
105ae6
105ae6
* Sun Dec 07 2014 Parag Nemade <pnemade AT redhat DOT com> - 2.0.0-2
105ae6
- Add test.js from upstream and enable tests
105ae6
105ae6
* Thu Dec 04 2014 Parag Nemade <pnemade AT redhat DOT com> - 2.0.0-1
105ae6
- Initial packaging