7739509
%global enable_tests 0
7739509
7739509
Name:           nodejs-hawk
d348acd
Version:        4.1.2
c4e2651
Release:        8%{?dist}
7739509
Summary:        HTTP Hawk authentication scheme
7739509
License:        BSD
7739509
URL:            https://github.com/hueniverse/hawk
7739509
Source0:        https://registry.npmjs.org/hawk/-/hawk-%{version}.tgz
7739509
BuildArch:      noarch
7739509
ExclusiveArch:  %{nodejs_arches} noarch
7739509
7739509
BuildRequires:  nodejs-packaging
7739509
7739509
BuildRequires:  npm(boom)
7739509
BuildRequires:  npm(cryptiles)
7739509
BuildRequires:  npm(hoek)
7739509
BuildRequires:  npm(sntp)
7739509
7739509
%if 0%{?enable_tests}
7739509
BuildRequires:  npm(lab)
7739509
BuildRequires:  npm(code)
7739509
%endif
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
%description
T.C. Hollingsworth aa354fc
Hawk is an HTTP authentication scheme using a message authentication code (MAC)
T.C. Hollingsworth aa354fc
algorithm to provide partial HTTP request cryptographic verification.
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
%prep
d348acd
%autosetup -n package
7739509
%nodejs_fixdep cryptiles "^2.0.5"
7739509
%nodejs_fixdep boom "^2.10.1"
7739509
%nodejs_fixdep hoek "^0.9.1"
7739509
chmod a-x README.md LICENSE package.json client.js example/* images/* lib/*
d348acd
sed -i 's/\r$//' README.md
d348acd
sed -i 's/\r$//' example/usage.js
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
%build
T.C. Hollingsworth aa354fc
#nothing to do
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
7739509
%install
T.C. Hollingsworth aa354fc
mkdir -p %{buildroot}%{nodejs_sitelib}/hawk
7739509
cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/hawk
T.C. Hollingsworth aa354fc
%nodejs_symlink_deps
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
7739509
%check
7739509
%nodejs_symlink_deps --check
7739509
%__nodejs -e "require('./')"
7739509
%if 0%{?enable_tests}
7739509
%{nodejs_sitelib}/lab/bin/lab -a code -t 100 -L
7739509
%endif
7739509
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
%files
7739509
%doc README.md example images
7739509
%license LICENSE
T.C. Hollingsworth aa354fc
%{nodejs_sitelib}/hawk
7739509
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
%changelog
c4e2651
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.2-8
c4e2651
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c4e2651
bafed79
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.2-7
bafed79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
bafed79
be6f2f9
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.2-6
be6f2f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
be6f2f9
da5b984
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.2-5
da5b984
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
da5b984
33d016e
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.2-4
33d016e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
33d016e
a1f2acc
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.2-3
a1f2acc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a1f2acc
4d6673f
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.2-2
4d6673f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4d6673f
d348acd
* Sat Feb 18 2017 Piotr Popieluch <piotr1212@gmail.com> - 4.1.2-1
d348acd
- Update to 4.1.2
d348acd
- Fixes CVE-2016-2515 rhbz#1309722
d348acd
26492c4
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-3
26492c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
26492c4
8af7e89
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-2
8af7e89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8af7e89
769a7a3
* Mon Jan 18 2016 Tom Hughes <tom@compton.nu> - 4.1.0-1
769a7a3
- Update to 4.1.0 upstream release
769a7a3
7739509
* Sun Jan 17 2016 Tom Hughes <tom@compton.nu> - 4.0.1-1
7739509
- Update to 4.0.1 upstream release
7739509
3ce4cca
* Sun Dec 13 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.0.0-5
3ce4cca
- Fixdep sntp
3ce4cca
e1c8835
* Tue Dec 01 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.0.0-4
e1c8835
- Fixdep boom and cryptiles
e1c8835
47123fd
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-3
47123fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
47123fd
43fbb3c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
43fbb3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
43fbb3c
T.C. Hollingsworth cff90c9
* Tue Jul 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0.0-1
T.C. Hollingsworth cff90c9
- new upstream release 1.0.0
T.C. Hollingsworth cff90c9
T.C. Hollingsworth c592ac1
* Sun Jun 23 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.15.0-1
T.C. Hollingsworth c592ac1
- new upstream release 0.15.0
T.C. Hollingsworth c592ac1
T.C. Hollingsworth e4500b9
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.12.1-3
T.C. Hollingsworth e4500b9
- restrict to compatible arches
T.C. Hollingsworth e4500b9
T.C. Hollingsworth 1fef975
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.12.1-2
T.C. Hollingsworth 1fef975
- add macro for EPEL6 dependency generation
T.C. Hollingsworth 1fef975
T.C. Hollingsworth aa354fc
* Tue Apr 09 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.12.1-1
T.C. Hollingsworth aa354fc
- new upstream release 0.12.1
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
* Mon Apr 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.11.1-2
T.C. Hollingsworth aa354fc
- fix rpmlint warnings
T.C. Hollingsworth aa354fc
T.C. Hollingsworth aa354fc
* Fri Apr 05 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.11.1-1
T.C. Hollingsworth aa354fc
- initial package