!1 package init

Merge pull request !1 from jackie_wu123/master
This commit is contained in:
openeuler-ci-bot 2020-08-21 14:50:03 +08:00 committed by Gitee
commit 76a570406c
3 changed files with 39 additions and 0 deletions

BIN
abbrev-1.0.7.tgz Normal file

Binary file not shown.

35
nodejs-abbrev.spec Normal file
View File

@ -0,0 +1,35 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-abbrev
Version: 1.0.7
Release: 1
Summary: Abbreviation calculator for Node.js
License: MIT
URL: https://github.com/isaacs/abbrev-js
Source0: https://registry.npmjs.org/abbrev/-/abbrev-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%description
Calculate the set of unique abbreviations for a given set of strings.
%prep
%setup -q -n package
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/abbrev
cp -pr abbrev.js package.json %{buildroot}%{nodejs_sitelib}/abbrev
%nodejs_symlink_deps
%check
node abbrev.js
%files
%{nodejs_sitelib}/abbrev
%doc README.md
%license LICENSE
%changelog
* Sat Aug 8 2020 wutao <wutao61@huawei.com> - 1.0.7-1
- package init

4
nodejs-abbrev.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: isaacs/abbrev-js
tag_prefix: "^v"
seperator: "."