Blame SPECS/nodejs-has-unicode.spec

632265
%{?scl:%scl_package nodejs-has-unicode}
632265
%{!?scl:%global pkg_name %{name}}
632265
632265
# spec file for package nodejs-nodejs-has-unicode
632265
632265
%global npm_name has-unicode
632265
%{?nodejs_find_provides_and_requires}
632265
632265
%global enable_tests 0
632265
632265
Name:		%{?scl_prefix}nodejs-has-unicode
632265
Version:	2.0.0
632265
Release:	1%{?dist}
632265
Summary:	Try to guess if your terminal supports unicode
632265
Url:		https://github.com/iarna/has-unicode
632265
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
632265
License:	ISC
632265
632265
BuildArch:	noarch
632265
632265
%if 0%{?fedora} >= 19
632265
ExclusiveArch: %{nodejs_arches} noarch
632265
%else
632265
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
632265
%endif
632265
632265
BuildRequires:  %{?scl_prefix}nodejs-devel
632265
BuildRequires:  nodejs010-runtime
632265
632265
%if 0%{?enable_tests}
632265
BuildRequires:	%{?scl_prefix}npm(require-inject)
632265
BuildRequires:	%{?scl_prefix}npm(tap)
632265
%endif
632265
632265
%description
632265
Try to guess if your terminal supports unicode
632265
632265
%prep
632265
%setup -q -n package
632265
632265
rm -rf node_modules
632265
632265
%build
632265
632265
%install
632265
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
632265
632265
cp -pr package.json *.js \
632265
%{buildroot}%{nodejs_sitelib}/%{npm_name}
632265
632265
%{nodejs_symlink_deps}
632265
632265
%if 0%{?enable_tests}
632265
632265
%check
632265
%{nodejs_symlink_deps} --check
632265
632265
%endif
632265
632265
%files
632265
%{nodejs_sitelib}/has-unicode
632265
632265
%doc README.md LICENSE
632265
632265
%changelog
632265
* Tue Dec 01 2015 Tomas Hrcka <thrcka@redhat.com> - 2.0.0-1
632265
- Initial build