# Generated by go2rpm 1.19.0 %bcond check 1 %bcond bootstrap 0 %if %{with bootstrap} %global debug_package %{nil} %endif %if %{with bootstrap} %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ %endif # https://github.com/clipperhouse/displaywidth %global goipath github.com/clipperhouse/displaywidth Version: v0.11.0 %global tag v0.11.0 %gometa -L -f %global common_description %{expand: Measure the display column width of strings in Go.} %global golicenses LICENSE %global godocs AGENTS.md CHANGELOG.md README.md\\\ comparison/COMPATIBILITY_ANALYSIS.md\\\ comparison/README.md Name: golang-github-clipperhouse-displaywidth Release: %autorelease Summary: Measure the display column width of strings in Go License: BSD-3-Clause AND MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep -A %autopatch -p1 %if %{without bootstrap} %generate_buildrequires %go_generate_buildrequires %endif %if %{without bootstrap} %build for cmd in terminal-test; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %endif %install %gopkginstall %if %{without bootstrap} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %endif %if %{without bootstrap} %if %{with check} %check # internal/gen/triegen is displaywidth's own code-generation tooling, not # part of the library's public API - it imports golang.org/x/text's own # internal/triegen, which real consumers can never legitimately reach either # (Go's internal-package rule scopes it to golang.org/x/text itself), so # there's no packaged golang(...) provide for it and %%check fails on this # subpackage alone otherwise. Same issue, same fix, as # golang-github-clipperhouse-uax29-2.spec (same author's convention). %gocheck -r '.*internal/gen.*' %endif %endif %if %{without bootstrap} %files %license LICENSE %doc AGENTS.md CHANGELOG.md README.md comparison/COMPATIBILITY_ANALYSIS.md %doc comparison/README.md %{_bindir}/terminal-test %endif %gopkgfiles %changelog %autochangelog