|
|
7fba3c |
%{?scl:%scl_package nodejs-strip-ansi}
|
|
|
7fba3c |
%{!?scl:%global pkg_name %{name}}
|
|
|
7fba3c |
|
|
|
7fba3c |
%{?nodejs_find_provides_and_requires}
|
|
|
7fba3c |
|
|
|
7fba3c |
%global enable_tests 0
|
|
|
7fba3c |
|
|
|
7fba3c |
Name: %{?scl_prefix}nodejs-strip-ansi
|
|
|
7fba3c |
Version: 3.0.0
|
|
|
7fba3c |
Release: 2%{?dist}
|
|
|
7fba3c |
Summary: Strip ANSI escape codes (used for colorizing strings in the terminal)
|
|
|
7fba3c |
License: MIT
|
|
|
7fba3c |
Group: System Environment/Libraries
|
|
|
7fba3c |
URL: https://github.com/sindresorhus/strip-ansi
|
|
|
7fba3c |
Source0: http://registry.npmjs.org/strip-ansi/-/strip-ansi-%{version}.tgz
|
|
|
7fba3c |
Source1: https://raw.githubusercontent.com/sindresorhus/strip-ansi/3c9b37e5381603925ba16b27a05ccbfd338906b8/test.js
|
|
|
7fba3c |
# https://github.com/sindresorhus/strip-ansi/pull/1
|
|
|
7fba3c |
Source2: LICENSE
|
|
|
7fba3c |
|
|
|
7fba3c |
BuildArch: noarch
|
|
|
7fba3c |
%if 0%{?fedora} >= 19
|
|
|
7fba3c |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
7fba3c |
%else
|
|
|
7fba3c |
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
|
|
7fba3c |
%endif
|
|
|
7fba3c |
|
|
|
7fba3c |
BuildRequires: %{?scl_prefix}runtime
|
|
|
7fba3c |
|
|
|
7fba3c |
%if 0%{?enable_tests}
|
|
|
7fba3c |
BuildRequires: %{?scl_prefix}npm(mocha)
|
|
|
7fba3c |
%endif
|
|
|
7fba3c |
|
|
|
7fba3c |
%description
|
|
|
7fba3c |
%{summary}.
|
|
|
7fba3c |
|
|
|
7fba3c |
%prep
|
|
|
7fba3c |
%setup -q -n package
|
|
|
7fba3c |
cp -p %{SOURCE1} .
|
|
|
7fba3c |
cp -p %{SOURCE2} .
|
|
|
7fba3c |
|
|
|
7fba3c |
%build
|
|
|
7fba3c |
#nothing to do
|
|
|
7fba3c |
|
|
|
7fba3c |
%install
|
|
|
7fba3c |
mkdir -p %{buildroot}%{nodejs_sitelib}/strip-ansi
|
|
|
7fba3c |
cp -pr package.json index.js \
|
|
|
7fba3c |
%{buildroot}%{nodejs_sitelib}/strip-ansi
|
|
|
7fba3c |
|
|
|
7fba3c |
# `strip-ansi` is used as the command.
|
|
|
7fba3c |
#mkdir -p %%{buildroot}%%{_bindir}
|
|
|
7fba3c |
#ln -sf %%{nodejs_sitelib}/strip-ansi/cli.js \
|
|
|
7fba3c |
# %%{buildroot}%%{_bindir}/strip-ansi
|
|
|
7fba3c |
|
|
|
7fba3c |
%nodejs_symlink_deps
|
|
|
7fba3c |
|
|
|
7fba3c |
|
|
|
7fba3c |
%if 0%{?enable_tests}
|
|
|
7fba3c |
|
|
|
7fba3c |
%check
|
|
|
7fba3c |
%nodejs_symlink_deps --check
|
|
|
7fba3c |
/usr/bin/mocha
|
|
|
7fba3c |
%endif
|
|
|
7fba3c |
|
|
|
7fba3c |
%files
|
|
|
7fba3c |
%doc LICENSE readme.md
|
|
|
7fba3c |
%{nodejs_sitelib}/strip-ansi
|
|
|
7fba3c |
#%%{_bindir}/strip-ansi
|
|
|
7fba3c |
|
|
|
7fba3c |
%changelog
|
|
|
7fba3c |
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.0.0-2
|
|
|
7fba3c |
- Use macro in -runtime dependency
|
|
|
7fba3c |
|
|
|
7fba3c |
* Tue Feb 16 2016 Tomas Hrcka <thrcka@redhat.com> - 3.0.0-1
|
|
|
7fba3c |
- New upstream release
|
|
|
7fba3c |
|
|
|
7fba3c |
* Fri Jan 09 2015 Tomas Hrcka <thrcka@redhat.com> - 0.2.0-1
|
|
|
7fba3c |
- Enable software collections support
|
|
|
7fba3c |
|
|
|
7fba3c |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
|
|
|
7fba3c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
7fba3c |
|
|
|
7fba3c |
* Sun Apr 20 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.2.0-1
|
|
|
7fba3c |
- update to upstream release 0.2.0
|
|
|
7fba3c |
|
|
|
7fba3c |
* Thu Mar 13 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.1.1-1
|
|
|
7fba3c |
- initial package
|