%{?nodejs_find_provides_and_requires}
# Tests fail with node 0.10.0 due to missing Buffer.equal
%global enable_tests 0
Name: nodejs-pg-types
Version: 1.10.0
Release: 1%{?dist}
Summary: Query result type converters for node-postgres
License: MIT
URL: https://www.npmjs.com/package/pg-types
Source0: https://registry.npmjs.org/pg-types/-/pg-types-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
BuildRequires: npm(tape)
BuildRequires: npm(ap)
BuildRequires: npm(pff)
BuildRequires: npm(postgres-array)
BuildRequires: npm(postgres-bytea)
BuildRequires: npm(postgres-date)
BuildRequires: npm(postgres-interval)
%description
%{summary}.
%prep
%autosetup -n package
rm -rf node_modules
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/pg-types
cp -pr package.json index.js lib %{buildroot}%{nodejs_sitelib}/pg-types
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
%{nodejs_sitelib}/tape/bin/tape test/*.js
%endif
%files
%{!?_licensedir:%global license %doc}
%doc README.md
%{nodejs_sitelib}/pg-types
%changelog
* Thu Dec 3 2015 Tom Hughes <tom@compton.nu> - 1.10.0-1
- Initial build of 1.10.0