## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.10.0 %bcond_without check %bcond_without bootstrap %global debug_package %{nil} %global module compute %if %{with bootstrap} %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ %endif # https://github.com/GoogleCloudPlatform/google-cloud-go %global goipath cloud.google.com/go/%{module} %global forgeurl https://github.com/GoogleCloudPlatform/google-cloud-go Version: 1.23.2 %global tag %{module}/v%{version} %global distprefix %{nil} %gometa %global common_description %{expand: Google Cloud Client Libraries for Go for module %{module}.} %global golicenses LICENSE %global godocs CHANGES.md CODE_OF_CONDUCT.md CONTRIBUTING.md\\\ README.md RELEASING.md SECURITY.md testing.md Name: %{goname} Release: %autorelease Summary: Google Cloud Client Libraries for Go for module %{module} License: Apache-2.0 AND BSD-3-Clause URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 find . ! \( -name %{module} -o -name "*.md" -o -name LICENSE -o -name _build \) -maxdepth 1 -exec rm -rf {} \; rm -rfv compute/metadata mv %{module}/* . %if %{without bootstrap} %generate_buildrequires %go_generate_buildrequires %endif %install %gopkginstall %if %{without bootstrap} %if %{with check} %check for test in "TestCreateGetPutPatchListInstance" "TestCreateGetRemoveSecurityPolicies" "TestPaginationWithMaxRes" \ "TestPaginationDefault" "TestPaginationMapResponse" "TestPaginationMapResponseMaxRes" "TestInstanceGroupResize" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done ln -s /usr/share/gocode/src/cloud.google.com/go/internal _build/src/cloud.google.com/go/ %gocheck %endif %endif %gopkgfiles %changelog * Wed Jan 24 2024 Fedora Release Engineering - 1.23.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.23.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jan 11 2024 Mikel Olasagasti Uranga - 1.23.2-3 - Remove metadata module correctly * Thu Dec 07 2023 Mikel Olasagasti Uranga - 1.23.2-2 - Skip tests requiring auth * Mon Nov 20 2023 Mikel Olasagasti Uranga - 1.23.2-1 - Initial package - Closes rhbz#2250110