Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37853914
en ru br
Репозитории ALT

Группа :: Development/Tools
Пакет: dive

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define gobuild go build

# TODO: build with external sources


Name: dive
Version: 0.10.0
Release: alt1

Summary: A tool for exploring each layer in a docker image

Group: Development/Tools
License: MIT
Url: https://github.com/wagoodman/dive

Packager: Vitaly Lipatov <lav at altlinux.ru>

# Source-url: https://github.com/wagoodman/dive/archive/refs/tags/v%version.tar.gz

Source: %name-%version.tar

Source1: %name-development-%version.tar

BuildRequires(pre): rpm-macros-golang
ExclusiveArch: %go_arches

BuildRequires: golang >= 1.7

%description
A tool for exploring a docker image, layer contents, and discovering ways to shrink the size of your Docker/OCI image.

%prep
%setup -a1

%build
export GOFLAGS=-mod=vendor
#make
#go fmt -x ./...
go build -o dist/%name

%check
export GOFLAGS=-mod=vendor
make test

%install
install -D -p -m 755 ./dist/dive %buildroot%_bindir/%name

%files
%doc LICENSE README.md
%_bindir/%name

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin