Blame SPECS/nodejs-ansi-styles.spec

6bfa49
%{?scl:%scl_package nodejs-ansi-styles}
6bfa49
%{!?scl:%global pkg_name %{name}}
6bfa49
6bfa49
%{?nodejs_find_provides_and_requires}
6bfa49
6bfa49
%global enable_tests 0
6bfa49
6bfa49
Name:       %{?scl_prefix}nodejs-ansi-styles
6bfa49
Version:    2.1.0
6bfa49
Release:    2%{?dist}
6bfa49
Summary:    ANSI escape codes for colorizing strings in the terminal
6bfa49
License:    MIT
6bfa49
Group:      System Environment/Libraries
6bfa49
URL:        https://github.com/sindresorhus/ansi-styles
6bfa49
Source0:    http://registry.npmjs.org/ansi-styles/-/ansi-styles-%{version}.tgz
6bfa49
Source1:    https://raw.github.com/sindresorhus/ansi-styles/5a854731252e453322e68b564f9a89a389c6651d/test.js
6bfa49
6bfa49
BuildArch:  noarch
6bfa49
%if 0%{?fedora} >= 19
6bfa49
ExclusiveArch: %{nodejs_arches} noarch
6bfa49
%else
6bfa49
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
6bfa49
%endif
6bfa49
6bfa49
BuildRequires:  nodejs010-runtime
6bfa49
6bfa49
%if 0%{?enable_tests}
6bfa49
BuildRequires:  %{?scl_prefix}npm(mocha)
6bfa49
%endif
6bfa49
6bfa49
%description
6bfa49
%{summary}.
6bfa49
6bfa49
%prep
6bfa49
%setup -q -n package
6bfa49
cp -p %{SOURCE1} .
6bfa49
6bfa49
%build
6bfa49
#nothing to do
6bfa49
6bfa49
%install
6bfa49
mkdir -p %{buildroot}%{nodejs_sitelib}/ansi-styles
6bfa49
cp -pr package.json index.js \
6bfa49
    %{buildroot}%{nodejs_sitelib}/ansi-styles
6bfa49
6bfa49
%nodejs_symlink_deps
6bfa49
6bfa49
6bfa49
%if 0%{?enable_tests}
6bfa49
6bfa49
%check
6bfa49
%nodejs_symlink_deps --check
6bfa49
/usr/bin/mocha
6bfa49
%endif
6bfa49
6bfa49
%files
6bfa49
%doc license readme.md
6bfa49
%{nodejs_sitelib}/ansi-styles
6bfa49
6bfa49
%changelog
6bfa49
* Thu Jan 07 2016 Tomas Hrcka <thrcka@redhat.com> - 2.1.0-2
6bfa49
- Enable scl macros
6bfa49
6bfa49
* Mon Sep 14 2015 Troy Dawson <tdawson@redhat.com> - 2.1.0-4
6bfa49
- UPdate to 2.1.0
6bfa49
- Remove tests until all dependencies are built
6bfa49
6bfa49
* Thu Mar 13 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.0.0-1
6bfa49
- initial package