## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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.8.1 %bcond_without check %global debug_package %{nil} %global _docdir_fmt %{name} # https://github.com/vektah/gqlparser %global goipath github.com/vektah/gqlparser/v2 Version: 2.5.0 %gometa -f %global common_description %{expand: A port of the parser from graphql-js into golang.} %global golicenses LICENSE %global godocs readme.md Name: %{goname} Release: %autorelease -b 100 Summary: A port of the parser from graphql-js into golang # All files are MIT except those in validator/imported License: MIT and BSD-3-Clause URL: %{gourl} Source: %{gosource} # This "//go:embed prelude.graphql" causes dependent packages to fail to build. Patch: 0001-Revert-Embed-prelude-214.patch %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %install %gopkginstall # Handle the validator license file which will clash with the primary one mkdir -p %{buildroot}%{_defaultlicensedir}/%{name} cp -p --parents validator/imported/LICENSE %{buildroot}%{_defaultlicensedir}/%{name} echo '%%license %%{_defaultlicensedir}/%{name}/validator' >> %{godevelfilelist} mkdir -p %{buildroot}%{_pkgdocdir} cp -p --parents validator/imported/readme.md %{buildroot}%{_pkgdocdir} echo '%%doc %%{_pkgdocdir}/validator' >> %{godevelfilelist} %if %{with check} %check %gocheck %endif %gopkgfiles %changelog * Thu Sep 01 2022 John Doe 2.5.0-100 - Uncommitted changes