# Generated by go2rpm 1.9.0 %bcond_without check %global debug_package %{nil} # https://github.com/gofiber/fiber %global goipath github.com/gofiber/fiber/v2 Version: 2.48.0 %gometa -f %global common_description %{expand: Express inspired web framework written in Go.} %global golicenses LICENSE %global godocs docs utils/README.md Name: %{goname} Release: %autorelease Summary: Express inspired web framework written in Go # MIT: main package # BSD-3-Clause: internal/schema taken from github.com/gorilla/schema # internal/gopsutil taken from github.com/shirou/gopsutil License: MIT amd BSD-3-Clause URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 rm -rfv internal/go-ole internal/wmi %generate_buildrequires %go_generate_buildrequires %install %gopkginstall %if %{with check} %check # needs network for test in "Test_Proxy_Do_WithRealURL" \ "Test_Proxy_Do_WithRedirect" \ "Test_Proxy_DoRedirects_RestoreOriginalURL" \ "Test_Proxy_DoRedirects_TooManyRedirects" \ "Test_Storage_Memory_Get" \ "Test_Limiter_Sliding_Window_Custom_Storage_Skip_Successful_Requests" \ "Test_Limiter_Sliding_Window_Skip_Successful_Requests" \ "Test_Limiter_Sliding_Window_Custom_Storage_Skip_Failed_Requests" \ "Test_Limiter_Sliding_Window_Skip_Failed_Requests" \ "Test_Idempotency" \ "Test_Session_Save_Expiration" \ "Test_Client_UserAgent" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %gopkgfiles %changelog %autochangelog