|
|
ecd31a |
%{?scl:%scl_package nodejs-chalk}
|
|
|
ecd31a |
%{!?scl:%global pkg_name %{name}}
|
|
|
ecd31a |
|
|
|
ecd31a |
%{?nodejs_find_provides_and_requires}
|
|
|
ecd31a |
|
|
|
ecd31a |
# Tests fail inside Koji due to terminal environment.
|
|
|
ecd31a |
%global enable_tests 0
|
|
|
ecd31a |
|
|
|
ecd31a |
Name: %{?scl_prefix}nodejs-chalk
|
|
|
ecd31a |
Version: 1.1.3
|
|
|
2561d7 |
Release: 2%{?dist}
|
|
|
ecd31a |
Summary: Terminal string styling done right
|
|
|
ecd31a |
License: MIT
|
|
|
ecd31a |
URL: https://github.com/sindresorhus/chalk
|
|
|
ecd31a |
Source0: http://registry.npmjs.org/chalk/-/chalk-%{version}.tgz
|
|
|
ecd31a |
Source1: https://raw.github.com/sindresorhus/chalk/0a33a270b1e00ae4dea31b8ca368056d6823a148/test.js
|
|
|
ecd31a |
|
|
|
ecd31a |
BuildArch: noarch
|
|
|
ecd31a |
%if 0%{?fedora} >= 19
|
|
|
ecd31a |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
ecd31a |
%else
|
|
|
2561d7 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
ecd31a |
%endif
|
|
|
ecd31a |
|
|
|
ecd31a |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
ecd31a |
|
|
|
ecd31a |
%if 0%{?enable_tests}
|
|
|
ecd31a |
BuildRequires: %{?scl_prefix}npm(mocha)
|
|
|
ecd31a |
BuildRequires: %{?scl_prefix}npm(semver)
|
|
|
ecd31a |
# some more I am lazy to list right now
|
|
|
ecd31a |
%endif
|
|
|
ecd31a |
|
|
|
ecd31a |
%description
|
|
|
ecd31a |
%{summary}.
|
|
|
ecd31a |
|
|
|
ecd31a |
%prep
|
|
|
ecd31a |
%setup -q -n package
|
|
|
ecd31a |
cp -p %{SOURCE1} .
|
|
|
ecd31a |
|
|
|
ecd31a |
%nodejs_fixdep supports-color
|
|
|
ecd31a |
#%nodejs_fixdep escape-string-regexp '>=1.0'
|
|
|
ecd31a |
%nodejs_fixdep ansi-styles
|
|
|
ecd31a |
#%nodejs_fixdep strip-ansi '>=0.1'
|
|
|
ecd31a |
|
|
|
ecd31a |
%build
|
|
|
ecd31a |
#nothing to do
|
|
|
ecd31a |
|
|
|
ecd31a |
%install
|
|
|
ecd31a |
mkdir -p %{buildroot}%{nodejs_sitelib}/chalk
|
|
|
ecd31a |
cp -pr package.json index.js \
|
|
|
ecd31a |
%{buildroot}%{nodejs_sitelib}/chalk
|
|
|
ecd31a |
|
|
|
ecd31a |
%nodejs_symlink_deps
|
|
|
ecd31a |
|
|
|
ecd31a |
|
|
|
ecd31a |
%if 0%{?enable_tests}
|
|
|
ecd31a |
|
|
|
ecd31a |
%check
|
|
|
ecd31a |
%nodejs_symlink_deps --check
|
|
|
ecd31a |
/usr/bin/mocha
|
|
|
ecd31a |
%endif
|
|
|
ecd31a |
|
|
|
ecd31a |
%files
|
|
|
ecd31a |
%doc license readme.md
|
|
|
ecd31a |
%{nodejs_sitelib}/chalk
|
|
|
ecd31a |
|
|
|
ecd31a |
%changelog
|
|
|
2561d7 |
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.1.3-2
|
|
|
2561d7 |
- Resolves: RHBZ#1543198, rebuild for multiarch
|
|
|
2561d7 |
|
|
|
ecd31a |
* Wed Sep 07 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.1.3-1
|
|
|
ecd31a |
- Updated with script
|
|
|
ecd31a |
|
|
|
ecd31a |
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.1.1-8
|
|
|
ecd31a |
- Use proper macro in -runtime dependency
|
|
|
ecd31a |
|
|
|
ecd31a |
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.1.1-4
|
|
|
ecd31a |
- Rebuilt with updated metapackage
|
|
|
ecd31a |
|
|
|
ecd31a |
* Wed Jan 06 2016 Tomas Hrcka <thrcka@redhat.com> - 1.1.1-3
|
|
|
ecd31a |
- Enable scl macros
|
|
|
ecd31a |
|
|
|
ecd31a |
* Mon Sep 14 2015 Troy Dawson <tdawson@redhat.com> - 1.1.1-2
|
|
|
ecd31a |
- Fixup dependencies
|
|
|
ecd31a |
|
|
|
ecd31a |
* Mon Sep 14 2015 Troy Dawson <tdawson@redhat.com> - 1.1.1-1
|
|
|
ecd31a |
- Update to 1.1.1
|
|
|
ecd31a |
- Remove tests until all dependencies are built
|
|
|
ecd31a |
|
|
|
ecd31a |
* Sun Apr 20 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.4.0-2
|
|
|
ecd31a |
- fix versioned dependencies
|
|
|
ecd31a |
|
|
|
ecd31a |
* Thu Mar 13 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.4.0-1
|
|
|
ecd31a |
- initial package
|