Blame SPECS/nodejs-ansi-styles.spec

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