From dc3c52b245698debc06f0e293defdbc3557a26d9 Mon Sep 17 00:00:00 2001 From: T.C. Hollingsworth Date: Jan 29 2013 19:32:42 +0000 Subject: initial import --- diff --git a/.gitignore b/.gitignore index e69de29..e65e719 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/request-2.12.0.tgz diff --git a/nodejs-request-unbundle-cookie.patch b/nodejs-request-unbundle-cookie.patch new file mode 100644 index 0000000..0c987f6 --- /dev/null +++ b/nodejs-request-unbundle-cookie.patch @@ -0,0 +1,13 @@ +--- main.js~ 2012-11-09 14:48:21.000000000 -0700 ++++ main.js 2013-01-24 12:37:06.747947013 -0700 +@@ -22,8 +22,8 @@ + , oauth = require('./oauth') + , uuid = require('./uuid') + , ForeverAgent = require('./forever') +- , Cookie = require('./vendor/cookie') +- , CookieJar = require('./vendor/cookie/jar') ++ , Cookie = require('tobi-cookie') ++ , CookieJar = require('tobi-cookie/jar') + , cookieJar = new CookieJar + , tunnel = require('./tunnel') + , aws = require('./aws') diff --git a/nodejs-request.spec b/nodejs-request.spec new file mode 100644 index 0000000..bd29663 --- /dev/null +++ b/nodejs-request.spec @@ -0,0 +1,100 @@ +Name: nodejs-request +Version: 2.12.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 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +# use the seperate cookie module instead of the bundled version +Patch1: nodejs-request-unbundle-cookie.patch + +BuildRequires: nodejs-devel + +# explicit Requires are required because this package is not listed in the npm +# registry and thus not handled by the automatic dependency generator +Requires: nodejs-tobi-cookie + +%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 +%patch1 + +#remove bundled modules +rm -rf node_modules vendor + +%build +#nothing to do + +%install +rm -rf %{buildroot} + +mkdir -p %{buildroot}%{nodejs_sitelib}/request +cp -pr *.js package.json %{buildroot}%{nodejs_sitelib}/request + +%nodejs_symlink_deps +#we manually create this dependency link since tobi-cookie isn't in the npm registry +ln -sf %{nodejs_sitelib}/tobi-cookie \ + %{buildroot}%{nodejs_sitelib}/request/node_modules/tobi-cookie + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%{nodejs_sitelib}/request +%doc README.md LICENSE + +%changelog +* 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 diff --git a/sources b/sources index e69de29..8ec4230 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e3ed48005e0d11bc4385be9c96f7cee9 request-2.12.0.tgz