mirror of
https://github.com/containers/skopeo.git
synced 2025-09-21 09:57:19 +00:00
RPM: Re-org distro conditionals
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
This commit is contained in:
committed by
Miloslav Trmač
parent
af27d1d877
commit
85e4414c43
@@ -9,21 +9,15 @@
|
|||||||
|
|
||||||
%global gomodulesmode GO111MODULE=on
|
%global gomodulesmode GO111MODULE=on
|
||||||
|
|
||||||
# No btrfs on RHEL
|
# Distro and environment conditionals
|
||||||
%if %{defined fedora}
|
%if %{defined fedora}
|
||||||
|
# Fedora conditionals
|
||||||
%define build_with_btrfs 1
|
%define build_with_btrfs 1
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{defined rhel}
|
|
||||||
%define fips 1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Only used in official koji builds
|
|
||||||
# Copr builds set a separate epoch for all environments
|
|
||||||
%if %{defined fedora}
|
|
||||||
%define conditional_epoch 1
|
%define conditional_epoch 1
|
||||||
%else
|
%else
|
||||||
|
# RHEL conditionals
|
||||||
%define conditional_epoch 2
|
%define conditional_epoch 2
|
||||||
|
%define fips 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# set higher Epoch only for podman-next builds
|
# set higher Epoch only for podman-next builds
|
||||||
|
Reference in New Issue
Block a user