Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 57c7aad148bb5bb4f8dfcac426b0cbd2 > files > 1

nodejs-to-regex-3.0.2-2.mga7.src.rpm

%global npm_name to-regex
%global enable_tests 1

Name: nodejs-%{npm_name}
Version: 3.0.2
Release: %mkrel 2
Summary: Generate a regex from a string or array of strings
License: MIT
Group: Development/Other
URL: https://github.com/jonschlinkert/to-regex
Source0: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
BuildRequires: nodejs-packaging
Requires: npm(define-property) >= 2.0.2
Requires: npm(define-property) < 3.0.0
Requires: npm(extend-shallow) >= 3.0.2
Requires: npm(extend-shallow) < 4.0.0
Requires: npm(regex-not) >= 1.0.2
Requires: npm(regex-not) < 2.0.0
Requires: npm(safe-regex) >= 1.1.0
Requires: npm(safe-regex) < 2.0.0
BuildArch: noarch

%description
%{summary}

%prep
%setup -q -n package

%build
# Nothing to do here

%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
cp -pfr index.js %{buildroot}%{nodejs_sitelib}/%{npm_name}
cp -pfr package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}

%nodejs_symlink_deps

%if 0%{?enable_tests}
%check
%{nodejs_symlink_deps} --check
%endif

%files
%{nodejs_sitelib}/%{npm_name}
%license LICENSE
%doc README.md



%changelog
* Thu Sep 20 2018 umeabot <umeabot> 3.0.2-2.mga7
  (not released yet)
+ Revision: 1281077
- Mageia 7 Mass Rebuild

* Thu May 03 2018 kekepower <kekepower> 3.0.2-1.mga7
+ Revision: 1225236
- imported package nodejs-to-regex