!1 package init

Merge pull request !1 from 康少强/master
This commit is contained in:
openeuler-ci-bot 2020-09-08 18:32:53 +08:00 committed by Gitee
commit fe6ff22731
3 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,46 @@
%{?nodejs_find_provides_and_requires}
%global enable_tests 1
Name: nodejs-are-we-there-yet
Version: 1.0.5
Release: 1
Summary: Keep track of the overall completion of many disparate processes
License: ISC
URL: https://github.com/iarna/are-we-there-yet.git
Source0: https://github.com/iarna/are-we-there-yet/archive/v%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging npm(delegates) npm(readable-stream)
%if 0%{?enable_tests}
BuildRequires: npm(tap)
%endif
%description
Keep track of the overall completion of many disparate processes
%prep
%autosetup -n are-we-there-yet-%{version}
%nodejs_fixdep delegates '>=0.1.0'
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/are-we-there-yet
cp -pr package.json *.js \
%{buildroot}%{nodejs_sitelib}/are-we-there-yet
%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}/are-we-there-yet
%changelog
* Thu Aug 20 2020 huanghaitao <huanghaitao8@huawei.com> - 1.0.5-1
- package init

View File

@ -0,0 +1,4 @@
version_control: github
src_repo: npm/are-we-there-yet
tag_prefix: "v"
seperator: "."

BIN
v1.0.5.tar.gz Normal file

Binary file not shown.