# Generated by go2rpm
# Disabled, it needs Fuse and mysql
%bcond_with check
# Generated by go2rpm 1.8.0
# Disabled, it needs Fuse and mysql
%bcond_with check
# https://github.com/GoogleCloudPlatform/cloudsql-proxy
%global goipath github.com/GoogleCloudPlatform/cloudsql-proxy
Version: 1.31.2
%gometa
%global common_description %{expand:
The Cloud SQL Proxy allows a user with the appropriate permissions to connect
to a Second Generation Cloud SQL database without having to deal with IP
whitelisting or SSL certificates manually. It works by opening unix/tcp
sockets on the local machine and proxying connections to the associated
Cloud SQL instances when the sockets are used.}
%global golicenses LICENSE
%global godocs examples CHANGELOG.md CONTRIBUTING.md CONTRIBUTORS\\\
README.md
Name: %{goname}
Release: %autorelease
Summary: Cloud SQL proxy client and Go library
License: Apache-2.0
URL: %{gourl}
Source: %{gosource}
%description %{common_description}
%gopkg
%prep
%goprep
%generate_buildrequires
%go_generate_buildrequires
%build
for cmd in cmd/* ; do
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
%install
%gopkginstall
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%if %{with check}
%check
%gocheck
%endif
%files
%license LICENSE
%doc CONTRIBUTING.md README.md
%{_bindir}/*
%gopkgfiles
%changelog
%autochangelog