adjust dependencies for centos on podman4 copr
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
parent
f9e2fdf2f7
commit
686d06f96c
@ -19,9 +19,25 @@ BuildArch: noarch
|
|||||||
%desc
|
%desc
|
||||||
|
|
||||||
%package -n python%{python3_pkgversion}-%{pypi_name}
|
%package -n python%{python3_pkgversion}-%{pypi_name}
|
||||||
BuildRequires: pyproject-rpm-macros
|
|
||||||
BuildRequires: python3-devel
|
|
||||||
BuildRequires: git-core
|
BuildRequires: git-core
|
||||||
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
|
# Handle centos conditionals for podman4 copr
|
||||||
|
%if 0%{?fedora}
|
||||||
|
BuildRequires: pyproject-rpm-macros
|
||||||
|
%else
|
||||||
|
BuildRequires: python%{python3_pkgversion}-pyxdg
|
||||||
|
BuildRequires: python%{python3_pkgversion}-requests
|
||||||
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||||
|
Requires: python%{python3_pkgversion}-pyxdg
|
||||||
|
Requires: python%{python3_pkgversion}-requests
|
||||||
|
%if %{?rhel} >= 9
|
||||||
|
BuildRequires: python%{python3_pkgversion}-toml
|
||||||
|
Requires: python%{python3_pkgversion}-toml
|
||||||
|
%else
|
||||||
|
BuildRequires: python%{python3_pkgversion}-pytoml
|
||||||
|
Requires: python%{python3_pkgversion}-pytoml
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
Provides: %{pypi_name}-py = %{version}-%{release}
|
Provides: %{pypi_name}-py = %{version}-%{release}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
||||||
|
Loading…
Reference in New Issue
Block a user