%{?nodejs_find_provides_and_requires} %global enable_tests 0 Name: nodejs-strip-ansi Version: 3.0.1 Release: 5%{?dist} Summary: Strip ANSI escape codes (used for colorizing strings in the terminal) License: MIT Group: System Environment/Libraries URL: https://github.com/chalk/strip-ansi Source0: https://github.com/chalk/strip-ansi/archive/v%{version}/strip-ansi-%{version}.tar.gz BuildArch: noarch %if 0%{?fedora} >= 19 ExclusiveArch: %{nodejs_arches} noarch %else ExclusiveArch: %{ix86} x86_64 %{arm} noarch %endif BuildRequires: nodejs-packaging BuildRequires: npm(ansi-regex) %if 0%{?enable_tests} BuildRequires: npm(ava) %endif %description %{summary}. %prep %autosetup -p 1 -n strip-ansi-%{version} rm -rf node_modules %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/strip-ansi cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/strip-ansi %nodejs_symlink_deps %check %nodejs_symlink_deps --check %__nodejs -e "require('./')" %if 0%{?enable_tests} %{nodejs_sitelib}/ava/cli.js %endif %files %doc readme.md %license license %{nodejs_sitelib}/strip-ansi %changelog * Fri Jul 13 2018 Fedora Release Engineering - 3.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Feb 08 2018 Fedora Release Engineering - 3.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 3.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 3.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Mar 4 2016 Tom Hughes - 3.0.1-1 - Update to 3.0.1 upstream release * Thu Feb 04 2016 Fedora Release Engineering - 0.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 0.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Apr 20 2014 Jamie Nguyen - 0.2.0-1 - update to upstream release 0.2.0 * Thu Mar 13 2014 Jamie Nguyen - 0.1.1-1 - initial package