Blame SPECS/nodejs-has-unicode.spec

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