Disable btrfs in RHEL builds
btrfs-progs is not supported on RHEL.
This commit is contained in:
parent
afcfd40316
commit
d8a3cc228a
12
skopeo.spec
12
skopeo.spec
@ -7,6 +7,12 @@
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?rhel}
|
||||||
|
%bcond_with btrfs
|
||||||
|
%else
|
||||||
|
%bcond_without btrfs
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?fedora} && ! 0%{?rhel}
|
%if 0%{?fedora} && ! 0%{?rhel}
|
||||||
%define conditional_epoch 1
|
%define conditional_epoch 1
|
||||||
%else
|
%else
|
||||||
@ -36,7 +42,9 @@ URL: %{git0}
|
|||||||
# Tarball fetched from upstream
|
# Tarball fetched from upstream
|
||||||
Source0: %{url}/archive/%{built_tag}.tar.gz
|
Source0: %{url}/archive/%{built_tag}.tar.gz
|
||||||
BuildRequires: go-md2man
|
BuildRequires: go-md2man
|
||||||
|
%if %{with btrfs}
|
||||||
BuildRequires: btrfs-progs-devel
|
BuildRequires: btrfs-progs-devel
|
||||||
|
%endif
|
||||||
BuildRequires: git-core
|
BuildRequires: git-core
|
||||||
BuildRequires: golang >= 1.16.6
|
BuildRequires: golang >= 1.16.6
|
||||||
BuildRequires: go-rpm-macros
|
BuildRequires: go-rpm-macros
|
||||||
@ -110,6 +118,10 @@ export CGO_CFLAGS="$CGO_CFLAGS -m64 -mtune=generic -fcf-protection=full"
|
|||||||
export GOPATH=$(pwd)/_build:$(pwd)
|
export GOPATH=$(pwd)/_build:$(pwd)
|
||||||
export CGO_CFLAGS=$CFLAGS
|
export CGO_CFLAGS=$CFLAGS
|
||||||
|
|
||||||
|
%if %{without btrfs}
|
||||||
|
export BUILDTAGS="exclude_graphdriver_btrfs btrfs_noversion"
|
||||||
|
%endif
|
||||||
|
|
||||||
# unset LDFLAGS earlier set from set_build_flags
|
# unset LDFLAGS earlier set from set_build_flags
|
||||||
LDFLAGS=''
|
LDFLAGS=''
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user