b5c8fb2
# taper module not in fedora yet
f8c1fc0
%global enable_tests 0
f8c1fc0
%global module_name got
f8c1fc0
f8c1fc0
Name:           nodejs-%{module_name}
b5c8fb2
Version:        2.3.2
b5c8fb2
Release:        1%{?dist}
f8c1fc0
Summary:        Simplified HTTP/HTTPS requests
f8c1fc0
f8c1fc0
License:        MIT
f8c1fc0
URL:            https://github.com/sindresorhus/got
b5c8fb2
Source0:        https://github.com/sindresorhus/got/archive/v%{version}.tar.gz
f8c1fc0
BuildArch:      noarch
f8c1fc0
ExclusiveArch:  %{nodejs_arches} noarch
f8c1fc0
f8c1fc0
BuildRequires:  nodejs-packaging
f8c1fc0
f8c1fc0
%description
f8c1fc0
Simplified HTTP/HTTPS requests. A nicer interface to the built-in http module.
f8c1fc0
It also supports following redirects and automagically handling gzip/deflate.
f8c1fc0
f8c1fc0
%prep
f8c1fc0
%setup -q -n %{module_name}-%{version}
f8c1fc0
rm -rf node_modules
f8c1fc0
f8c1fc0
%build
f8c1fc0
# nothing to build
f8c1fc0
f8c1fc0
%install
f8c1fc0
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
f8c1fc0
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
f8c1fc0
%nodejs_symlink_deps
f8c1fc0
b5c8fb2
%nodejs_fixdep read-all-stream ~1.x
b5c8fb2
f8c1fc0
%if 0%{?enable_tests}
f8c1fc0
%check
f8c1fc0
%nodejs_symlink_deps --check
b5c8fb2
taper test/test-*.js
f8c1fc0
%endif
f8c1fc0
f8c1fc0
%files
b5c8fb2
%doc readme.md
b5c8fb2
%license license
f8c1fc0
%{nodejs_sitelib}/%{module_name}
f8c1fc0
f8c1fc0
%changelog
b5c8fb2
* Tue Feb 03 2015 Parag Nemade <pnemade AT redhat DOT com> - 2.3.2-1
b5c8fb2
- Update to 2.3.2
b5c8fb2
b5c8fb2
* Sun Jan 11 2015 Parag Nemade <pnemade AT redhat DOT com> - 2.3.0-1
b5c8fb2
- Update to 2.3.0
4e41c03
f8c1fc0
* Wed Dec 03 2014 Parag Nemade <pnemade AT redhat DOT com> - 2.2.0-1
f8c1fc0
- Initial packaging
f8c1fc0