## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Generated by go2rpm 1.5.0 %bcond_without check # https://github.com/docker-slim/docker-slim %global goipath github.com/docker-slim/docker-slim Version: 1.36.4 %global tag 1.36.4 %gometa %global common_description %{expand: DockerSlim: Don't change anything in your Docker container image and minify it by up to 30x (and for compiled languages even more) making it secure too! (free and open source).} %global golicenses LICENSE %global godocs examples CHANGELOG.md\\\ CONTRIBUTING.md README.md WISHLIST.md Name: %{goname} Release: %autorelease Summary: Minify your Docker container image by up to 30x # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} Patch0: 0001-Adapt-to-newer-kim-openapi.patch BuildRequires: golang(github.com/bmatcuk/doublestar/v3) BuildRequires: golang(github.com/c-bata/go-prompt) BuildRequires: golang(github.com/c-bata/go-prompt/completer) BuildRequires: golang(github.com/c4milo/unpackit) BuildRequires: golang(github.com/docker-slim/go-update) BuildRequires: golang(github.com/docker-slim/uiprogress) BuildRequires: golang(github.com/docker/docker/pkg/archive) BuildRequires: golang(github.com/docker/go-connections/nat) BuildRequires: golang(github.com/dustin/go-humanize) BuildRequires: golang(github.com/fatih/color) BuildRequires: golang(github.com/fsouza/go-dockerclient) BuildRequires: golang(github.com/getkin/kin-openapi/openapi2) BuildRequires: golang(github.com/getkin/kin-openapi/openapi2conv) BuildRequires: golang(github.com/getkin/kin-openapi/openapi3) BuildRequires: golang(github.com/ghodss/yaml) BuildRequires: golang(github.com/gocolly/colly/v2) BuildRequires: golang(github.com/google/shlex) BuildRequires: golang(github.com/gorilla/websocket) BuildRequires: golang(github.com/moby/term) BuildRequires: golang(github.com/pkg/errors) BuildRequires: golang(github.com/sirupsen/logrus) BuildRequires: golang(github.com/syndtr/gocapability/capability) BuildRequires: golang(github.com/urfave/cli) BuildRequires: golang(golang.org/x/net/http2) BuildRequires: golang(golang.org/x/sys/unix) %description %{common_description} %gopkg %prep %goprep %patch0 -p1 sed -i 's|"github.com/bmatcuk/doublestar|"github.com/bmatcuk/doublestar/v3|' pkg/util/fsutil/fsutil.go %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc examples CHANGELOG.md CONTRIBUTING.md README.md %doc WISHLIST.md %{_bindir}/* %gopkgfiles %changelog * Sat Sep 18 2021 Robert-André Mauchin 1.36.4-2 - Uncommitted changes * Sat Sep 18 2021 Robert-André Mauchin 1.36.4-1 - Initial release