|
|
78ee2e |
%{?scl:%scl_package nodejs-has-color}
|
|
|
78ee2e |
%{!?scl:%global pkg_name %{name}}
|
|
|
78ee2e |
|
|
|
78ee2e |
%{?nodejs_find_provides_and_requires}
|
|
|
78ee2e |
|
|
|
78ee2e |
%global enable_tests 0
|
|
|
78ee2e |
|
|
|
78ee2e |
Name: %{?scl_prefix}nodejs-has-color
|
|
|
78ee2e |
Version: 0.1.7
|
|
|
8970fc |
Release: 6%{?dist}
|
|
|
78ee2e |
Summary: Detects whether a terminal supports color
|
|
|
78ee2e |
License: MIT
|
|
|
78ee2e |
URL: https://github.com/sindresorhus/has-color
|
|
|
78ee2e |
Source0: http://registry.npmjs.org/has-color/-/has-color-%{version}.tgz
|
|
|
78ee2e |
Source1: https://raw.githubusercontent.com/sindresorhus/has-color/ab671b1f74846d9fb9caea8dc302603a865be3cc/test.js
|
|
|
78ee2e |
# https://github.com/sindresorhus/has-color/pull/4
|
|
|
78ee2e |
Source2: LICENSE
|
|
|
78ee2e |
|
|
|
78ee2e |
BuildArch: noarch
|
|
|
78ee2e |
%if 0%{?fedora} >= 19
|
|
|
78ee2e |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
78ee2e |
%else
|
|
|
8970fc |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
78ee2e |
%endif
|
|
|
78ee2e |
|
|
|
78ee2e |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
78ee2e |
|
|
|
78ee2e |
%if 0%{?enable_tests}
|
|
|
78ee2e |
BuildRequires: %{?scl_prefix}npm(mocha)
|
|
|
78ee2e |
%endif
|
|
|
78ee2e |
|
|
|
78ee2e |
%description
|
|
|
78ee2e |
%{summary}.
|
|
|
78ee2e |
|
|
|
78ee2e |
%prep
|
|
|
78ee2e |
%setup -q -n package
|
|
|
78ee2e |
cp -p %{SOURCE1} .
|
|
|
78ee2e |
cp -p %{SOURCE2} .
|
|
|
78ee2e |
|
|
|
78ee2e |
%build
|
|
|
78ee2e |
#nothing to do
|
|
|
78ee2e |
|
|
|
78ee2e |
%install
|
|
|
78ee2e |
mkdir -p %{buildroot}%{nodejs_sitelib}/has-color
|
|
|
78ee2e |
cp -pr package.json index.js \
|
|
|
78ee2e |
%{buildroot}%{nodejs_sitelib}/has-color
|
|
|
78ee2e |
|
|
|
78ee2e |
%nodejs_symlink_deps
|
|
|
78ee2e |
|
|
|
78ee2e |
|
|
|
78ee2e |
%if 0%{?enable_tests}
|
|
|
78ee2e |
|
|
|
78ee2e |
%check
|
|
|
78ee2e |
%nodejs_symlink_deps --check
|
|
|
78ee2e |
/usr/bin/mocha
|
|
|
78ee2e |
%endif
|
|
|
78ee2e |
|
|
|
78ee2e |
%files
|
|
|
78ee2e |
%doc LICENSE readme.md
|
|
|
78ee2e |
%{nodejs_sitelib}/has-color
|
|
|
78ee2e |
|
|
|
78ee2e |
%changelog
|
|
|
8970fc |
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.7-6
|
|
|
8970fc |
- Resolves: RHBZ#1543198, rebuild for multiarch
|
|
|
8970fc |
|
|
|
78ee2e |
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.7-5
|
|
|
78ee2e |
- Use macro in -runtime dependency
|
|
|
78ee2e |
|
|
|
78ee2e |
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.7-4
|
|
|
78ee2e |
- Rebuilt with updated metapackage
|
|
|
78ee2e |
|
|
|
78ee2e |
* Thu Jan 07 2016 Tomas Hrcka <thrcka@redhat.com> - 0.1.7-3
|
|
|
78ee2e |
- Enable scl macros
|
|
|
78ee2e |
|
|
|
78ee2e |
* Mon Sep 14 2015 Troy Dawson <tdawson@redhat.com> - 0.1.7-2
|
|
|
78ee2e |
- Disable tests until all dependencies are built
|
|
|
78ee2e |
|
|
|
78ee2e |
* Sun Apr 20 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.1.7-1
|
|
|
78ee2e |
- update to upstream release 0.1.7
|
|
|
78ee2e |
|
|
|
78ee2e |
* Thu Mar 13 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.1.4-1
|
|
|
78ee2e |
- initial package
|