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