Группа :: Разработка/Прочее
Пакет: promu
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%global import_path github.com/prometheus/promu
%global _unpackaged_files_terminate_build 1
Name: promu
Version: 0.13.0
Release: alt1
Summary: Prometheus Utility Tool
Group: Development/Other
License: Apache-2.0
Url: https://%import_path
Source: %name-%version.tar
ExclusiveArch: %go_arches
BuildRequires(pre): rpm-build-golang
%description
promu is the utility tool for Prometheus projects.
%prep
%setup -q
%build
export BUILDDIR="$PWD/.gopath"
export IMPORT_PATH="%import_path"
export GOPATH="$BUILDDIR:%go_path"
%golang_prepare
cd .gopath/src/%import_path
export VERSION=%version
export COMMIT=%release
export BRANCH=altlinux
export GOFLAGS="-mod=vendor"
go install -ldflags "-X main.version=$VERSION -X main.commit=$COMMIT -X main.branch=$BRANCH" ./...
%install
export BUILDDIR="$PWD/.gopath"
export GOPATH="%go_path"
%golang_install
rm -rf -- %buildroot%_datadir
%files
%_bindir/*
%changelog
…
Полный changelog можно просмотреть здесь
%global _unpackaged_files_terminate_build 1
Name: promu
Version: 0.13.0
Release: alt1
Summary: Prometheus Utility Tool
Group: Development/Other
License: Apache-2.0
Url: https://%import_path
Source: %name-%version.tar
ExclusiveArch: %go_arches
BuildRequires(pre): rpm-build-golang
%description
promu is the utility tool for Prometheus projects.
%prep
%setup -q
%build
export BUILDDIR="$PWD/.gopath"
export IMPORT_PATH="%import_path"
export GOPATH="$BUILDDIR:%go_path"
%golang_prepare
cd .gopath/src/%import_path
export VERSION=%version
export COMMIT=%release
export BRANCH=altlinux
export GOFLAGS="-mod=vendor"
go install -ldflags "-X main.version=$VERSION -X main.commit=$COMMIT -X main.branch=$BRANCH" ./...
%install
export BUILDDIR="$PWD/.gopath"
export GOPATH="%go_path"
%golang_install
rm -rf -- %buildroot%_datadir
%files
%_bindir/*
%changelog
…
Полный changelog можно просмотреть здесь