## 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 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 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} %description %{common_description} %gopkg %prep %goprep %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 * Wed Aug 31 2022 John Doe 2.5.0-1 - Uncommitted changes