!2 package init

Merge pull request !2 from jackie_wu123/master
This commit is contained in:
openeuler-ci-bot 2020-08-21 17:48:37 +08:00 committed by Gitee
commit eb069da2e6
3 changed files with 44 additions and 0 deletions

40
nodejs-oauth-sign.spec Normal file
View File

@ -0,0 +1,40 @@
%{?nodejs_find_provides_and_requires}
%global enable_tests 0
Name: nodejs-oauth-sign
Version: 0.8.1
Release: 1
Summary: OAuth1 signing for Node.js
License: ASL 2.0
URL: https://github.com/mikeal/oauth-sign
Source0: https://registry.npmjs.org/oauth-sign/-/oauth-sign-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%description
%{summary}.
%prep
%setup -q -n package
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/oauth-sign
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/oauth-sign
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%__nodejs -e "require('./')"
%if 0%{?enable_tests}
%__nodejs test.js
%endif
%files
%doc README.md
%license LICENSE
%{nodejs_sitelib}/oauth-sign
%changelog
* Mon Aug 17 2020 wutao <wutao61@huawei.com> - 0.8.1-1
- Package init

4
nodejs-oauth-sign.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: mikeal/oauth-sign
tag_prefix: "^v"
seperator: "."

BIN
oauth-sign-0.8.1.tgz Normal file

Binary file not shown.