Blame SPECS/nodejs-pseudomap.spec

2c51ec
%{?scl:%scl_package nodejs-rimraf}
2c51ec
%{!?scl:%global pkg_name %{name}}
2c51ec
2c51ec
%global npm_name pseudomap
2c51ec
%{?nodejs_find_provides_and_requires}
2c51ec
2c51ec
%global enable_tests 0
2c51ec
2c51ec
Name:		%{?scl_prefix}nodejs-pseudomap
2c51ec
Version:	1.0.2
2c51ec
Release:	1%{?dist}
2c51ec
Summary:	A thing that is a lot like ES6 `Map`, but without iterators, for use in environments where `for..of` syntax and `Map` are not available.
2c51ec
Url:		https://github.com/isaacs/pseudomap#readme
2c51ec
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
2c51ec
License:	ISC
2c51ec
2c51ec
BuildArch:	noarch
2c51ec
ExclusiveArch:	%{nodejs_arches} noarch
2c51ec
2c51ec
BuildRequires:	%{?scl_prefix}nodejs-devel
2c51ec
2c51ec
%if 0%{?enable_tests}
2c51ec
BuildRequires:	npm(tap)
2c51ec
%endif
2c51ec
2c51ec
%description
2c51ec
A thing that is a lot like ES6 `Map`, but without iterators, for use in environments where `for..of` syntax and `Map` are not available.
2c51ec
2c51ec
%prep
2c51ec
%setup -q -n package
2c51ec
2c51ec
%build
2c51ec
#nothing to do
2c51ec
2c51ec
%install
2c51ec
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
2c51ec
2c51ec
cp -pr package.json map.js pseudomap.js \
2c51ec
	%{buildroot}%{nodejs_sitelib}/%{npm_name}
2c51ec
2c51ec
%{nodejs_symlink_deps}
2c51ec
2c51ec
%if 0%{?enable_tests}
2c51ec
%check
2c51ec
%{nodejs_symlink_deps} --check
2c51ec
tap test/*.js
2c51ec
%endif
2c51ec
2c51ec
%files
2c51ec
%{nodejs_sitelib}/pseudomap
2c51ec
2c51ec
%doc README.md
2c51ec
%license LICENSE
2c51ec
2c51ec
%changelog
2c51ec
* Thu Apr 07 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.2-1
2c51ec
- Initial build
2c51ec