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