Blame nodejs-got.spec

b5c8fb2
# taper module not in fedora yet
f8c1fc0
%global enable_tests 0
f8c1fc0
%global module_name got
2260061
%global commit0 7bc82b8eb63893f264d3c109abe1530ca74a3fb0
2260061
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
f8c1fc0
f8c1fc0
Name:           nodejs-%{module_name}
2260061
Version:        3.3.1
f2173d3
Release:        2%{?dist}
f8c1fc0
Summary:        Simplified HTTP/HTTPS requests
f8c1fc0
f8c1fc0
License:        MIT
f8c1fc0
URL:            https://github.com/sindresorhus/got
2260061
Source0:        https://github.com/sindresorhus/%{module_name}/archive/%{commit0}.tar.gz#/%{module_name}-%{shortcommit0}.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
2260061
%setup -q -n %{module_name}-%{commit0}
f8c1fc0
rm -rf node_modules
f8c1fc0
f2173d3
%nodejs_fixdep readable-stream ~2.x
f2173d3
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
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
f2173d3
* Wed Jul 22 2015 Parag Nemade <pnemade AT redhat DOT com> - 3.3.1-2
f2173d3
- fixdep npm(readable-stream)
f2173d3
2260061
* Wed Jul 15 2015 Parag Nemade <pnemade AT redhat DOT com> - 3.3.1-1
2260061
- Update to 3.3.1
2260061
b6131b6
* Fri Jul 03 2015 Parag Nemade <pnemade AT redhat DOT com> - 3.3.0-1
b6131b6
- Update to 3.3.0
b6131b6
d272756
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-2
d272756
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d272756
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