# Generated by go2rpm 1.9.0 %bcond_without check # https://github.com/google/gnostic %global goipath github.com/google/gnostic %global forgeurl https://github.com/google/gnostic Version: 0.6.9 %gometa %global common_description %{expand: A compiler for APIs described by the OpenAPI Specification with plugins for code generation and other API support tasks.} %global golicenses LICENSE %global godocs examples CONTRIBUTING.md README.md Name: %{goname} Release: %autorelease Summary: A compiler for APIs described by the OpenAPI Specification License: Apache-2.0 URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/gnostic %{goipath} %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check for test in "TestRemotePetstoreJSON" \ "TestRemotePetstoreYAML" \ "TestRemoteSeparateYAML" \ "TestRemoteSeparateJSON" \ "TestBuilderV2" \ "TestBuilderV3" \ "TestJSONSchemaProtobufNaming" \ "TestJSONSchemaJSONNaming" \ "TestOpenAPIProtobufNaming" \ "TestOpenAPIFQSchemaNaming" \ "TestOpenAPIJSONNaming" \ "TestOpenAPIStringEnums" \ "TestOpenAPIDefaultResponse" \ "Test" \ "TestExtensionHandlerWithLibraryExample" \ "TestErrorExtensionGeneratorUnsupportedPrimitive" \ "TestErrorExtensionGeneratorNameCollision" \ "TestSamplePluginWithPetstore" \ "TestValidPluginInvocations" \ "TestSamplePluginWithPetstoreV2" \ "TestSamplePluginWithPetstoreV3" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %files %license LICENSE %doc examples CONTRIBUTING.md README.md %{_bindir}/gnostic %gopkgfiles %changelog %autochangelog