You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
golang-github-kr-text/SPECS/golang-github-kr-text.spec

67 lines
1.3 KiB

# Generated by go2rpm 1.9.0
%bcond_without check
# https://github.com/kr/text
%global goipath github.com/kr/text
Version: 0.2.0
%gometa
%global common_description %{expand:
Miscellaneous functions for formatting text.}
%global godocs Readme Readme-colwriter Readme-mc
Name: %{goname}
Release: %autorelease
Summary: Miscellaneous functions for formatting text
License: MIT
URL: %{gourl}
Source: %{gosource}
%description %{common_description}
%gopkg
%prep
%goprep
%autopatch -p1
mv colwriter/Readme Readme-colwriter
mv mc/Readme Readme-mc
%generate_buildrequires
%go_generate_buildrequires
%build
%if %{?el9}
export GOPATH="%{gobuilddir}:%{gopath}"
export GO111MODULE=off
%endif
for cmd in cmd/* ; do
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
%gobuild -o %{gobuilddir}/bin/go-mc %{goipath}/mc
%install
%gopkginstall
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%if %{with check}
%check
%gocheck
%endif
%files
%doc Readme Readme-colwriter Readme-mc
%{_bindir}/*
%gopkgfiles
%changelog
* Fri Apr 19 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 0.2.0-%autorelease
- Rebuilt for MSVSphere 9.4
%autochangelog