!2 Update to version 3.0.0

From: @wang--ge 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
This commit is contained in:
openeuler-ci-bot 2023-11-02 08:28:39 +00:00 committed by Gitee
commit bc5476ce03
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 14 additions and 4 deletions

Binary file not shown.

View File

@ -1,22 +1,28 @@
%{?nodejs_find_provides_and_requires} %{?nodejs_find_provides_and_requires}
%global enable_tests 1 %global enable_tests 1
Name: nodejs-node-uuid Name: nodejs-node-uuid
Version: 1.4.7 Version: 3.0.0
Release: 1 Release: 1
Summary: Simple and fast generation of RFC4122 (v1 and v4) UUIDs for Node.js Summary: Simple and fast generation of RFC4122 (v1 and v4) UUIDs for Node.js
License: MIT License: MIT
URL: https://github.com/broofa/node-uuid URL: https://github.com/broofa/node-uuid
Source0: https://registry.npmjs.org/node-uuid/-/node-uuid-%{version}.tgz Source0: https://github.com/broofa/node-uuid/archive/refs/tags/v%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging BuildRequires: nodejs-packaging
Provides: npm(node-uuid)
%if 0%{?enable_tests}
BuildRequires: npm(test) npm mocha
%endif
%description %description
This Node.js module provides simple and fast generation of RFC4122 (v1 and v4) This Node.js module provides simple and fast generation of RFC4122 (v1 and v4)
UUIDs. It runs in Node.js and all browsers and can also generate UUIDs. It runs in Node.js and all browsers and can also generate
cryptographically strong random numbers. cryptographically strong random numbers.
%prep %prep
%setup -q -n package %setup -q -n node-uuid-%{version}
%build %build
@ -24,12 +30,13 @@ cryptographically strong random numbers.
mkdir -p %{buildroot}%{nodejs_sitelib}/node-uuid mkdir -p %{buildroot}%{nodejs_sitelib}/node-uuid
cp -pr package.json uuid.js \ cp -pr package.json uuid.js \
%{buildroot}%{nodejs_sitelib}/node-uuid %{buildroot}%{nodejs_sitelib}/node-uuid
cp -rf lib %{buildroot}%{nodejs_sitelib}/node-uuid
%nodejs_symlink_deps %nodejs_symlink_deps
%if 0%{?enable_tests} %if 0%{?enable_tests}
%check %check
%nodejs_symlink_deps --check %nodejs_symlink_deps --check
%__nodejs test/test.js npm test test/test.js
%endif %endif
%files %files
@ -38,5 +45,8 @@ cp -pr package.json uuid.js \
%{nodejs_sitelib}/node-uuid %{nodejs_sitelib}/node-uuid
%changelog %changelog
* Thu Nov 02 2023 Ge Wang <wang__ge@126.com> - 3.0.0-1
- Update to version 3.0.0
* Mon Aug 17 2020 wutao <wutao61@huawei.com> - 1.4.7-1 * Mon Aug 17 2020 wutao <wutao61@huawei.com> - 1.4.7-1
- Package init - Package init

BIN
v3.0.0.tar.gz Normal file

Binary file not shown.