From 20928f145d5ea3fb642d72b02724d32150327ea9 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 26 2017 09:43:12 +0000 Subject: import rh-nodejs6-nodejs-tough-cookie-2.3.2-3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4333006 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/tough-cookie-2.3.2.tgz diff --git a/.rh-nodejs6-nodejs-tough-cookie.metadata b/.rh-nodejs6-nodejs-tough-cookie.metadata new file mode 100644 index 0000000..5676f94 --- /dev/null +++ b/.rh-nodejs6-nodejs-tough-cookie.metadata @@ -0,0 +1 @@ +f081f76e4c85720e6c37a5faced737150d84072a SOURCES/tough-cookie-2.3.2.tgz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/nodejs-tough-cookie.spec b/SPECS/nodejs-tough-cookie.spec new file mode 100644 index 0000000..3ab522d --- /dev/null +++ b/SPECS/nodejs-tough-cookie.spec @@ -0,0 +1,75 @@ +%{?scl:%scl_package nodejs-tough-cookie} +%{!?scl:%global pkg_name %{name}} +%global npm_name tough-cookie +%{?nodejs_find_provides_and_requires} + +%{!?scl:%global enable_tests 0} + +Name: %{?scl_prefix}nodejs-tough-cookie +Version: 2.3.2 +Release: 3%{?dist} +Summary: RFC6265 Cookies and Cookie Jar for node.js +Url: https://github.com/SalesforceEng/tough-cookie +Source0: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz +License: BSD + +BuildArch: noarch +ExclusiveArch: %{ix86} x86_64 %{arm} noarch + +BuildRequires: %{?scl_prefix}nodejs-devel + +%if 0%{?enable_tests} +BuildRequires: npm(async) +BuildRequires: npm(vows) +%endif + +%description +RFC6265 Cookies and Cookie Jar for node.js + +%prep +%setup -q -n package + +# remove punycode as dependency as it is povided differenly from nodejs package +%nodejs_fixdep punycode -r + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} + +cp -pr package.json lib/ %{buildroot}%{nodejs_sitelib}/%{npm_name} + +%{nodejs_symlink_deps} + +%if 0%{?enable_tests} +%check +%{nodejs_symlink_deps} --check +vows test/*_test.js +%endif + +%files +%{nodejs_sitelib}/tough-cookie + +%doc README.md +%doc LICENSE + +%changelog +* Thu Jan 26 2017 Zuzana Svetlikova - 2.3.2-3 +- Remove punycode from dependencies (RHBZ#1416815) + +* Thu Jan 05 2017 Zuzana Svetlikova - 2.3.2-2 +- Fixdep punycode + +* Thu Jan 05 2017 Zuzana Svetlikova - 2.3.2-1 +- Updated with script + +* Tue Sep 13 2016 Zuzana Svetlikova - 2.2.2-1 +- Updated with script +- tar has some issues but should be okay + +* Sun Feb 14 2016 Zuzana Svetlikova - 2.0.0-2 +- rebuilt + +* Thu Jul 16 2015 Zuzana Svetlikova - 2.0.0-1 +- Initial build