Blame SPECS/nodejs-timed-out.spec

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