|
|
71d86f |
%{?scl:%scl_package nodejs-chalk}
|
|
|
71d86f |
%{!?scl:%global pkg_name %{name}}
|
|
|
71d86f |
|
|
|
71d86f |
%{?nodejs_find_provides_and_requires}
|
|
|
71d86f |
|
|
|
71d86f |
# Tests fail inside Koji due to terminal environment.
|
|
|
71d86f |
%global enable_tests 0
|
|
|
71d86f |
|
|
|
71d86f |
Name: %{?scl_prefix}nodejs-chalk
|
|
|
71d86f |
Version: 1.1.1
|
|
|
71d86f |
Release: 3%{?dist}
|
|
|
71d86f |
Summary: Terminal string styling done right
|
|
|
71d86f |
License: MIT
|
|
|
71d86f |
Group: System Environment/Libraries
|
|
|
71d86f |
URL: https://github.com/sindresorhus/chalk
|
|
|
71d86f |
Source0: http://registry.npmjs.org/chalk/-/chalk-%{version}.tgz
|
|
|
71d86f |
Source1: https://raw.github.com/sindresorhus/chalk/0a33a270b1e00ae4dea31b8ca368056d6823a148/test.js
|
|
|
71d86f |
|
|
|
71d86f |
BuildArch: noarch
|
|
|
71d86f |
%if 0%{?fedora} >= 19
|
|
|
71d86f |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
71d86f |
%else
|
|
|
71d86f |
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
|
|
71d86f |
%endif
|
|
|
71d86f |
|
|
|
71d86f |
BuildRequires: nodejs010-runtime
|
|
|
71d86f |
|
|
|
71d86f |
%if 0%{?enable_tests}
|
|
|
71d86f |
BuildRequires: %{?scl_prefix}npm(mocha)
|
|
|
71d86f |
BuildRequires: %{?scl_prefix}npm(ansi-styles)
|
|
|
71d86f |
BuildRequires: %{?scl_prefix}npm(has-color)
|
|
|
71d86f |
BuildRequires: %{?scl_prefix}npm(strip-ansi)
|
|
|
71d86f |
%endif
|
|
|
71d86f |
|
|
|
71d86f |
%description
|
|
|
71d86f |
%{summary}.
|
|
|
71d86f |
|
|
|
71d86f |
%prep
|
|
|
71d86f |
%setup -q -n package
|
|
|
71d86f |
cp -p %{SOURCE1} .
|
|
|
71d86f |
|
|
|
71d86f |
%nodejs_fixdep has-color '>=0.1'
|
|
|
71d86f |
%nodejs_fixdep supports-color '>=2.0'
|
|
|
71d86f |
%nodejs_fixdep escape-string-regexp '>=1.0'
|
|
|
71d86f |
%nodejs_fixdep ansi-styles '>=1.0'
|
|
|
71d86f |
%nodejs_fixdep strip-ansi '>=0.1'
|
|
|
71d86f |
%nodejs_fixdep has-ansi '>=2.0'
|
|
|
71d86f |
|
|
|
71d86f |
%build
|
|
|
71d86f |
#nothing to do
|
|
|
71d86f |
|
|
|
71d86f |
%install
|
|
|
71d86f |
mkdir -p %{buildroot}%{nodejs_sitelib}/chalk
|
|
|
71d86f |
cp -pr package.json index.js \
|
|
|
71d86f |
%{buildroot}%{nodejs_sitelib}/chalk
|
|
|
71d86f |
|
|
|
71d86f |
%nodejs_symlink_deps
|
|
|
71d86f |
|
|
|
71d86f |
|
|
|
71d86f |
%if 0%{?enable_tests}
|
|
|
71d86f |
|
|
|
71d86f |
%check
|
|
|
71d86f |
%nodejs_symlink_deps --check
|
|
|
71d86f |
/usr/bin/mocha
|
|
|
71d86f |
%endif
|
|
|
71d86f |
|
|
|
71d86f |
%files
|
|
|
71d86f |
%doc license readme.md
|
|
|
71d86f |
%{nodejs_sitelib}/chalk
|
|
|
71d86f |
|
|
|
71d86f |
%changelog
|
|
|
71d86f |
* Wed Jan 06 2016 Tomas Hrcka <thrcka@redhat.com> - 1.1.1-3
|
|
|
71d86f |
- Enable scl macros
|
|
|
71d86f |
|
|
|
71d86f |
* Mon Sep 14 2015 Troy Dawson <tdawson@redhat.com> - 1.1.1-2
|
|
|
71d86f |
- Fixup dependencies
|
|
|
71d86f |
|
|
|
71d86f |
* Mon Sep 14 2015 Troy Dawson <tdawson@redhat.com> - 1.1.1-1
|
|
|
71d86f |
- Update to 1.1.1
|
|
|
71d86f |
- Remove tests until all dependencies are built
|
|
|
71d86f |
|
|
|
71d86f |
* Sun Apr 20 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.4.0-2
|
|
|
71d86f |
- fix versioned dependencies
|
|
|
71d86f |
|
|
|
71d86f |
* Thu Mar 13 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.4.0-1
|
|
|
71d86f |
- initial package
|