From 130fdcbff8350385220a8ca8d6b89f9c0cedca4d Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Fri, 25 Feb 2022 13:49:36 -0500 Subject: [PATCH] add checks for centos to account for rhcontainerbot/podman4 copr Signed-off-by: Lokesh Mandvekar --- podman.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/podman.spec b/podman.spec index 19ce20b..ab4d88c 100644 --- a/podman.spec +++ b/podman.spec @@ -47,7 +47,9 @@ Source0: %{git0}/archive/%{built_tag}.tar.gz Source1: %{git_plugins}/archive/%{commit_plugins}/%{repo_plugins}-%{shortcommit_plugins}.tar.gz Source2: %{git_gvproxy}/archive/%{commit_gvproxy}/%{repo_gvproxy}-%{shortcommit_gvproxy}.tar.gz Provides: %{name}-manpages = %{epoch}:%{version}-%{release} +%if ! 0%{?centos} BuildRequires: btrfs-progs-devel +%endif BuildRequires: gcc BuildRequires: golang >= 1.16.6 BuildRequires: glib2-devel @@ -260,10 +262,7 @@ LDFLAGS="-X %{import_path}/libpod/define.buildInfo=$(date +%s)" %gobuild -o bin/rootlessport %{import_path}/cmd/rootlessport # build %%{name} -export BUILDTAGS="seccomp exclude_graphdriver_devicemapper $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh) $(hack/libdm_tag.sh) $(hack/selinux_tag.sh) $(hack/systemd_tag.sh)" -%if 0%{?fedora} >= 35 -export BUILDTAGS+=" $(hack/libsubid_tag.sh)" -%endif +export BUILDTAGS="seccomp exclude_graphdriver_devicemapper $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh) $(hack/libdm_tag.sh) $(hack/selinux_tag.sh) $(hack/systemd_tag.sh) $(hack/libsubid_tag.sh)" %gobuild -o bin/%{name} %{import_path}/cmd/%{name}