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} %pyproject_save_files %{pypi_name}
%endif %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} %files -n python%{python3_pkgversion}-%{pypi_name} -f %{pyproject_files}
%license LICENSE %license LICENSE
%doc README.md %doc README.md
%endif
%changelog %changelog
%autochangelog %autochangelog