# Generated by go2rpm 1.14.0 %bcond check 1 %bcond bootstrap 0 %global debug_package %{nil} %global module internal %if %{with bootstrap} %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ %endif # https://github.com/Azure/azure-sdk-for-go %global goipath github.com/Azure/azure-sdk-for-go/sdk/%{module} Version: 1.11.1 %global tag sdk/%{module}/v%{version} %global distprefix %{nil} %gometa -f %global common_description %{expand: Azure SDK for Go - %{module} library.} %global golicenses LICENSE.txt %global godocs CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md SUPPORT.md\\\ SECURITY.md README.md Name: %{goname} Release: %autorelease Summary: Azure SDK for Go - %{module} library License: MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 # move building library to the root to match goipath mv sdk/%{module}/* . rm -rf .github documentation eng profile sdk %if %{without bootstrap} %generate_buildrequires %go_generate_buildrequires %endif %install %gopkginstall %if %{without bootstrap} %if %{with check} %check ln -s /usr/share/gocode/src/github.com/Azure/azure-sdk-for-go/sdk/azcore _build/src/github.com/Azure/azure-sdk-for-go/sdk/ ln -s /usr/share/gocode/src/github.com/Azure/azure-sdk-for-go/sdk/azidentity _build/src/github.com/Azure/azure-sdk-for-go/sdk/ for test in "TestRecordingHTTPClient_Do" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck -d recording -d test/credential %endif %endif %gopkgfiles %changelog %autochangelog