Blame SPECS/nodejs-glob-parent.spec

97174c
%{?scl:%scl_package nodejs-%{npm_name}}
97174c
%{!?scl:%global pkg_name %{name}}
97174c
97174c
%{?nodejs_find_provides_and_requires}
97174c
%global npm_name glob-parent
97174c
97174c
# Disable until dependencies are met
97174c
%global enable_tests 0
97174c
97174c
Summary:       Strips glob magic from a string to provide the parent path
97174c
Name:          %{?scl_prefix}nodejs-%{npm_name}
97174c
Version:       2.0.0
97174c
Release:       5%{?dist}
97174c
License:       ISC
97174c
URL:           https://github.com/es128/glob-parent
97174c
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
97174c
BuildRequires: %{?scl_prefix}nodejs-devel
97174c
ExclusiveArch: %{nodejs_arches} noarch
97174c
BuildArch:     noarch
97174c
97174c
%if 0%{?enable_tests}
97174c
BuildRequires:  %{?scl_prefix}npm(mocha)
97174c
BuildRequires:  %{?scl_prefix}npm(coveralls)
97174c
%endif
97174c
97174c
%description
97174c
Javascript module to extract the non-magic parent path from a glob string.
97174c
97174c
%prep
97174c
%setup -q -n package
97174c
97174c
%build
97174c
97174c
%install
97174c
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
97174c
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
97174c
97174c
%nodejs_symlink_deps
97174c
97174c
%if 0%{?enable_tests}
97174c
97174c
%check
97174c
%nodejs_symlink_deps --check
97174c
istanbul cover _mocha && cat ./coverage/lcov.info | coveralls
97174c
%endif
97174c
97174c
%files
97174c
%doc README.md
97174c
%license LICENSE
97174c
%{nodejs_sitelib}/%{npm_name}
97174c
97174c
%changelog
97174c
* Mon Jul 03 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.0-5
97174c
- rh-nodejs8 rebuild
97174c
97174c
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.0-4
97174c
- Use macro in -runtime dependency
97174c
97174c
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.0-3
97174c
- Rebuilt with updated metapackage
97174c
97174c
* Wed Jan 06 2016 Tomas Hrcka <thrcka@redhat.com> - 2.0.0-2
97174c
- Enable scl macros
97174c
97174c
* Wed Dec 16 2015 Troy Dawson <tdawson@redhat.com> - 2.0.0-1
97174c
- Initial package