c2d2ca6
# Generated by go2rpm 1.6.0
3b45146
%bcond_without check
c2d2ca6
%global debug_package %{nil}
28d2ec9
e11a7c6
# https://github.com/lib/pq
28d2ec9
%global goipath         github.com/lib/pq
c2d2ca6
Version:                1.10.6
8a6dabf
e11a7c6
%gometa
28d2ec9
e11a7c6
%global common_description %{expand:
e11a7c6
A pure Go postgres driver for Go's database/sql package}
e11a7c6
e11a7c6
%global golicenses      LICENSE.md
c2d2ca6
%global godocs          example README.md TESTS.md certs-README
00b5dfd
8a6dabf
Name:           %{goname}
4f2886b
Release:        %autorelease
e11a7c6
Summary:        Pure Go postgres driver for database/sql
e11a7c6
00b5dfd
License:        MIT
8a6dabf
URL:            %{gourl}
8a6dabf
Source0:        %{gosource}
3b45146
3b45146
BuildRequires:  postgresql-test-rpm-macros
00b5dfd
00b5dfd
%description
e11a7c6
%{common_description}
00b5dfd
e11a7c6
%gopkg
00b5dfd
00b5dfd
%prep
e11a7c6
%goprep
e11a7c6
mv certs/README certs-README
e11a7c6
c2d2ca6
%generate_buildrequires
c2d2ca6
%go_generate_buildrequires
c2d2ca6
00b5dfd
%install
e11a7c6
%gopkginstall
00b5dfd
e11a7c6
%if %{with check}
00b5dfd
%check
3b45146
%postgresql_tests_run
3b45146
export PGUSER=$(id -un) PGPASSWORD=$(id -un) PGDATABASE=$(id -un)
c2d2ca6
for test in "TestCloseBadConn" \
c2d2ca6
; do
c2d2ca6
awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test)
c2d2ca6
done
e11a7c6
%gocheck
e11a7c6
%endif
00b5dfd
e11a7c6
%gopkgfiles
00b5dfd
00b5dfd
%changelog
4f2886b
%autochangelog