Blame SPECS/nodejs-chalk.spec

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