centos8 conditionals for file listings

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2022-03-09 15:06:26 -05:00
parent ffa67d5bf4
commit 3811bf759d

View File

@ -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