ad7b254
# This macro is needed at the start for building on EL6
ad7b254
%{?nodejs_find_provides_and_requires}
ad7b254
ad7b254
%global enable_tests 0
ad7b254
ad7b254
%global barename vow-queue
ad7b254
ad7b254
Name:               nodejs-vow-queue
8e0db70
Version:            0.4.1
494a52d
Release:            5%{?dist}
ad7b254
Summary:            Vow-based task queue
ad7b254
ad7b254
Group:              Development/Libraries
ad7b254
License:            MIT and GPLv3+
ad7b254
URL:                https://www.npmjs.org/package/vow-queue
ad7b254
Source0:            http://registry.npmjs.org/%{barename}/-/%{barename}-%{version}.tgz
ad7b254
BuildArch:          noarch
ad7b254
ad7b254
%if 0%{?fedora} >= 19
ad7b254
ExclusiveArch:      %{nodejs_arches} noarch
ad7b254
%else
ad7b254
ExclusiveArch:      %{ix86} x86_64 %{arm} noarch
ad7b254
%endif
ad7b254
ad7b254
BuildRequires:      nodejs-packaging >= 6
ad7b254
ad7b254
BuildRequires:      npm(vow)
ad7b254
ad7b254
Requires:           npm(vow)
ad7b254
ad7b254
%if 0%{?enable_tests}
ad7b254
BuildRequires:      npm(jscs)
ad7b254
BuildRequires:      npm(vow)
ad7b254
BuildRequires:      npm(jshint)
ad7b254
BuildRequires:      npm(istanbul)
ad7b254
BuildRequires:      npm(mocha-istanbul)
ad7b254
BuildRequires:      npm(chai)
ad7b254
BuildRequires:      npm(mocha)
ad7b254
%endif
ad7b254
ad7b254
ad7b254
%description
ad7b254
vow-queue is a module for task queue with weights and priorities
ad7b254
ad7b254
%prep
ad7b254
%setup -q -n package
ad7b254
ad7b254
# Remove bundled node_modules if there are any..
ad7b254
rm -rf node_modules/
ad7b254
ad7b254
%nodejs_fixdep --caret
ad7b254
ad7b254
%build
ad7b254
%nodejs_symlink_deps --build
ad7b254
ad7b254
%install
ad7b254
mkdir -p %{buildroot}%{nodejs_sitelib}/vow-queue
ad7b254
cp -pr package.json lib \
ad7b254
    %{buildroot}%{nodejs_sitelib}/vow-queue
ad7b254
ad7b254
%nodejs_symlink_deps
ad7b254
ad7b254
ad7b254
%check
ad7b254
%if 0%{?enable_tests}
ad7b254
%nodejs_symlink_deps --check
ad7b254
make validate
ad7b254
%endif
ad7b254
ad7b254
ad7b254
%files
ad7b254
%doc CHANGELOG.md README.md LICENSE
ad7b254
%{nodejs_sitelib}/vow-queue/
ad7b254
ad7b254
%changelog
494a52d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-5
494a52d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
494a52d
4bf8da7
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-4
4bf8da7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4bf8da7
5ff5875
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-3
5ff5875
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5ff5875
55925ba
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-2
55925ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
55925ba
8e0db70
* Thu May 14 2015 Ralph Bean <rbean@redhat.com> - 0.4.1-1
8e0db70
- new version
8e0db70
ad7b254
* Mon Jul 21 2014 Ralph Bean <rbean@redhat.com> - 0.3.1-2
ad7b254
- Completed license field.
ad7b254
- Specified noarch.
ad7b254
ad7b254
* Tue Jul 08 2014 Ralph Bean <rbean@redhat.com> - 0.3.1-1
ad7b254
- Initial packaging for Fedora.