# Generated by go2rpm 1.17.1 %bcond check 1 %bcond bootstrap 1 %global debug_package %{nil} %if %{with bootstrap} %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ %endif # https://github.com/charmbracelet/x %global module exp/teatest %global goipath github.com/charmbracelet/x/%{module} Version: 0 %global commit 83e3a29d542fe292a3bd0a965079ea16a432bcda %global distprefix %{nil} # REMOVE BEFORE SUBMITTING THIS FOR REVIEW # --- # New Fedora packages should use %%gometa -f, which makes the package # ExclusiveArch to %%golang_arches_future and thus excludes the package from # %%ix86. If the new package is needed as a dependency for another package, # please consider removing that package from %%ix86 in the same way, instead of # building more go packages for i686. If your package is not a leaf package, # you'll need to coordinate the removal of the package's dependents first. # --- # REMOVE BEFORE SUBMITTING THIS FOR REVIEW %gometa -L -f %global common_description %{expand: Charm experimental packages.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: %autorelease Summary: Charm experimental packages License: MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 ## Delete files under root folder # find . -mindepth 1 -maxdepth 1 -type f -delete ## Delete unrelated modules ## todo make exp variables find . -mindepth 1 -maxdepth 1 -type d -not -name exp -not -name _build -exec rm -rf {} \; mv %{module}/* . rm -rf exp %if %{without bootstrap} %generate_buildrequires %go_generate_buildrequires %endif %install %gopkginstall %if %{without bootstrap} %if %{with check} %check %gocheck %endif %endif %gopkgfiles %changelog %autochangelog