|
|
20928f |
%{?scl:%scl_package nodejs-tough-cookie}
|
|
|
20928f |
%{!?scl:%global pkg_name %{name}}
|
|
|
20928f |
%global npm_name tough-cookie
|
|
|
20928f |
%{?nodejs_find_provides_and_requires}
|
|
|
20928f |
|
|
|
20928f |
%{!?scl:%global enable_tests 0}
|
|
|
20928f |
|
|
|
20928f |
Name: %{?scl_prefix}nodejs-tough-cookie
|
|
|
abb89b |
Version: 2.3.3
|
|
|
abb89b |
Release: 2%{?dist}
|
|
|
20928f |
Summary: RFC6265 Cookies and Cookie Jar for node.js
|
|
|
20928f |
Url: https://github.com/SalesforceEng/tough-cookie
|
|
|
20928f |
Source0: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
|
|
|
20928f |
License: BSD
|
|
|
20928f |
|
|
|
20928f |
BuildArch: noarch
|
|
|
abb89b |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
20928f |
|
|
|
20928f |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
20928f |
|
|
|
20928f |
%if 0%{?enable_tests}
|
|
|
20928f |
BuildRequires: npm(async)
|
|
|
20928f |
BuildRequires: npm(vows)
|
|
|
20928f |
%endif
|
|
|
20928f |
|
|
|
20928f |
%description
|
|
|
20928f |
RFC6265 Cookies and Cookie Jar for node.js
|
|
|
20928f |
|
|
|
20928f |
%prep
|
|
|
20928f |
%setup -q -n package
|
|
|
20928f |
|
|
|
20928f |
# remove punycode as dependency as it is povided differenly from nodejs package
|
|
|
20928f |
%nodejs_fixdep punycode -r
|
|
|
20928f |
|
|
|
20928f |
%build
|
|
|
20928f |
#nothing to do
|
|
|
20928f |
|
|
|
20928f |
%install
|
|
|
20928f |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
|
|
|
20928f |
|
|
|
20928f |
cp -pr package.json lib/ %{buildroot}%{nodejs_sitelib}/%{npm_name}
|
|
|
20928f |
|
|
|
20928f |
%{nodejs_symlink_deps}
|
|
|
20928f |
|
|
|
20928f |
%if 0%{?enable_tests}
|
|
|
20928f |
%check
|
|
|
20928f |
%{nodejs_symlink_deps} --check
|
|
|
20928f |
vows test/*_test.js
|
|
|
20928f |
%endif
|
|
|
20928f |
|
|
|
20928f |
%files
|
|
|
20928f |
%{nodejs_sitelib}/tough-cookie
|
|
|
20928f |
|
|
|
20928f |
%doc README.md
|
|
|
20928f |
%doc LICENSE
|
|
|
20928f |
|
|
|
20928f |
%changelog
|
|
|
abb89b |
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.3.3-2
|
|
|
abb89b |
- Resolves: RHBZ#1543198, rebuild for multiarch
|
|
|
abb89b |
|
|
|
693d43 |
* Mon Oct 02 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.3.3-1
|
|
|
abb89b |
- Resolves: RHBZ#1497697
|
|
|
693d43 |
|
|
|
20928f |
* Thu Jan 26 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.3.2-3
|
|
|
20928f |
- Remove punycode from dependencies (RHBZ#1416815)
|
|
|
20928f |
|
|
|
20928f |
* Thu Jan 05 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.3.2-2
|
|
|
20928f |
- Fixdep punycode
|
|
|
20928f |
|
|
|
20928f |
* Thu Jan 05 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.3.2-1
|
|
|
20928f |
- Updated with script
|
|
|
20928f |
|
|
|
20928f |
* Tue Sep 13 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.2.2-1
|
|
|
20928f |
- Updated with script
|
|
|
20928f |
- tar has some issues but should be okay
|
|
|
20928f |
|
|
|
20928f |
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.0-2
|
|
|
20928f |
- rebuilt
|
|
|
20928f |
|
|
|
20928f |
* Thu Jul 16 2015 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.0-1
|
|
|
20928f |
- Initial build
|