Blame SPECS/nodejs-is-glob.spec

4d8261
%{?scl:%scl_package nodejs-%{npm_name}}
4d8261
%{!?scl:%global pkg_name %{name}}
4d8261
4d8261
%{?nodejs_find_provides_and_requires}
4d8261
%global npm_name is-glob
4d8261
4d8261
Summary:       Returns true if the given string looks like a glob
4d8261
Name:          %{?scl_prefix}nodejs-%{npm_name}
4d8261
Version:       2.0.1
4d8261
Release:       4%{?dist}
4d8261
License:       MIT
4d8261
URL:           https://github.com/jonschlinkert/is-glob
4d8261
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
4d8261
BuildRequires: %{?scl_prefix}nodejs-devel
4d8261
ExclusiveArch: %{nodejs_arches} noarch
4d8261
BuildArch:     noarch
4d8261
4d8261
%description
4d8261
Returns true if the given string looks like a glob pattern 
4d8261
or an extglob pattern. This makes it easy to create code 
4d8261
that only uses external modules like node-glob when necessary, 
4d8261
resulting in much faster code execution and initialization 
4d8261
time, and a better user experience. 
4d8261
4d8261
%prep
4d8261
%setup -q -n package
4d8261
4d8261
%build
4d8261
4d8261
%install
4d8261
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
4d8261
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
4d8261
4d8261
%nodejs_symlink_deps
4d8261
4d8261
%files
4d8261
%doc README.md
4d8261
%license LICENSE
4d8261
%{nodejs_sitelib}/%{npm_name}
4d8261
4d8261
%changelog
4d8261
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.1-4
4d8261
- Use macro in -runtime dependency
4d8261
4d8261
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.1-3
4d8261
- Rebuilt with updated metapackage
4d8261
4d8261
* Wed Jan 06 2016 Tomas Hrcka <thrcka@redhat.com> - 2.0.1-2
4d8261
- Enable scl macros
4d8261
4d8261
* Wed Dec 16 2015 Troy Dawson <tdawson@redhat.com> - 2.0.1-1
4d8261
- Initial package