Package docker-cli: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | %define _unpackaged_files_terminate_build 1 %global provider github %global provider_tld com %global project docker %global repo cli %global import_path %{provider}.%{provider_tld}/%{project}/%{repo} %global commit dea9396e184290f638ea873c76db7c80efd5a1d2 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: docker-cli Version: 20.10.11 Release: alt2 Summary: Docker CLI License: Apache-2.0 Group: System/Configuration/Other Url: https://github.com/docker/cli ExclusiveArch: %go_arches Conflicts: docker Source0: %name-%version.tar Patch1: docker-cli-20.10.5-alt-fix-man-page-gen.patch BuildRequires(pre): rpm-build-golang BuildRequires: golang >= 1.3 libseccomp-devel gcc glibc-devel BuildRequires: go-md2man Conflicts: docker-ce < 20.10.0-alt1.rc2 # do not extract debuginfo %define __find_debuginfo_files %nil # do not run debugedit for them %add_debuginfo_skiplist /usr/bin/docker %description CLI for Docker Engine %prep %setup %patch1 -p1 %build # Temporary workaround to build with golang 1.16. Waiting for upstream to # add go modules support. export GO111MODULE=off export BUILDDIR="$PWD/.build" export IMPORT_PATH="%import_path" export GOPATH="%go_path:$BUILDDIR" %golang_prepare rm -fr "$BUILDDIR/src/$IMPORT_PATH/vendor" cp -alv -- vendor/* "$BUILDDIR/src" DISABLE_WARN_OUTSIDE_CONTAINER=1 make VERSION=%{version} GITCOMMIT=%{shortcommit} dynbinary DISABLE_WARN_OUTSIDE_CONTAINER=1 make manpages %install # install binary install -d %{buildroot}%{_bindir} install -p -m 755 build/docker %{buildroot}%{_bindir}/docker # install manpages install -d %{buildroot}%{_mandir}/man1 install -p -m 644 man/man1/*.1 %{buildroot}%{_mandir}/man1 install -d %{buildroot}%{_mandir}/man5 install -p -m 644 man/man5/*.5 %{buildroot}%{_mandir}/man5 install -d %{buildroot}%{_mandir}/man8 install -p -m 644 man/man8/*.8 %{buildroot}%{_mandir}/man8 # install bash completion install -Dp -m 644 contrib/completion/bash/docker %{buildroot}%{_datadir}/bash-completion/completions/docker # install zsh completion install -Dp -m 644 contrib/completion/zsh/_docker %{buildroot}%{_datadir}/zsh/site-functions/_docker # install fish completion install -Dp -m 644 contrib/completion/fish/docker.fish %{buildroot}%{_datadir}/fish/completions/docker.fish # install CLI plugins dir install -d %{buildroot}%{_libexecdir}/docker/cli-plugins %files %doc AUTHORS LICENSE %doc MAINTAINERS NOTICE %doc CONTRIBUTING.md README.md %{_mandir}/man1/* %{_mandir}/man5/* %{_mandir}/man8/* %{_bindir}/docker %{_datadir}/bash-completion/completions/docker %{_datadir}/zsh/site-functions/_docker %{_datadir}/fish/completions/docker.fish %dir %{_libexecdir}/docker/cli-plugins %changelog * Wed Dec 1 2021 Vladimir Didenko <cow@altlinux.org> 20.10.11-alt2 - pack cli plugins directory * Wed Dec 1 2021 Vladimir Didenko <cow@altlinux.org> 20.10.11-alt1 - new release * Mon Oct 25 2021 Vladimir Didenko <cow@altlinux.org> 20.10.10-alt1 - new release * Wed Oct 6 2021 Vladimir Didenko <cow@altlinux.org> 20.10.9-alt1 - new release * Thu Aug 5 2021 Vladimir Didenko <cow@altlinux.org> 20.10.8-alt1 - new release * Fri Jun 18 2021 Vladimir Didenko <cow@altlinux.org> 20.10.7-alt1 - new release * Fri Apr 30 2021 Vladimir Didenko <cow@altlinux.org> 20.10.6-alt1 - new release * Thu Mar 11 2021 Vladimir Didenko <cow@altlinux.org> 20.10.5-alt1 - new release * Sat Feb 20 2021 Vladimir Didenko <cow@altlinux.org> 20.10.3-alt2 - fix build with golang 1.16 * Tue Feb 09 2021 Vladimir Didenko <cow@altlinux.org> 20.10.3-alt1 - new release * Fri Jan 22 2021 Vladimir Didenko <cow@altlinux.org> 20.10.2-alt1 - new release * Wed Dec 9 2020 Vladimir Didenko <cow@altlinux.org> 20.10.0-alt2 - 20.10.0 release * Fri Dec 4 2020 Vladimir Didenko <cow@altlinux.org> 20.10.0-alt1.rc2 - Initial build for Sisyphus |