Blob Blame History Raw
%{?nodejs_find_provides_and_requires}

Name:           nodejs-humanize-ms
Version:        1.2.1
Release:        1%{?dist}
Summary:        Transform humanize time to ms

License:        MIT
URL:            https://www.npmjs.com/package/humanize-ms
Source0:        https://github.com/node-modules/humanize-ms/archive/%{version}/%{name}-%{version}.tar.gz
BuildArch:      noarch
ExclusiveArch:  %{nodejs_arches} noarch

BuildRequires:  nodejs-packaging

BuildRequires:  npm(mocha)
BuildRequires:  npm(should)
BuildRequires:  npm(ms)

%description
%{summary}.


%prep
%autosetup -n humanize-ms-%{version}
rm -rf node_modules


%build


%install
mkdir -p %{buildroot}%{nodejs_sitelib}/humanize-ms
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/humanize-ms
%nodejs_symlink_deps


%check
%nodejs_symlink_deps --check
make test


%files
%license LICENSE
%doc README.md History.md
%{nodejs_sitelib}/humanize-ms


%changelog
* Sat Jun 10 2017 Tom Hughes <tom@compton.nu> - 1.2.1-1
- Update to 1.2.1 upstream release

* Mon Feb 20 2017 Tom Hughes <tom@compton.nu> - 1.2.0-1
- Initial build of 1.2.0