# Generated by go2rpm 1.9.0 %bcond_without check # https://github.com/caarlos0/clone-org %global goipath github.com/caarlos0/clone-org Version: 1.5.2 %gometa -f %global common_description %{expand: Clone-org is a simple command line tool to clone all repos of a given GitHub organization.} %global golicenses LICENSE.md %global godocs README.md Name: %{goname} Release: %autorelease Summary: Clone all the repos of a GitHub organization License: MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %package -n clone-org Summary: %{summary} %description -n clone-org %{common_description} %gopkg %prep %goprep %autopatch -p1 # Fix import for golang-github-google-go-github sed -i 's:v51/::' clone-org.go %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 -n clone-org %license LICENSE.md %doc README.md %{_bindir}/* %gopkgfiles %changelog %autochangelog