From 74ccd9ce5f29a1df4ffe70b4d8bd00c29d5d9d15 Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Thu, 12 Jul 2018 19:26:14 -0700 Subject: Update python directories to better support setup.py Signed-off-by: Jhon Honce --- contrib/spec/podman.spec.in | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) (limited to 'contrib/spec/podman.spec.in') diff --git a/contrib/spec/podman.spec.in b/contrib/spec/podman.spec.in index 7a5c1be85..9d8acce23 100644 --- a/contrib/spec/podman.spec.in +++ b/contrib/spec/podman.spec.in @@ -209,6 +209,22 @@ Summary: Python 3 bindings for %{name} %description -n python3-%{name} This package contains Python 3 bindings for %{name}. + +%package -n python3-py%{name} +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-varlink + +Requires: python3-setuptools +Requires: python3-varlink +Requires: python3-dateutil + +Provides: python3-py%{name} = %{version}-%{release} +Summary: Python 3 tool for %{name} + +%description -n python3-py%{name} +This package contains Python 3 tool for %{name}. %endif # varlink %if 0%{?with_devel} @@ -389,7 +405,12 @@ BUILDTAGS=$BUILDTAGS make binaries docs %if %{with varlink} #untar contents for python-podman -pushd contrib/python/dist +pushd contrib/python/podman/dist +tar zxf %{name}*.tar.gz +popd + +#untar contents for python-pypodman +pushd contrib/python/pypodman/dist tar zxf %{name}*.tar.gz popd %endif #varlink @@ -400,7 +421,12 @@ install -dp %{buildroot}%{_unitdir} %if %{with varlink} #install python-podman -pushd contrib/python +pushd contrib/python/podman +%{__python3} setup.py install --root %{buildroot} +popd + +#install python-pypodman +pushd contrib/python/pypodman %{__python3} setup.py install --root %{buildroot} popd %endif #varlink -- cgit v1.2.3-54-g00ecf