Package cri-tools1.28: 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 | %global import_path github.com/kubernetes-incubator/cri-tools %global _unpackaged_files_terminate_build 1 %define prog_name cri-tools %define cri_tools_major 1 %define cri_tools_minor 28 %define cri_tools_patch 0 Name: %prog_name%cri_tools_major.%cri_tools_minor Version: %cri_tools_major.%cri_tools_minor.%cri_tools_patch Release: alt1 Summary: CLI and validation tools for Kubelet Container Runtime Interface (CRI) License: Apache-2.0 Group: Other Url: https://github.com/kubernetes-incubator/cri-tools Source: %name-%version.tar Provides: %prog_name = %EVR Conflicts: %prog_name < %EVR Conflicts: %prog_name > %EVR BuildRequires(pre): rpm-build-golang BuildRequires(pre): golang >= 1.20 BuildRequires: /usr/bin/go-md2man # For creating completion BuildRequires: /proc %description CLI and validation tools for Kubelet Container Runtime Interface (CRI). %prep %setup %build export BUILDDIR="$PWD/.build" export IMPORT_PATH="%import_path" export GOPATH="$BUILDDIR:%go_path" %golang_prepare for doc in docs/*.md; do go-md2man -in "$doc" -out "${doc%%md}"1 done pushd .build/src/%import_path %golang_build cmd/crictl go test -buildmode=pie -o $BUILDDIR/bin/critest -c "$PWD"/cmd/critest popd for shell in bash zsh fish; do $BUILDDIR/bin/crictl completion "$shell" > "crictl-$shell-completion" done %install export BUILDDIR="$PWD/.build" export IGNORE_SOURCES=1 %golang_install install -Dpm 644 docs/*.1 -t %buildroot/%_man1dir rm docs/*.1 install -Dpm 644 crictl-bash-completion -T %buildroot/%_datadir/bash-completion/completions/crictl install -Dpm 644 crictl-zsh-completion -T %buildroot/%_datadir/zsh/site-functions/_crictl install -Dpm 644 crictl-fish-completion -T %buildroot%_datadir/fish/vendor_completions.d/crictl.fish %files %_bindir/crictl %_bindir/critest %_datadir/bash-completion/completions/crictl %_datadir/zsh/site-functions/_crictl %_datadir/fish/vendor_completions.d/crictl.fish %doc %_man1dir/* %doc docs %changelog * Thu Mar 07 2024 Alexey Shabalin <shaba@altlinux.org> 1.28.0-alt1 - New version 1.28.0. * Wed Nov 01 2023 Alexey Shabalin <shaba@altlinux.org> 1.27.1-alt1 - New version 1.27.1. * Wed Nov 01 2023 Alexey Shabalin <shaba@altlinux.org> 1.26.1-alt2 - Rename the package to include major and minor versions. * Mon Mar 27 2023 Alexander Stepchenko <geochip@altlinux.org> 1.26.1-alt1 - 1.26.1 * Sat Jun 04 2022 Mikhail Gordeev <obirvalger@altlinux.org> 1.24.2-alt1 - new version 1.24.2 * Thu Dec 02 2021 Mikhail Gordeev <obirvalger@altlinux.org> 1.22.0-alt1 - new version 1.22.0 - add zsh and fish completions * Wed Jun 30 2021 Mikhail Gordeev <obirvalger@altlinux.org> 1.21.0-alt1 - new version 1.21.0 * Fri Jan 22 2021 Mikhail Gordeev <obirvalger@altlinux.org> 1.20.0-alt1 - new version 1.20.0 * Thu Sep 17 2020 Mikhail Gordeev <obirvalger@altlinux.org> 1.19.0-alt1 - new version 1.19.0 * Thu Aug 30 2018 Mikhail Gordeev <obirvalger@altlinux.org> 1.11.1-alt1 - Initial build for Sisyphus |