File dive.spec of Package dive
#
# spec file for package dive
#
Name: dive
Version: 0
Release: 0
Summary: A tool for exploring each layer in a docker image
License: MIT
Url: https://github.com/wagoodman/dive
Source: %{name}-%{version}.tar.gz
Source1: vendor.tar.zst
BuildRequires: make
BuildRequires: golang-packaging
BuildRequires: zstd
%description
A tool for exploring a docker image, layer contents, and discovering ways to shrink the size of your Docker/OCI image
%package devel
Summary: dive development files
%description devel
Those are the development files dive
%prep
%autosetup -p1 -a1
%build
go build \
-mod=vendor \
-buildmode=pie \
-o builddir/%{name}
%install
install -D -m0755 builddir/%{name} %{buildroot}%{_bindir}/%{name}
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%changelog