fuanan add package

This commit is contained in:
fwx913451 2020-08-21 16:19:19 +08:00
parent 8e5633c7e8
commit bf5fe6fca0

View File

@ -1,20 +1,17 @@
%{?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/iarna/gauge.git
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
BuildArch: noarch
%if 0%{?fedora} >= 19
ExclusiveArch: %{nodejs_arches} noarch
%else
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
%endif
BuildRequires: nodejs-packaging npm(ansi) npm(has-unicode) npm(lodash.pad)
Name: nodejs-gauge
Version: 1.2.5
Release: 1
Summary: A terminal based horizontal gauge
License: ISC
URL: https://github.com/iarna/gauge.git
Source0: https://registry.npmjs.org/gauge/-/gauge-%{version}.tgz
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)