package init
This commit is contained in:
parent
5a617556c1
commit
ae3ad605e8
BIN
heap-0.2.6.tgz
Normal file
BIN
heap-0.2.6.tgz
Normal file
Binary file not shown.
48
nodejs-heap.spec
Normal file
48
nodejs-heap.spec
Normal file
@ -0,0 +1,48 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
%global packagename heap
|
||||
%global enable_tests 1
|
||||
Name: nodejs-heap
|
||||
Version: 0.2.6
|
||||
Release: 1
|
||||
Summary: Binary heap (priority queue) algorithms
|
||||
License: Python
|
||||
URL: https://github.com/qiao/heap.js.git
|
||||
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: coffee-script mocha npm(should)
|
||||
%endif
|
||||
%description
|
||||
Binary heap (priority queue) algorithms (ported from Python's heapq module)
|
||||
|
||||
%prep
|
||||
%setup -q -n package
|
||||
rm lib/heap.js
|
||||
|
||||
%build
|
||||
%{_bindir}/coffee -c -b -o lib/ src/*.coffee
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||
cp -pr package.json *.js lib/ \
|
||||
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||
%nodejs_symlink_deps
|
||||
%if 0%{?enable_tests}
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%{__nodejs} -e 'require("./")'
|
||||
%{_bindir}/coffee -c -b test/*.coffee
|
||||
%{_bindir}/mocha -r should -R spec
|
||||
%endif
|
||||
|
||||
%files
|
||||
%{!?_licensedir:%global license %doc}
|
||||
%doc *.md
|
||||
%{nodejs_sitelib}/%{packagename}
|
||||
|
||||
%changelog
|
||||
* Thu Aug 20 2020 wangxiao <wangxiao65@huawei.com> - 0.2.6-1
|
||||
- Package init
|
||||
5
nodejs-heap.yaml
Normal file
5
nodejs-heap.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
git_url: https://github.com/qiao/heap.js
|
||||
version_control: github
|
||||
src_repo: qiao/heap.js
|
||||
tag_prefix: ""
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user