commit
ebd1ffc345
BIN
lru-queue-0.1.0.tgz
Normal file
BIN
lru-queue-0.1.0.tgz
Normal file
Binary file not shown.
48
nodejs-lru-queue.spec
Normal file
48
nodejs-lru-queue.spec
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
%global packagename lru-queue
|
||||||
|
%global enable_tests 0
|
||||||
|
Name: nodejs-lru-queue
|
||||||
|
Version: 0.1.0
|
||||||
|
Release: 1
|
||||||
|
Summary: LRU Queue
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/medikoo/lru-queue.git
|
||||||
|
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
BuildRequires: npm(tad)
|
||||||
|
%endif
|
||||||
|
%description
|
||||||
|
LRU Queue
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n package
|
||||||
|
|
||||||
|
%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
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
%{__nodejs} -e 'require("./")'
|
||||||
|
%{__nodejs} %{nodejs_sitelib}/tad/bin/tad
|
||||||
|
%else
|
||||||
|
echo "Tests are disabled..."
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{!?_licensedir:%global license %doc}
|
||||||
|
%doc *.md CHANGES
|
||||||
|
%license LICENCE
|
||||||
|
%{nodejs_sitelib}/%{packagename}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Aug 20 2020 yaokai <yaokai13@huawei.com> - 0.1.0-1
|
||||||
|
- Package init
|
||||||
4
nodejs-lru-queue.yaml
Normal file
4
nodejs-lru-queue.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: medikoo/lru-queue
|
||||||
|
tag_pattern: "^v"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user