e2aa4c0
%{?nodejs_find_provides_and_requires}
e2aa4c0
e2aa4c0
%global module_name has-unicode
e2aa4c0
%global enable_tests 1
e2aa4c0
e2aa4c0
Name:		nodejs-%{module_name}
fbd412c
Version:	2.0.1
fbd412c
Release:	1%{?dist}
e2aa4c0
Summary:	Try to guess if your terminal supports unicode 
e2aa4c0
e2aa4c0
License:	ISC
e2aa4c0
URL:		https://github.com/iarna/has-unicode
e2aa4c0
Source0:	https://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
e2aa4c0
e2aa4c0
ExclusiveArch:	%{nodejs_arches} noarch
e2aa4c0
BuildArch:	noarch
e2aa4c0
e2aa4c0
BuildRequires:	nodejs-packaging
e2aa4c0
e2aa4c0
%if 0%{?enable_tests}
e2aa4c0
BuildRequires:	npm(tap)
e2aa4c0
BuildRequires:  npm(require-inject)
e2aa4c0
%endif
e2aa4c0
e2aa4c0
%description
e2aa4c0
Try to guess if your terminal supports unicode.
e2aa4c0
e2aa4c0
%prep
e2aa4c0
%setup -q -n package
e2aa4c0
e2aa4c0
e2aa4c0
%build
e2aa4c0
# nothing to do
e2aa4c0
e2aa4c0
%install
e2aa4c0
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
e2aa4c0
cp -pr package.json *.js \
e2aa4c0
	%{buildroot}%{nodejs_sitelib}/%{module_name}
e2aa4c0
e2aa4c0
%nodejs_symlink_deps
e2aa4c0
e2aa4c0
%if 0%{?enable_tests}
e2aa4c0
%check
e2aa4c0
%nodejs_symlink_deps --check
e2aa4c0
tap test/*.js
e2aa4c0
%endif
e2aa4c0
e2aa4c0
e2aa4c0
%files
e2aa4c0
%{!?_licensedir:%global license %doc}
e2aa4c0
%doc README.md
e2aa4c0
%license LICENSE
e2aa4c0
%{nodejs_sitelib}/%{module_name}
e2aa4c0
e2aa4c0
%changelog
fbd412c
* Fri Jun 24 2016 Parag Nemade <pnemade AT redhat DOT com> - 2.0.1-1
fbd412c
- Update 2.0.1 release
fbd412c
d9f6492
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
d9f6492
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d9f6492
e2aa4c0
* Tue Dec 15 2015 Parag Nemade <pnemade AT redhat DOT com> - 2.0.0-1
e2aa4c0
- Initial packaging