Blame SPECS/nodejs-micromatch.spec

29f111
%{?scl:%scl_package nodejs-%{npm_name}}
29f111
%{!?scl:%global pkg_name %{name}}
29f111
29f111
%{?nodejs_find_provides_and_requires}
29f111
%global npm_name micromatch
29f111
29f111
Summary:       Glob matching for javascript/node.js
29f111
Name:          %{?scl_prefix}nodejs-%{npm_name}
29f111
Version:       2.3.5
29f111
Release:       3%{?dist}
29f111
License:       MIT
29f111
URL:           https://github.com/jonschlinkert/micromatch
29f111
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
29f111
BuildRequires: nodejs010-runtime
29f111
ExclusiveArch: %{nodejs_arches} noarch
29f111
BuildArch:     noarch
29f111
Provides:      %{?scl_prefix}nodejs-%{npm_name} = %{version}
29f111
29f111
%description
29f111
Glob matching for javascript/node.js. 
29f111
A drop-in replacement and faster alternative to minimatch and multimatch. 
29f111
Just use micromatch.isMatch() instead of minimatch(), 
29f111
or use micromatch() instead of multimatch().
29f111
29f111
%prep
29f111
%setup -q -n package
29f111
29f111
%nodejs_fixdep lazy-cache
29f111
%nodejs_fixdep optimist
29f111
29f111
chmod 644 index.js LICENSE package.json README.md
29f111
29f111
%build
29f111
29f111
%install
29f111
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
29f111
cp -pr index.js lib package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
29f111
29f111
%nodejs_symlink_deps
29f111
29f111
%files
29f111
%{!?_licensedir:%global license %doc}
29f111
%doc README.md
29f111
%license LICENSE
29f111
%{nodejs_sitelib}/%{npm_name}
29f111
29f111
%changelog
29f111
* Thu Jan 07 2016 Tomas Hrcka <thrcka@redhat.com> - 2.3.5-3
29f111
- Enable scl macros
29f111
29f111
* Thu Dec 17 2015 Troy Dawson <tdawson@redhat.com> - 2.3.5-2
29f111
- Fix dependencies
29f111
29f111
* Wed Dec 16 2015 Troy Dawson <tdawson@redhat.com> - 2.3.5-1
29f111
- Initial package