nodejs-hashish/nodejs-hashish.spec

45 lines
1.2 KiB
RPMSpec
Raw Normal View History

2020-08-20 19:47:50 +08:00
%global npm_name hashish
%global enable_tests 0
Summary: Hash data structure manipulation functions
Name: nodejs-%{npm_name}
Version: 0.0.4
2021-01-05 11:27:49 +08:00
Release: 2
2020-08-20 19:47:50 +08:00
License: MIT
URL: http://github.com/substack/node-hashish
Source0: http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
2021-01-05 11:27:49 +08:00
Source1: LICENSE
2020-08-20 19:47:50 +08:00
BuildRequires: nodejs-devel
%if 0%{?enable_tests}
BuildRequires: npm(expresso)
%endif
BuildArch: noarch
%description
Hashish is a node.js library for manipulating hash data structures.
It is distilled from the finest that ruby, perl, and haskell have
to offer by way of hash/map interfaces.
%prep
%setup -q -n package
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
cp -pr examples index.js package.json test %{buildroot}%{nodejs_sitelib}/%{npm_name}
%if 0%{?enable_tests}
%check
expresso
%endif
%files
%doc README.markdown
%{nodejs_sitelib}/%{npm_name}
%changelog
2021-01-05 11:27:49 +08:00
* Tue Jan 05 2021 huanghaitao <huanghaitao8@huawei.com> - 0.0.4-2
- Add LICENSE with MIT
2020-08-20 19:47:50 +08:00
* Thu Aug 20 2020 wangxiao <wangxiao65@huawei.com> - 0.0.4-1
- Package init