|
|
bac57d |
%{?scl:%scl_package nodejs-ansi-regex}
|
|
|
bac57d |
%{!?scl:%global pkg_name %{name}}
|
|
|
bac57d |
|
|
|
bac57d |
%global npm_name ansi-regex
|
|
|
bac57d |
|
|
|
bac57d |
%{?nodejs_find_provides_and_requires}
|
|
|
bac57d |
|
|
|
bac57d |
%global enable_tests 0
|
|
|
bac57d |
|
|
|
bac57d |
Name: %{?scl_prefix}nodejs-ansi-regex
|
|
|
bac57d |
Version: 2.0.0
|
|
|
bac57d |
Release: 6%{?dist}
|
|
|
bac57d |
Summary: Regular expression for matching ANSI escape codes
|
|
|
bac57d |
Url: https://github.com/sindresorhus/ansi-regex
|
|
|
bac57d |
Source0: http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
|
|
|
bac57d |
License: MIT
|
|
|
bac57d |
BuildArch: noarch
|
|
|
bac57d |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
bac57d |
|
|
|
bac57d |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
bac57d |
BuildRequires: %{?scl_prefix}runtime
|
|
|
bac57d |
|
|
|
bac57d |
%if 0%{?enable_tests}
|
|
|
bac57d |
BuildRequires: %{?scl_prefix}npm(mocha)
|
|
|
bac57d |
%endif
|
|
|
bac57d |
|
|
|
bac57d |
%description
|
|
|
bac57d |
Regular expression for matching ANSI escape codes
|
|
|
bac57d |
|
|
|
bac57d |
%prep
|
|
|
bac57d |
%setup -q -n package
|
|
|
bac57d |
|
|
|
bac57d |
%build
|
|
|
bac57d |
#nothing to do
|
|
|
bac57d |
|
|
|
bac57d |
%install
|
|
|
bac57d |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
|
|
|
bac57d |
|
|
|
bac57d |
cp -pr package.json index.js \
|
|
|
bac57d |
%{buildroot}%{nodejs_sitelib}/%{npm_name}
|
|
|
bac57d |
|
|
|
bac57d |
%{nodejs_symlink_deps}
|
|
|
bac57d |
|
|
|
bac57d |
%if 0%{?enable_tests}
|
|
|
bac57d |
|
|
|
bac57d |
%check
|
|
|
bac57d |
%{nodejs_symlink_deps} --check
|
|
|
bac57d |
mocha test/test.js
|
|
|
bac57d |
#node test/viewCodes.js
|
|
|
bac57d |
%endif
|
|
|
bac57d |
|
|
|
bac57d |
%files
|
|
|
bac57d |
%{nodejs_sitelib}/ansi-regex
|
|
|
bac57d |
|
|
|
bac57d |
%doc readme.md license
|
|
|
bac57d |
|
|
|
bac57d |
%changelog
|
|
|
bac57d |
* Mon Jul 03 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.0-6
|
|
|
bac57d |
- rh-nodejs8 rebuild
|
|
|
bac57d |
|
|
|
bac57d |
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.0-5
|
|
|
bac57d |
- Use macro in -runtime dependency
|
|
|
bac57d |
|
|
|
bac57d |
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.0-4
|
|
|
bac57d |
- Rebuilt with updated metapackage
|
|
|
bac57d |
|
|
|
bac57d |
* Mon Dec 14 2015 Tomas Hrcka <thrcka@redhat.com> - 2.0.0-2
|
|
|
bac57d |
- Enable scl macros
|
|
|
bac57d |
|
|
|
bac57d |
* Mon Sep 14 2015 Troy Dawson <tdawson@redhat.com> - 2.0.0-4
|
|
|
bac57d |
- UPdate to 2.1.0
|
|
|
bac57d |
- Remove tests until all dependencies are built
|
|
|
bac57d |
|
|
|
bac57d |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2
|
|
|
bac57d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
bac57d |
|
|
|
bac57d |
* Wed May 13 2015 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.1.1-1
|
|
|
bac57d |
- Initial build
|