Disable btrfs in RHEL builds

btrfs-progs is not supported on RHEL.  BUILDTAGS is already set properly
to compile if not present.
This commit is contained in:
Yaakov Selkowitz 2023-04-24 19:16:03 -04:00
parent a4c6b7d041
commit fb6959e0d6

View File

@ -7,6 +7,12 @@
%global debug_package %{nil}
%endif
%if 0%{?rhel}
%bcond_with btrfs
%else
%bcond_without btrfs
%endif
%global provider github
%global provider_tld com
%global project containers
@ -48,7 +54,9 @@ Source2: %{git_gvproxy}/archive/%{commit_gvproxy}/%{repo_gvproxy}-%{commit_gvpro
Provides: %{name}-manpages = %{epoch}:%{version}-%{release}
BuildRequires: gettext-envsubst
BuildRequires: go-md2man
%if %{with btrfs}
BuildRequires: btrfs-progs-devel
%endif
BuildRequires: gcc
BuildRequires: glib2-devel
BuildRequires: glibc-devel