!1 add package

Merge pull request !1 from 付安安/master
This commit is contained in:
openeuler-ci-bot 2020-09-07 21:20:08 +08:00 committed by Gitee
commit 2e4c8cf68d
3 changed files with 52 additions and 0 deletions

48
nodejs-gauge.spec Normal file
View File

@ -0,0 +1,48 @@
%{?nodejs_find_provides_and_requires}
%global packagename gauge
%global enable_tests 1
Name: nodejs-gauge
Version: 1.2.5
Release: 1
Summary: A terminal based horizontal gauge
License: ISC
URL: https://github.com/npm/gauge
Source0: https://github.com/npm/gauge/archive/v%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
BuildRequires: nodejs-packaging npm(ansi) npm(has-unicode) npm(lodash.pad)
BuildRequires: npm(lodash.padleft) npm(lodash.padright)
%if 0%{?enable_tests}
BuildRequires: npm(tap)
%endif
%description
A terminal based horizontal gauge
%prep
%autosetup -n gauge-%{version}
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
cp -pr package.json *.js \
%{buildroot}%{nodejs_sitelib}/%{packagename}
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'
%if 0%{?enable_tests}
%{_bindir}/tap test/*.js
%endif
%files
%{!?_licensedir:%global license %doc}
%doc *.md
%license LICENSE
%{nodejs_sitelib}/%{packagename}
%changelog
* Thu Aug 20 2020 Anan Fu <fuanan3@huawei.com> - 1.2.5-1
- package init

4
nodejs-gauge.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: iarna/gauge.git
tag_prefix: "^v"
seperator: "."

BIN
v1.2.5.tar.gz Normal file

Binary file not shown.