%global import_path github.com/lxc/distrobuilder Name: distrobuilder Version: 1.2 # number of commits, hash of commit, alt release Release: alt120.21dde21.2 Summary: System container image builder for LXC and LXD License: Apache-2.0 Group: Other Url: https://github.com/lxc/distrobuilder Packager: Mikhail Gordeev Source: %name-%version.tar BuildRequires(pre): rpm-build-golang BuildRequires: golang Requires: squashfs-tools %description %summary %prep %setup %build export BUILDDIR="$PWD/.build" export IMPORT_PATH="%import_path" export GOPATH="$BUILDDIR:%go_path" %golang_prepare cd .build/src/%import_path %golang_build distrobuilder %install export BUILDDIR="$PWD/.build" export IGNORE_SOURCES=1 %golang_install %files %_bindir/* %doc *.md doc %changelog * Wed Jul 14 2021 Mikhail Gordeev 1.2-alt120.21dde21.2 - Add require to squashfs-tools - Fix alt package manager to clean properly * Fri Jul 09 2021 Mikhail Gordeev 1.2-alt120.21dde21.1 - update * Sun Jun 02 2019 Mikhail Gordeev 0.0.0.0.1-alt0.428.06a6a8e.1 - Initial build for Sisyphus