mirror of
https://github.com/containers/podman.git
synced 2025-06-21 01:19:15 +08:00
remove hooks files reference and no varlink-python on f27 or epel
Signed-off-by: baude <bbaude@redhat.com> Closes: #802 Approved by: baude
This commit is contained in:
@ -187,6 +187,7 @@ Provides: bundled(golang(gopkg.in/yaml.v2)) = v2
|
|||||||
libpod provides a library for applications looking to use
|
libpod provides a library for applications looking to use
|
||||||
the Container Pod concept popularized by Kubernetes.
|
the Container Pod concept popularized by Kubernetes.
|
||||||
|
|
||||||
|
%if 0%{?fedora} >= 28
|
||||||
%package -n python3-%{name}
|
%package -n python3-%{name}
|
||||||
Version: 0.1.0
|
Version: 0.1.0
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -198,7 +199,7 @@ Summary: Python 3 bindings for %{name}
|
|||||||
|
|
||||||
%description -n python3-%{name}
|
%description -n python3-%{name}
|
||||||
This package contains Python 3 bindings for %{name}.
|
This package contains Python 3 bindings for %{name}.
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?with_devel}
|
%if 0%{?with_devel}
|
||||||
%package -n libpod-devel
|
%package -n libpod-devel
|
||||||
@ -373,20 +374,23 @@ export BUILDTAGS="selinux seccomp $(hack/btrfs_installed_tag.sh) $(hack/btrfs_ta
|
|||||||
|
|
||||||
GOPATH=$GOPATH BUILDTAGS=$BUILDTAGS %gobuild -o bin/%{name} %{import_path}/cmd/%{name}
|
GOPATH=$GOPATH BUILDTAGS=$BUILDTAGS %gobuild -o bin/%{name} %{import_path}/cmd/%{name}
|
||||||
BUILDTAGS=$BUILDTAGS make binaries docs
|
BUILDTAGS=$BUILDTAGS make binaries docs
|
||||||
|
%if 0%{?fedora} >= 28
|
||||||
#untar contents for python-podman
|
#untar contents for python-podman
|
||||||
pushd contrib/python/dist
|
pushd contrib/python/dist
|
||||||
tar zxf %{name}*.tar.gz
|
tar zxf %{name}*.tar.gz
|
||||||
popd
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -dp %{buildroot}%{_unitdir}
|
install -dp %{buildroot}%{_unitdir}
|
||||||
%make_install PREFIX=%{buildroot}%{_prefix} install install.completions
|
%make_install PREFIX=%{buildroot}%{_prefix} install install.completions
|
||||||
|
|
||||||
|
%if 0%{?fedora} >= 28
|
||||||
#install python-podman
|
#install python-podman
|
||||||
pushd contrib/python
|
pushd contrib/python
|
||||||
%{__python3} setup.py install --root %{buildroot}
|
%{__python3} setup.py install --root %{buildroot}
|
||||||
popd
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
# source codes for building projects
|
# source codes for building projects
|
||||||
%if 0%{?with_devel}
|
%if 0%{?with_devel}
|
||||||
@ -466,11 +470,13 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
|
|||||||
%{_unitdir}/io.%{project}.%{name}.service
|
%{_unitdir}/io.%{project}.%{name}.service
|
||||||
%{_unitdir}/io.%{project}.%{name}.socket
|
%{_unitdir}/io.%{project}.%{name}.socket
|
||||||
|
|
||||||
|
%if 0%{?fedora} >= 28
|
||||||
%files -n python3-%{name}
|
%files -n python3-%{name}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md CONTRIBUTING.md install.md code-of-conduct.md transfer.md
|
%doc README.md CONTRIBUTING.md install.md code-of-conduct.md transfer.md
|
||||||
%dir %{python3_sitelib}
|
%dir %{python3_sitelib}
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?with_devel}
|
%if 0%{?with_devel}
|
||||||
%files -n libpod-devel -f devel.file-list
|
%files -n libpod-devel -f devel.file-list
|
||||||
|
Reference in New Issue
Block a user