From 3811bf759dd20bef46b222618a9da07633c96929 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Wed, 9 Mar 2022 15:06:26 -0500 Subject: [PATCH] centos8 conditionals for file listings Signed-off-by: Lokesh Mandvekar --- python-podman.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/python-podman.spec b/python-podman.spec index c5e303c..771701f 100644 --- a/python-podman.spec +++ b/python-podman.spec @@ -65,9 +65,17 @@ export PBR_VERSION="0.0.0" %pyproject_save_files %{pypi_name} %endif +%if 0%{?rhel} <= 8 +%files -n python3-podman +%license LICENSE +%doc README.md +%{python3_sitelib}/podman/* +%{python3_sitelib}/podman-*/* +%else %files -n python%{python3_pkgversion}-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.md +%endif %changelog %autochangelog