%{?nodejs_find_provides_and_requires}
Name: nodejs-postgres-interval
Version: 1.0.1
Release: 1%{?dist}
Summary: Parse Postgres interval columns
License: MIT
URL: https://www.npmjs.com/package/postgres-interval
Source0: https://github.com/bendrucker/postgres-interval/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
BuildRequires: npm(tape)
BuildRequires: npm(xtend)
%description
%{summary}.
%prep
%autosetup -n postgres-interval-%{version}
rm -rf node_modules
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/postgres-interval
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/postgres-interval
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{nodejs_sitelib}/tape/bin/tape test.js
%files
%{!?_licensedir:%global license %doc}
%doc readme.md
%license license
%{nodejs_sitelib}/postgres-interval
%changelog
* Thu Dec 3 2015 Tom Hughes <tom@compton.nu> - 1.0.1-1
- Initial build of 1.0.1