package init
This commit is contained in:
parent
abf8eca886
commit
9ba13c2c57
BIN
http-signature-0.10.0.tgz
Normal file
BIN
http-signature-0.10.0.tgz
Normal file
Binary file not shown.
BIN
nodejs-http-signature-0.10.0-8881c4a.tar.gz
Normal file
BIN
nodejs-http-signature-0.10.0-8881c4a.tar.gz
Normal file
Binary file not shown.
44
nodejs-http-signature.spec
Normal file
44
nodejs-http-signature.spec
Normal file
@ -0,0 +1,44 @@
|
||||
%global commit 8881c4a806604deabe958f37e51672a65ef150fe
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
Name: nodejs-http-signature
|
||||
Version: 0.10.0
|
||||
Release: 1
|
||||
Summary: Reference implementation of Joyent's HTTP Signature Scheme
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
License: MIT
|
||||
URL: https://github.com/joyent/node-http-signature
|
||||
Source0: https://registry.npmjs.org/http-signature/-/http-signature-%{version}.tgz
|
||||
Source1: https://github.com/joyent/node-http-signature/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
|
||||
BuildRequires: nodejs-packaging npm(tap) npm(node-uuid) npm(assert-plus) npm(asn1) npm(ctype)
|
||||
%description
|
||||
nodejs-http-signature is a node.js library that has client and server components
|
||||
for Joyent's HTTP Signature Scheme.
|
||||
|
||||
%prep
|
||||
%setup -q -n package -a1
|
||||
%nodejs_fixdep assert-plus
|
||||
%nodejs_fixdep ctype '~0.5.3'
|
||||
%nodejs_fixdep asn1 '~0.1.11'
|
||||
mv node-http-signature-%{commit}/test .
|
||||
rm -rf node-http-signature-%{commit}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/http-signature
|
||||
cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/http-signature
|
||||
%nodejs_symlink_deps
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%tap test/*.js
|
||||
|
||||
%files
|
||||
%{nodejs_sitelib}/http-signature
|
||||
%doc README.md http_signing.md
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
* Thu Aug 20 2020 wangxiao <wangxiao65@huawei.com> - 0.10.0-1
|
||||
- Package init
|
||||
5
nodejs-http-signature.yaml
Normal file
5
nodejs-http-signature.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
git_url: https://github.com/joyent/node-http-signature
|
||||
version_control: github
|
||||
src_repo: joyent/node-http-signature
|
||||
tag_prefix: "^v"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user