|
|
e5699f |
%{?scl:%scl_package nodejs-%{module_name}}
|
|
|
e5699f |
%{!?scl:%global pkg_name %{name}}
|
|
|
e5699f |
%{?nodejs_find_provides_and_requires}
|
|
|
e5699f |
|
|
|
e5699f |
%global enable_tests 0
|
|
|
e5699f |
%global module_name got
|
|
|
e5699f |
|
|
|
e5699f |
Name: %{?scl_prefix}nodejs-%{module_name}
|
|
|
e5699f |
Version: 5.2.1
|
|
|
e5699f |
Release: 3%{?dist}
|
|
|
e5699f |
Summary: Simplified HTTP/HTTPS requests
|
|
|
e5699f |
License: MIT
|
|
|
e5699f |
URL: https://github.com/sindresorhus/got
|
|
|
e5699f |
Source0: http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
|
|
|
e5699f |
BuildArch: noarch
|
|
|
e5699f |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
e5699f |
|
|
|
e5699f |
BuildRequires: nodejs010-runtime
|
|
|
e5699f |
|
|
|
e5699f |
%if 0%{?enable_tests}
|
|
|
e5699f |
BuildRequires: %{?scl_prefix}npm(tap)
|
|
|
e5699f |
BuildRequires: %{?scl_prefix}npm(create-error-class)
|
|
|
e5699f |
BuildRequires: %{?scl_prefix}npm(into-stream)
|
|
|
e5699f |
BuildRequires: %{?scl_prefix}npm(pinkie-promise)
|
|
|
e5699f |
BuildRequires: %{?scl_prefix}npm(unzip-response)
|
|
|
e5699f |
BuildRequires: %{?scl_prefix}npm(object-assign)
|
|
|
e5699f |
BuildRequires: %{?scl_prefix}npm(pem)
|
|
|
e5699f |
BuildRequires: %{?scl_prefix}npm(is-redirect)
|
|
|
e5699f |
BuildRequires: %{?scl_prefix}npm(duplexify)
|
|
|
e5699f |
BuildRequires: %{?scl_prefix}npm(is-stream)
|
|
|
e5699f |
BuildRequires: %{?scl_prefix}npm(read-all-stream)
|
|
|
e5699f |
BuildRequires: %{?scl_prefix}npm(timed-out)
|
|
|
e5699f |
BuildRequires: %{?scl_prefix}npm(node-status-codes)
|
|
|
e5699f |
BuildRequires: %{?scl_prefix}npm(is-plain-obj)
|
|
|
e5699f |
BuildRequires: %{?scl_prefix}npm(lowercase-keys)
|
|
|
e5699f |
BuildRequires: %{?scl_prefix}npm(prepend-http)
|
|
|
e5699f |
%endif
|
|
|
e5699f |
|
|
|
e5699f |
%description
|
|
|
e5699f |
Simplified HTTP/HTTPS requests. A nicer interface to the built-in http module.
|
|
|
e5699f |
It also supports following redirects and automagically handling gzip/deflate.
|
|
|
e5699f |
|
|
|
e5699f |
%prep
|
|
|
e5699f |
%setup -q -n package
|
|
|
e5699f |
|
|
|
e5699f |
%nodejs_fixdep create-error-class ">=2.0.0"
|
|
|
e5699f |
%nodejs_fixdep duplexify ">=3.2.0"
|
|
|
e5699f |
%nodejs_fixdep is-plain-obj ">=1.0.0"
|
|
|
e5699f |
%nodejs_fixdep is-redirect ">=1.0.0"
|
|
|
e5699f |
%nodejs_fixdep is-stream ">=1.0.0"
|
|
|
e5699f |
%nodejs_fixdep lowercase-keys ">=1.0.0"
|
|
|
e5699f |
%nodejs_fixdep node-status-codes ">=1.0.0"
|
|
|
e5699f |
%nodejs_fixdep object-assign ">=4.0.1"
|
|
|
e5699f |
%nodejs_fixdep parse-json ">=2.1.0"
|
|
|
e5699f |
%nodejs_fixdep pinkie-promise ">=2.0.0"
|
|
|
e5699f |
%nodejs_fixdep read-all-stream ">=3.0.0"
|
|
|
e5699f |
%nodejs_fixdep timed-out ">=2.0.0"
|
|
|
e5699f |
%nodejs_fixdep unzip-response ">=1.0.0"
|
|
|
e5699f |
%nodejs_fixdep url-parse-lax ">=1.0.0"
|
|
|
e5699f |
|
|
|
e5699f |
%build
|
|
|
e5699f |
# nothing to build
|
|
|
e5699f |
|
|
|
e5699f |
%install
|
|
|
e5699f |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
|
|
|
e5699f |
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
|
|
|
e5699f |
%nodejs_symlink_deps
|
|
|
e5699f |
|
|
|
e5699f |
%if 0%{?enable_tests}
|
|
|
e5699f |
|
|
|
e5699f |
%check
|
|
|
e5699f |
%nodejs_symlink_deps --check
|
|
|
e5699f |
# These tests not working so remove them for now
|
|
|
e5699f |
rm -f test/test-error.js
|
|
|
e5699f |
rm -f test/test-arguments.js
|
|
|
e5699f |
rm -f test/test-https.js
|
|
|
e5699f |
rm -f test/test-http.js
|
|
|
e5699f |
tap test/test-*.js
|
|
|
e5699f |
%endif
|
|
|
e5699f |
|
|
|
e5699f |
%files
|
|
|
e5699f |
%{!?_licensedir:%global license %doc}
|
|
|
e5699f |
%doc readme.md
|
|
|
e5699f |
%license license
|
|
|
e5699f |
%{nodejs_sitelib}/%{module_name}
|
|
|
e5699f |
|
|
|
e5699f |
%changelog
|
|
|
e5699f |
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 5.2.1-3
|
|
|
e5699f |
- rebuilt
|
|
|
e5699f |
|
|
|
e5699f |
* Mon Jan 11 2016 Tomas Hrcka <thrcka@redhat.com> - 5.2.1-2
|
|
|
e5699f |
- Enable scl macros
|
|
|
e5699f |
|
|
|
e5699f |
* Thu Dec 17 2015 Troy Dawson <tdawson@redhat.com> - 5.2.1-2
|
|
|
e5699f |
- Update to 5.2.1
|
|
|
e5699f |
|
|
|
e5699f |
* Thu Nov 26 2015 Parag Nemade <pnemade AT redhat DOT com> - 5.1.0-1
|
|
|
e5699f |
- Update to 5.1.0
|
|
|
e5699f |
|
|
|
e5699f |
* Thu Nov 26 2015 Parag Nemade <pnemade AT redhat DOT com> - 4.2.0-2
|
|
|
e5699f |
- fixdep npm(pinkie-promise)
|
|
|
e5699f |
|
|
|
e5699f |
* Fri Sep 11 2015 Parag Nemade <pnemade AT redhat DOT com> - 4.2.0-1
|
|
|
e5699f |
- Update to 4.2.0
|
|
|
e5699f |
|
|
|
e5699f |
* Wed Aug 26 2015 Parag Nemade <pnemade AT redhat DOT com> - 4.1.1-2
|
|
|
e5699f |
- fixdep npm(object-assign)
|
|
|
e5699f |
|
|
|
e5699f |
* Mon Aug 24 2015 Parag Nemade <pnemade AT redhat DOT com> - 4.1.1-1
|
|
|
e5699f |
- Update to 4.1.1
|
|
|
e5699f |
|
|
|
e5699f |
* Thu Jul 30 2015 Parag Nemade <pnemade AT redhat DOT com> - 4.1.0-1
|
|
|
e5699f |
- Update to 4.1.0
|
|
|
e5699f |
|
|
|
e5699f |
* Wed Jul 29 2015 Parag Nemade <pnemade AT redhat DOT com> - 4.0.0-1
|
|
|
e5699f |
- Update to 4.0.0
|
|
|
e5699f |
|
|
|
e5699f |
* Wed Jul 22 2015 Parag Nemade <pnemade AT redhat DOT com> - 3.3.1-2
|
|
|
e5699f |
- fixdep npm(readable-stream)
|
|
|
e5699f |
|
|
|
e5699f |
* Wed Jul 15 2015 Parag Nemade <pnemade AT redhat DOT com> - 3.3.1-1
|
|
|
e5699f |
- Update to 3.3.1
|
|
|
e5699f |
|
|
|
e5699f |
* Fri Jul 03 2015 Parag Nemade <pnemade AT redhat DOT com> - 3.3.0-1
|
|
|
e5699f |
- Update to 3.3.0
|
|
|
e5699f |
|
|
|
e5699f |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-2
|
|
|
e5699f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
e5699f |
|
|
|
e5699f |
* Tue Feb 03 2015 Parag Nemade <pnemade AT redhat DOT com> - 2.3.2-1
|
|
|
e5699f |
- Update to 2.3.2
|
|
|
e5699f |
|
|
|
e5699f |
* Sun Jan 11 2015 Parag Nemade <pnemade AT redhat DOT com> - 2.3.0-1
|
|
|
e5699f |
- Update to 2.3.0
|
|
|
e5699f |
|
|
|
e5699f |
* Wed Dec 03 2014 Parag Nemade <pnemade AT redhat DOT com> - 2.2.0-1
|
|
|
e5699f |
- Initial packaging
|