# Generated by go2rpm 1.6.0 %bcond_without check # https://github.com/pkg/diff %global goipath github.com/pkg/diff %global commit 20ebb0f2a09e612109b224b32f79370409108bcc %gometa %global common_description %{expand: The top level Go package, diff, contains convenience functions for the most common uses. The subpackages provide very fine-grained control over every aspect: - myers: creates diffs using the Myers diff algorithm. - edit: contains the core diff data types. - ctxt: provides tools to reduce the amount of context in a diff. - write: provides routines to write diffs in standard formats.} %global golicenses LICENSE %global godocs todo.go readme.md ctxt/todo.go write/todo.go Name: %{goname} Version: 0.0.0 Release: 1%{?dist} Summary: Create, modify, and print diffs for Go # Upstream license specification: BSD-3-Clause License: BSD URL: %{gourl} Source0: %{gosource} %description %{common_description} %gopkg %prep %goprep %generate_buildrequires %go_generate_buildrequires %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc todo.go readme.md ctxt/todo.go write/todo.go %{_bindir}/* %gopkgfiles %changelog * Fri Jun 24 2022 Julien Rische - 0-0.1.20220624git20ebb0f - Initial package