## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-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*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond check 1 # https://github.com/checkpoint-restore/checkpointctl %global goipath github.com/checkpoint-restore/checkpointctl Version: 1.4.0 %gometa -L -f Name: checkpointctl Release: %autorelease Summary: A command-line tool for in-depth analysis of container checkpoints # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: asciidoctor BuildRequires: python3-click BuildRequires: go-vendor-tools %description The checkpointctl command can be used for in-depth analysis of container checkpoints created with Podman and Kubernetes. %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on %gobuild -o %{gobuilddir}/bin/checkpointctl %{goipath} %{gobuilddir}/bin/%{name} completion bash > %{name}.bash %{gobuilddir}/bin/%{name} completion fish > %{name}.fish %{gobuilddir}/bin/%{name} completion zsh > %{name}.zsh pushd docs cat > footer.adoc <<'EOF' The CRIU team v%{version} :doctype: manpage :mansource: checkpointctl :manversion: v%{version} :manmanual: CHECKPOINTCTL Manual EOF for src in checkpointctl.adoc checkpointctl-inspect.adoc checkpointctl-memparse.adoc checkpointctl-show.adoc; do out="${src%.adoc}.1" asciidoctor -b manpage -d manpage -o "$out" "$src" done popd %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -Dpm 0644 %{name}.bash %{buildroot}%{bash_completions_dir}/%{name} install -Dpm 0644 %{name}.fish %{buildroot}%{fish_completions_dir}/%{name}.fish install -Dpm 0644 %{name}.zsh %{buildroot}%{zsh_completions_dir}/_%{name} install -Dpm 0644 ./docs/%{name}*.1 -t %{buildroot}%{_mandir}/man1/ %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc README.md %{_bindir}/checkpointctl %{_mandir}/man1/%{name}*.1* %{bash_completions_dir}/%{name} %{fish_completions_dir}/%{name}.fish %{zsh_completions_dir}/_%{name} %changelog ## START: Generated by rpmautospec * Wed Sep 03 2025 Radostin Stoyanov - 1.4.0-2 - Add python3-click build dependency * Wed Sep 03 2025 Mikel Olasagasti Uranga - 1.4.0-1 - Adopt Go Vendor Tools * Mon Sep 01 2025 Radostin Stoyanov - 1:1.4.0-1 - Update to upstream version 1.4.0 * Fri Aug 15 2025 Maxwell G - 1:1.3.0-6 - Rebuild for golang-1.25.0 * Fri Aug 15 2025 Maxwell G - 1:1.3.0-5 - Revert "Rebuild for golang-1.25.0" * Fri Aug 15 2025 Maxwell G - 1:1.3.0-4 - Rebuild for golang-1.25.0 * Wed Jul 23 2025 Fedora Release Engineering - 1:1.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Thu Jan 16 2025 Fedora Release Engineering - 1:1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sat Nov 02 2024 Radostin Stoyanov - 1:1.3.0-1 - Update to upstream version 1.3.0 * Wed Jul 17 2024 Fedora Release Engineering - 1:1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jun 17 2024 Radostin Stoyanov - 1:1.2.0-1 - Update to upstream version 1.2.0 * Sun Feb 11 2024 Maxwell G - 1:1.1.0-2 - Rebuild for golang 1.22.0 * Mon Jan 29 2024 Radostin Stoyanov - 1:1.1.0-1 - Initial import (fedora#2259838). ## END: Generated by rpmautospec