%{?nodejs_find_provides_and_requires} %global enable_tests 0 # Tests disabled due to number of failing tests when calling the 'qs' module # We're forcing an older version of 'qs' because the newer version of 'qs' # requires NodeJS 10.40, which obviously isn't packaged for Fedora yet Name: nodejs-request Version: 2.65.0 Release: 5%{?dist} Summary: Simplified HTTP request client License: ASL 2.0 Group: Development/Libraries URL: https://github.com/mikeal/request Source0: http://registry.npmjs.org/request/-/request-%{version}.tgz # Source{1,2} are generated by running Source10, which pulls from the upstream # version control repository. Source1: tests-%{version}.tar.bz2 Source2: examples-%{version}.tar.bz2 Source10: dl-tests.sh BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-devel %if 0%{?enable_tests} BuildRequires: npm(aws-sign) BuildRequires: npm(bl) BuildRequires: npm(cookie-jar) BuildRequires: npm(cryptiles) BuildRequires: npm(forever-agent) BuildRequires: npm(form-data) BuildRequires: npm(hawk) BuildRequires: npm(json-stringify-safe) BuildRequires: npm(mime) BuildRequires: npm(node-uuid) BuildRequires: npm(oauth-sign) BuildRequires: npm(qs) BuildRequires: npm(server-destroy) BuildRequires: npm(stringstream) BuildRequires: npm(tough-cookie) BuildRequires: npm(tunnel-agent) %endif %description Request is designed to be the simplest way possible to make HTTP calls. It supports HTTPS and follows redirects by default. You can stream any response to a file stream. You can also stream a file to a PUT or POST request. It also supports a few simple server and proxy functions. %prep %setup -q -n package %setup -q -T -D -a 1 -n package %setup -q -T -D -a 2 -n package %nodejs_fixdep qs '^2.3.3' %nodejs_fixdep http-signature '^1.0.2' #remove bundled modules rm -rf node_modules %nodejs_fixdep form-data %nodejs_fixdep qs %build #nothing to do %install rm -rf %{buildroot} mkdir -p %{buildroot}%{nodejs_sitelib}/request cp -pr *.js package.json lib/ %{buildroot}%{nodejs_sitelib}/request %nodejs_symlink_deps %if 0%{?enable_tests} %check rm -f tests/test-tunnel.js %nodejs_symlink_deps --check tape tests/test-*.js %endif %clean rm -rf %{buildroot} %files %{!?_licensedir:%global license %doc} %defattr(-,root,root,-) %{nodejs_sitelib}/request %doc README.md examples/ %license LICENSE %changelog * Sat Oct 31 2015 Jared Smith - 2.65.0-5 - Fix missing lib/ directory * Fri Oct 30 2015 Jared Smith - 2.65.0-4 - Update missing build dependencies * Wed Oct 28 2015 Jared Smith - 2.65.0-2 - Relax requirement on version of npm(form-data) * Wed Oct 28 2015 Jared Smith - 2.65.0-1 - Update to upstream 2.65.0 release * Wed Jun 17 2015 Fedora Release Engineering - 2.25.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 2.25.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Jul 30 2013 T.C. Hollingsworth - 2.25.0-1 - new upstream release 2.25.0 * Sun Jun 23 2013 T.C. Hollingsworth - 2.21.0-1 - new upstream release 2.21.0 * Sat Jun 22 2013 T.C. Hollingsworth - 2.16.6-5 - restrict to compatible arches * Tue May 28 2013 Jamie Nguyen - 2.16.6-4 - make versioned dependency on npm(qs) less specific - add %%check * Mon Apr 15 2013 T.C. Hollingsworth - 2.16.6-3 - add macro for EPEL6 dependency generation * Wed Apr 10 2013 T.C. Hollingsworth - 2.16.6-2 - fix versions for newly added dependencies * Wed Apr 03 2013 T.C. Hollingsworth - 2.16.6-1 - new upstream release 2.16.6 - cookie library now unbundled upstream * Wed Mar 13 2013 T.C. Hollingsworth - 2.14.0-1 - new upstream release 2.14.0 * Tue Jan 29 2013 T.C. Hollingsworth - 2.12.0-5 - actually make patch work - fix typo * Mon Jan 28 2013 T.C. Hollingsworth - 2.12.0-4 - actually apply patch - manually create dependency link to private module tobi-cookie * Thu Jan 24 2013 T.C. Hollingsworth - 2.12.0-3 - unbundle cookie stuff * Tue Jan 08 2013 T.C. Hollingsworth - 2.12.0-2 - add missing build section - improve description * Mon Dec 31 2012 T.C. Hollingsworth - 2.12.0-1 - new upstream release 2.12.0 - clean up for submission * Wed Apr 18 2012 T.C. Hollingsworth - 2.9.202-1 - New upstream release 2.9.202 * Sun Mar 04 2012 T.C. Hollingsworth - 2.9.153-1 - new upstream release 2.9.153 * Sat Feb 25 2012 T.C. Hollingsworth - 2.9.151-1 - new upstream release 2.9.151 * Sat Jan 21 2012 T.C. Hollingsworth - 2.9.100-1 - new upstream release 2.9.100 * Thu Dec 22 2011 T.C. Hollingsworth - 2.2.9-1 - new upstream release 2.2.9 * Mon Nov 07 2011 T.C. Hollingsworth - 2.2.0-1 - new upstream release 2.2.0 - adds node v0.6 support * Tue Oct 25 2011 T.C. Hollingsworth - 1.2.0-2.20110928.646c80dgit - npm needs a newer git snapshot (apparently upstream moved to rolling release anyway) * Tue Oct 25 2011 T.C. Hollingsworth - 1.2.0-1 - initial package