nodejs-hawk/nodejs-hawk.spec

57 lines
1.5 KiB
RPMSpec
Raw Normal View History

2020-08-20 19:47:50 +08:00
%global enable_tests 0
Name: nodejs-hawk
2022-06-30 16:24:37 +08:00
Version: 9.0.1
Release: 1
2020-08-20 19:47:50 +08:00
Summary: HTTP Hawk authentication scheme
2022-05-09 18:17:53 +08:00
License: BSD-3-Clause
2020-08-20 19:47:50 +08:00
URL: https://github.com/hueniverse/hawk
Source0: https://registry.npmjs.org/hawk/-/hawk-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
2022-06-30 16:24:37 +08:00
BuildRequires: nodejs-packaging
2020-08-20 19:47:50 +08:00
%if 0%{?enable_tests}
BuildRequires: npm(lab) npm(code)
%endif
%description
Hawk is an HTTP authentication scheme using a message authentication code (MAC)
algorithm to provide partial HTTP request cryptographic verification.
%prep
2022-05-17 10:47:58 +08:00
%autosetup -n package -p1
2022-06-30 16:24:37 +08:00
%nodejs_fixdep -r @hapi/b64
%nodejs_fixdep -r @hapi/boom
%nodejs_fixdep -r @hapi/cryptiles
%nodejs_fixdep -r @hapi/hoek
chmod a-x README.md package.json lib/*
2020-08-20 19:47:50 +08:00
sed -i 's/\r$//' README.md
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/hawk
cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/hawk
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%if 0%{?enable_tests}
%{nodejs_sitelib}/lab/bin/lab -a code -t 100 -L
%endif
%files
2022-06-30 16:24:37 +08:00
%doc README.md
2020-08-20 19:47:50 +08:00
%{nodejs_sitelib}/hawk
%changelog
2022-06-30 16:24:37 +08:00
* Thu Jun 30 2022 houyingchao <houyingchao@h-partners.com> - 9.0.1-1
- Upgrade to 9.0.1
2022-05-17 10:47:58 +08:00
* Tue May 17 2022 houyingchao <houyingchao@h-partners.com> - 4.1.2-3
- Fix CVE-2022-29167
2022-05-09 18:17:53 +08:00
* Mon May 9 2022 liyanan <liyanan32@h-partners.com> - 4.1.2-2
- License compliance rectification
2020-08-20 19:47:50 +08:00
* Thu Aug 20 2020 wangxiao <wangxiao65@huawei.com> - 4.1.2-1
- Package init