849b513
%{?nodejs_find_provides_and_requires}
849b513
8b602a4
%global enable_tests 1
849b513
829b649
Name:           nodejs-globule
829b649
Version:        0.2.0
fadceb4
Release:        9%{?dist}
829b649
Summary:        An easy-to-use wildcard globbing library for Node.js
829b649
829b649
License:        MIT
829b649
Group:          System Environment/Libraries
829b649
URL:            https://github.com/cowboy/node-globule
829b649
Source0:        https://registry.npmjs.org/globule/-/globule-%{version}.tgz
8b602a4
# https://github.com/cowboy/node-globule/pull/22
829b649
Patch0:         nodejs-globule-lodash3.patch
849b513
829b649
BuildArch:      noarch
829b649
ExclusiveArch:  %{nodejs_arches} noarch
849b513
849b513
BuildRequires:  nodejs-packaging
849b513
849b513
%if 0%{?enable_tests}
8b602a4
BuildRequires:  npm(nodeunit)
849b513
BuildRequires:  npm(glob)
849b513
BuildRequires:  npm(lodash)
849b513
%endif
849b513
849b513
%description
849b513
%{summary}.
849b513
849b513
849b513
%prep
8b602a4
%autosetup -p 1 -n package
829b649
%nodejs_fixdep glob "^6.0.3"
829b649
%nodejs_fixdep minimatch "^3.0.0"
849b513
849b513
849b513
%build
849b513
#nothing to do
849b513
849b513
849b513
%install
849b513
mkdir -p %{buildroot}%{nodejs_sitelib}/globule
849b513
cp -pr package.json lib/ \
849b513
    %{buildroot}%{nodejs_sitelib}/globule
849b513
%nodejs_symlink_deps
849b513
849b513
849b513
%if 0%{?enable_tests}
849b513
%check
849b513
%nodejs_symlink_deps --check
849b513
%{nodejs_sitelib}/nodeunit/bin/nodeunit test/globule_test.js
849b513
%endif
849b513
849b513
849b513
%files
829b649
%{!?_licensedir:%global license %doc}
8b602a4
%doc README.md
8b602a4
%license LICENSE-MIT
849b513
%{nodejs_sitelib}/globule
849b513
849b513
849b513
%changelog
fadceb4
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-9
fadceb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
fadceb4
6256edb
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-8
6256edb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6256edb
34187f1
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-7
34187f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
34187f1
8d291c9
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-6
8d291c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8d291c9
829b649
* Fri Jan  1 2016 Tom Hughes <tom@compton.nu> - 0.2.0-5
829b649
- Update npm(glob) dependency
829b649
- Update npm(minimatch) dependency
829b649
8b602a4
* Tue Dec 15 2015 Tom Hughes <tom@compton.nu> - 0.2.0-4
8b602a4
- Update npm(lodash) dependency
8b602a4
- Enable tests
8b602a4
e9f347a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-3
e9f347a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e9f347a
ff7c05f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
ff7c05f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ff7c05f
849b513
* Wed Aug 28 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.1.0-1
849b513
- initial package