Blob Blame History Raw
%{?nodejs_find_provides_and_requires}

Name:           nodejs-pg-types
Version:        1.10.0
Release:        3%{?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


%check
%nodejs_symlink_deps --check
%{nodejs_sitelib}/tape/bin/tape test/*.js


%files
%{!?_licensedir:%global license %doc}
%doc README.md
%{nodejs_sitelib}/pg-types


%changelog
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Wed Dec  9 2015 Tom Hughes <tom@compton.nu> - 1.10.0-2
- Enable tests

* Thu Dec  3 2015 Tom Hughes <tom@compton.nu> - 1.10.0-1
- Initial build of 1.10.0