Compare commits

..

No commits in common. "rawhide" and "f41" have entirely different histories.

2 changed files with 6 additions and 36 deletions

View file

@ -10,25 +10,13 @@
# https://github.com/lxc/incus
%global goipath github.com/lxc/incus
Version: 6.19.1
Version: 6.15
%gometa
%global godocs AUTHORS CODE_OF_CONDUCT.md CONTRIBUTING.md README.md SECURITY.md
%global golicenses COPYING
# Set build macro for static builds
%define gocompilerflags_static -compiler gc
%define gobuild_baseflags_static %{gocompilerflags_static} -tags="rpm_crashtraceback ${GO_BUILDTAGS-${BUILDTAGS-}}" -a -v
%define gobuild_ldflags_static ${GO_LDFLAGS-${LDFLAGS-}} %{?currentgoldflags} -B 0x$(echo "%{name}-%{version}-%{release}-${SOURCE_DATE_EPOCH:-}" | sha1sum | cut -d ' ' -f1) -compressdwarf=false
%define gobuildflags_static() %{expand:%{gobuild_baseflags_static} -ldflags "%{gobuild_ldflags_static}"}
%define gobuild_static(-) %{expand:
%{?gobuilddir:GOPATH="%{gobuilddir}:${GOPATH:+${GOPATH}:}%{?gopath}"} %{?gomodulesmode} \\
CGO_ENABLED=0 go build %{gobuildflags_static} %{?**};
}
Name: incus
Release: 1%{?dist}
Summary: Powerful system container and virtual machine manager
@ -76,7 +64,6 @@ Patch1002: incus-0.2-doc-Remove-downloads-from-sphinx-build.patch
%global selinuxtype targeted
BuildRequires: gettext
BuildRequires: glibc-static
BuildRequires: help2man
BuildRequires: pkgconfig(bash-completion)
BuildRequires: pkgconfig(cowsql)
@ -359,9 +346,10 @@ for cmd in incus fuidshift incus-benchmark lxc-to-incus lxd-to-incus; do
BUILDTAGS="libsqlite3" %gobuild -o %{gobuilddir}/bin/$cmd %{goipath}/cmd/$cmd
done
# Build incus-migrate and incus-agent statically (cf. rhbz#2419661)
BUILDTAGS="netgo" %gobuild_static -o %{gobuilddir}/bin/incus-migrate %{goipath}/cmd/incus-migrate
BUILDTAGS="agent netgo" %gobuild_static -o %{gobuilddir}/bin/incus-agent %{goipath}/cmd/incus-agent
#export CGO_ENABLED=0
BUILDTAGS="netgo" %gobuild -o %{gobuilddir}/bin/incus-migrate %{goipath}/cmd/incus-migrate
BUILDTAGS="agent netgo" %gobuild -o %{gobuilddir}/bin/incus-agent %{goipath}/cmd/incus-agent
#unset CGO_ENABLED
# build shell completions
mkdir %{gobuilddir}/completions
@ -468,24 +456,6 @@ export CGO_LDFLAGS_ALLOW="(-Wl,-wrap,pthread_create)|(-Wl,-z,now)"
%endif
%changelog
* Wed Dec 10 2025 Robby Callicotte <rcallicotte@fedoraproject.org> - 6.19.1-1
- Update to 6.19.1
* Sun Dec 07 2025 Neal Gompa <ngompa@fedoraproject.org> - 6.18-3
- Build incus-migrate and incus-migrate with cgo disabled
* Sat Dec 06 2025 Neal Gompa <ngompa@fedoraproject.org> - 6.18-2
- Build incus-agent as a fully statically linked binary (rhbz#2419661)
* Mon Nov 03 2025 Robby Callicotte <rcallicotte@fedoraproject.org> - 6.18-1
- Updated to incus-6.18
* Fri Oct 10 2025 Alejandro Sáez <asm@redhat.com> - 6.15-3
- rebuild
* Fri Aug 15 2025 Maxwell G <maxwell@gtmx.me> - 6.15-2
- Rebuild for golang-1.25.0
* Sun Aug 03 2025 Robby Callicotte <rcallicotte@fedoraproject.org> - 6.15-1
- Updated to incus-6.15

View file

@ -1,4 +1,4 @@
SHA512 (incus-6.19.1.tar.xz) = ad674c2da425deb5c59847b688e3aa053b1a401920caa25a775795b3cb36d1e30b74f790c719187d1b37dd5c12e4b1cb56f17b6fac946fd3ec83ea5b1000e157
SHA512 (incus-6.15.tar.xz) = 7561abce8eb9c01764aca9bb5477028439c05f6c1c20637f288028be93f4bc0d74a36af76f7ad0e35028dfe40e2a0bb2d7b4a363d1da35fe657072f5d847c78e
SHA512 (swagger-ui-5.21.0-bundle.js) = 984d79438a77a60d2cfc380985adb9b43f629bac8615c3049016795c3caccbb7a326158850db5c0019810fb884ef6f14f423e62aceb9abb5743c2717f25d1cc8
SHA512 (swagger-ui-5.21.0.css) = b7d6bf72e589b35c64545ca5c5dd6486a31b4e5ac76263b86b24b2550219afe55e565b6b3bd8dd2c06fdcdbe13fd4935d96bc8653426681d7bb13aa8c71b203d
SHA512 (swagger-ui-5.21.0-standalone-preset.js) = 3a97d1c95a309da4d97c52f250cbf026c340e39071d259b221c447a90aeaeca25f1e85522c11a9a2d18b49f911172152eac79e15f13224591516d60d6bd5e346