Blame SPECS/nodejs-ansi-regex.spec

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