|
|
42a90c |
%{?scl:%scl_package nodejs-%{npm_name}}
|
|
|
42a90c |
%{!?scl:%global pkg_name %{name}}
|
|
|
42a90c |
%global enable_tests 0
|
|
|
42a90c |
%{?nodejs_find_provides_and_requires}
|
|
|
42a90c |
|
|
|
42a90c |
%global npm_name escape-string-regexp
|
|
|
42a90c |
|
|
|
42a90c |
Summary: Escape RegExp special characters
|
|
|
42a90c |
Name: %{?scl_prefix}nodejs-%{npm_name}
|
|
|
42a90c |
Version: 1.0.5
|
|
|
42a90c |
Release: 2%{?dist}
|
|
|
42a90c |
License: MIT
|
|
|
42a90c |
URL: https://github.com/sindresorhus/escape-string-regexp
|
|
|
42a90c |
Source0: http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
|
|
|
42a90c |
BuildRequires: %{?scl_prefix}runtime
|
|
|
42a90c |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
42a90c |
BuildArch: noarch
|
|
|
42a90c |
|
|
|
42a90c |
%if 0%{enable_tests}
|
|
|
42a90c |
BuildRequires: %{?scl_prefix}npm(xo)
|
|
|
42a90c |
BuildRequires: %{?scl_prefix}npm(ava)
|
|
|
42a90c |
%endif
|
|
|
42a90c |
|
|
|
42a90c |
%description
|
|
|
42a90c |
Escape RegExp special characters
|
|
|
42a90c |
|
|
|
42a90c |
%prep
|
|
|
42a90c |
%setup -q -n package
|
|
|
42a90c |
|
|
|
42a90c |
%build
|
|
|
42a90c |
|
|
|
42a90c |
%install
|
|
|
42a90c |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
|
|
|
42a90c |
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
|
|
|
42a90c |
|
|
|
42a90c |
%if 0%{?enable_tests}
|
|
|
42a90c |
%check
|
|
|
42a90c |
%{nodejs_symlink_deps} --check
|
|
|
42a90c |
xo && ava
|
|
|
42a90c |
%endif
|
|
|
42a90c |
|
|
|
42a90c |
%files
|
|
|
42a90c |
%doc license readme.md
|
|
|
42a90c |
%{nodejs_sitelib}/%{npm_name}
|
|
|
42a90c |
|
|
|
42a90c |
%changelog
|
|
|
42a90c |
* Mon Jul 03 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.5-2
|
|
|
42a90c |
- rh-nodejs8 rebuild
|
|
|
42a90c |
|
|
|
42a90c |
* Wed Sep 07 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.5-1
|
|
|
42a90c |
- Updated with script
|
|
|
42a90c |
|
|
|
42a90c |
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.3-6
|
|
|
42a90c |
- Use macro in -runtime dependency
|
|
|
42a90c |
|
|
|
42a90c |
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.3-5
|
|
|
42a90c |
- Rebuilt with updated metapackage
|
|
|
42a90c |
|
|
|
42a90c |
* Thu Jan 14 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.3-4
|
|
|
42a90c |
- Enable find provides and requires macro
|
|
|
42a90c |
|
|
|
42a90c |
* Mon Jan 11 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.3-3
|
|
|
42a90c |
- Enable scl macros
|
|
|
42a90c |
|
|
|
42a90c |
* Mon Sep 14 2015 Troy Dawson <tdawson@redhat.com> - 1.0.3-1
|
|
|
42a90c |
- Initial package
|