Files
golang-github-checkpoint-re…/golang-github-checkpoint-restore-criu.spec

65 lines
1.2 KiB
RPMSpec

# Generated by go2rpm 1.15.0
%bcond check 1
%bcond bootstrap 0
%global debug_package %{nil}
%if %{with bootstrap}
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
%endif
# https://github.com/checkpoint-restore/go-criu
%global goipath github.com/checkpoint-restore/go-criu/v7
Version: 7.2.0
%if %{without bootstrap}
%if %{with check}
%global goextensions img
%endif
%endif
%gometa -f
%dnl %global goaltipaths github.com/checkpoint-restore/go-criu/v7 github.com/checkpoint-restore/go-criu/v6 github.com/checkpoint-restore/go-criu/v5
%global common_description %{expand:
Go Bindings for CRIU.}
%global golicenses LICENSE
%global godocs README.md scripts/README.md
Name: golang-github-checkpoint-restore-criu
Release: %autorelease
Summary: Go Bindings for CRIU
License: Apache-2.0
URL: %{gourl}
Source: %{gosource}
%description %{common_description}
%gopkg
%prep
%goprep -A
%autopatch -p1 -q
%if %{without bootstrap}
%generate_buildrequires
%go_generate_buildrequires
%endif
%install
%gopkginstall
%if %{without bootstrap}
%if %{with check}
%check
%gocheck -d crit
%endif
%endif
%gopkgfiles
%changelog
%autochangelog