Blob Blame History Raw

%global packagename ansi-bgwhite
%global enable_tests 1

Name:		nodejs-ansi-bgwhite
Version:	0.1.1
Release:	1%{?dist}
Summary:	The color bgwhite, in ansi

License:	MIT
# The test files are not included in the npm tarball.

ExclusiveArch:	%{nodejs_arches} noarch
BuildArch:	noarch

BuildRequires:	nodejs-packaging
BuildRequires:	npm(ansi-wrap)
%if 0%{?enable_tests}
BuildRequires:	mocha

The color bgwhite, in ansi.

%autosetup -n package
# setup the tests
cp -p %{SOURCE1} .

# nothing to do!

mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
cp -pr package.json index.js \


%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'
%if 0%{?enable_tests}
%{_bindir}/mocha -R spec
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"

%doc *.md
%license LICENSE

* Fri Apr 14 2017 Jared Smith <> - 0.1.1-1
- Initial packaging