Group :: Other
RPM: distrobuilder
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%global import_path github.com/lxc/distrobuilder
Name: distrobuilder
Version: 2.1
Release: alt2
Summary: System container image builder for LXC and LXD
License: Apache-2.0
Group: Other
Url: https://github.com/lxc/distrobuilder
Packager: Mikhail Gordeev <obirvalger at altlinux.org>
Source: %name-%version.tar
Patch1: unset-tmpdir-in-alt-ci-example.patch
Patch2: distrobuilder-2.1-gentoo-glibc-2.36-fix.patch
BuildRequires(pre): rpm-build-golang
BuildRequires: golang
Requires: squashfs-tools
%description
%summary
%prep
%setup
%patch1 -p1
%patch2 -p1
%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
…
Todas as alterações você pod ver aqui
Name: distrobuilder
Version: 2.1
Release: alt2
Summary: System container image builder for LXC and LXD
License: Apache-2.0
Group: Other
Url: https://github.com/lxc/distrobuilder
Packager: Mikhail Gordeev <obirvalger at altlinux.org>
Source: %name-%version.tar
Patch1: unset-tmpdir-in-alt-ci-example.patch
Patch2: distrobuilder-2.1-gentoo-glibc-2.36-fix.patch
BuildRequires(pre): rpm-build-golang
BuildRequires: golang
Requires: squashfs-tools
%description
%summary
%prep
%setup
%patch1 -p1
%patch2 -p1
%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
…
Todas as alterações você pod ver aqui