buildah-1.39.0-2.el9
- sync spec with upstream - Related: RHEL-60277 Signed-off-by: Jindrich Novy <jnovy@redhat.com>
This commit is contained in:
parent
6abf19940c
commit
6350b40a10
28
buildah.spec
28
buildah.spec
@ -7,21 +7,16 @@
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# RHEL's default %%gobuild macro doesn't account for the BUILDTAGS variable, so we
|
|
||||||
# set it separately here and do not depend on RHEL's go-[s]rpm-macros package
|
|
||||||
# until that's fixed.
|
|
||||||
# c9s bz: https://bugzilla.redhat.com/show_bug.cgi?id=2227328
|
|
||||||
# c8s bz: https://bugzilla.redhat.com/show_bug.cgi?id=2227331
|
|
||||||
%if %{defined rhel}
|
|
||||||
%define gobuild(o:) go build -buildmode pie -compiler gc -tags="rpm_crashtraceback libtrust_openssl ${BUILDTAGS:-}" -ldflags "-linkmode=external -compressdwarf=false ${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%global gomodulesmode GO111MODULE=on
|
%global gomodulesmode GO111MODULE=on
|
||||||
|
|
||||||
%if 0%{defined fedora}
|
%if %{defined fedora}
|
||||||
%define build_with_btrfs 1
|
%define build_with_btrfs 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{defined rhel}
|
||||||
|
%define fips 1
|
||||||
|
%endif
|
||||||
|
|
||||||
%global git0 https://github.com/containers/%{name}
|
%global git0 https://github.com/containers/%{name}
|
||||||
|
|
||||||
Name: buildah
|
Name: buildah
|
||||||
@ -40,7 +35,7 @@ Epoch: 2
|
|||||||
Version: 1.39.0
|
Version: 1.39.0
|
||||||
# The `AND` needs to be uppercase in the License for SPDX compatibility
|
# The `AND` needs to be uppercase in the License for SPDX compatibility
|
||||||
License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
|
License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
%if %{defined golang_arches_future}
|
%if %{defined golang_arches_future}
|
||||||
ExclusiveArch: %{golang_arches_future}
|
ExclusiveArch: %{golang_arches_future}
|
||||||
%else
|
%else
|
||||||
@ -129,6 +124,10 @@ export BUILDTAGS="seccomp $(hack/systemd_tag.sh) $(hack/libsubid_tag.sh)"
|
|||||||
export BUILDTAGS+=" btrfs_noversion exclude_graphdriver_btrfs"
|
export BUILDTAGS+=" btrfs_noversion exclude_graphdriver_btrfs"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{defined fips}
|
||||||
|
export BUILDTAGS+=" libtrust_openssl"
|
||||||
|
%endif
|
||||||
|
|
||||||
%gobuild -o bin/%{name} ./cmd/%{name}
|
%gobuild -o bin/%{name} ./cmd/%{name}
|
||||||
%gobuild -o bin/imgtype ./tests/imgtype
|
%gobuild -o bin/imgtype ./tests/imgtype
|
||||||
%gobuild -o bin/copy ./tests/copy
|
%gobuild -o bin/copy ./tests/copy
|
||||||
@ -151,6 +150,9 @@ rm %{buildroot}%{_datadir}/%{name}/test/system/tools/build/*
|
|||||||
#define license tag if not already defined
|
#define license tag if not already defined
|
||||||
%{!?_licensedir:%global license %doc}
|
%{!?_licensedir:%global license %doc}
|
||||||
|
|
||||||
|
# Include check to silence rpmlint.
|
||||||
|
%check
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE vendor/modules.txt
|
%license LICENSE vendor/modules.txt
|
||||||
%doc README.md
|
%doc README.md
|
||||||
@ -169,6 +171,10 @@ rm %{buildroot}%{_datadir}/%{name}/test/system/tools/build/*
|
|||||||
%{_datadir}/%{name}/test
|
%{_datadir}/%{name}/test
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 13 2025 Jindrich Novy <jnovy@redhat.com> - 2:1.39.0-2
|
||||||
|
- sync spec with upstream
|
||||||
|
- Related: RHEL-60277
|
||||||
|
|
||||||
* Tue Feb 04 2025 Jindrich Novy <jnovy@redhat.com> - 2:1.39.0-1
|
* Tue Feb 04 2025 Jindrich Novy <jnovy@redhat.com> - 2:1.39.0-1
|
||||||
- update to https://github.com/containers/buildah/releases/tag/v1.39.0
|
- update to https://github.com/containers/buildah/releases/tag/v1.39.0
|
||||||
- Related: RHEL-60277
|
- Related: RHEL-60277
|
||||||
|
Loading…
Reference in New Issue
Block a user