From 8d39434041a1c693c40f6af116f56398a69b2ff4 Mon Sep 17 00:00:00 2001 From: wu-leilei Date: Tue, 29 Aug 2023 17:52:28 +0800 Subject: [PATCH] Remove unused hapi dependencies (cherry picked from commit da7bde04205c9282d17d90d75d3d7fba3c45c3b9) --- 0001-remove-unused-hapi-dependencies.patch | 56 ++++++++++++++++++++++ nodejs-hawk.spec | 6 ++- 2 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 0001-remove-unused-hapi-dependencies.patch diff --git a/0001-remove-unused-hapi-dependencies.patch b/0001-remove-unused-hapi-dependencies.patch new file mode 100644 index 0000000..467eced --- /dev/null +++ b/0001-remove-unused-hapi-dependencies.patch @@ -0,0 +1,56 @@ +From 6d2aa9e5677ba4882e4a79cc8b58f53bf04bc038 Mon Sep 17 00:00:00 2001 +From: chen-jan +Date: Thu, 1 Jun 2023 09:22:01 +0800 +Subject: [PATCH] remove unused hapi dependencies + +--- + lib/client.js | 5 ----- + lib/server.js | 5 ----- + lib/utils.js | 1 - + 3 files changed, 11 deletions(-) + +diff --git a/lib/client.js b/lib/client.js +index 7bd383a..5946716 100644 +--- a/lib/client.js ++++ b/lib/client.js +@@ -2,11 +2,6 @@ + + const Url = require('url'); + +-const B64 = require('@hapi/b64'); +-const Boom = require('@hapi/boom'); +-const Cryptiles = require('@hapi/cryptiles'); +-const Hoek = require('@hapi/hoek'); +- + const Crypto = require('./crypto'); + const Utils = require('./utils'); + +diff --git a/lib/server.js b/lib/server.js +index 30a85ca..3850990 100644 +--- a/lib/server.js ++++ b/lib/server.js +@@ -1,10 +1,5 @@ + 'use strict'; + +-const B64 = require('@hapi/b64'); +-const Boom = require('@hapi/boom'); +-const Cryptiles = require('@hapi/cryptiles'); +-const Hoek = require('@hapi/hoek'); +- + const Crypto = require('./crypto'); + const Utils = require('./utils'); + +diff --git a/lib/utils.js b/lib/utils.js +index 3a054e3..53a06ff 100644 +--- a/lib/utils.js ++++ b/lib/utils.js +@@ -1,6 +1,5 @@ + 'use strict'; + +-const Boom = require('@hapi/boom'); + const Url = require('url'); + + +-- +2.33.0 + diff --git a/nodejs-hawk.spec b/nodejs-hawk.spec index 04f57ba..b1eea49 100644 --- a/nodejs-hawk.spec +++ b/nodejs-hawk.spec @@ -1,11 +1,12 @@ %global enable_tests 0 Name: nodejs-hawk Version: 9.0.1 -Release: 1 +Release: 2 Summary: HTTP Hawk authentication scheme License: BSD-3-Clause URL: https://github.com/hueniverse/hawk Source0: https://registry.npmjs.org/hawk/-/hawk-%{version}.tgz +Patch0: 0001-remove-unused-hapi-dependencies.patch BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging @@ -43,6 +44,9 @@ cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/hawk %{nodejs_sitelib}/hawk %changelog +* Tue Aug 29 2023 wulei - 9.0.1-2 +- Remove unused hapi dependencies + * Thu Jun 30 2022 houyingchao - 9.0.1-1 - Upgrade to 9.0.1