!17 Resolve go-md2man dependency

From: @ultra_planet
Reviewed-by: @si-gui,@small_leek,@caihaomin
Signed-off-by: @caihaomin
This commit is contained in:
openeuler-ci-bot 2021-02-18 17:01:27 +08:00 committed by Gitee
commit 1c1ca6fbaa
2 changed files with 12 additions and 3 deletions

View File

@ -1,13 +1,14 @@
Name: podman Name: podman
Version: 0.10.1 Version: 0.10.1
Release: 6 Release: 7
Summary: A daemonless container engine for managing Containers Summary: A daemonless container engine for managing Containers
Epoch: 1 Epoch: 1
License: ASL 2.0 License: ASL 2.0
URL: https://podman.io/ URL: https://podman.io/
Source0: https://github.com/containers/libpod/archive/e4a155328fb88590fafd3d4e845f9bca49133f62/libpod-e4a1553.tar.gz Source0: https://github.com/containers/libpod/archive/e4a155328fb88590fafd3d4e845f9bca49133f62/libpod-e4a1553.tar.gz
Source1: https://github.com/cpuguy83/go-md2man/archive/v1.0.10.tar.gz
BuildRequires: golang btrfs-progs-devel glib2-devel glibc-devel glibc-static BuildRequires: golang btrfs-progs-devel glib2-devel glibc-devel glibc-static
BuildRequires: git go-md2man gpgme-devel libassuan-devel libgpg-error-devel libseccomp-devel BuildRequires: git gpgme-devel libassuan-devel libgpg-error-devel libseccomp-devel
BuildRequires: libselinux-devel ostree-devel pkgconfig make BuildRequires: libselinux-devel ostree-devel pkgconfig make
Requires: docker-runc containers-common containernetworking-plugins >= 0.7.3-2 iptables nftables conmon Requires: docker-runc containers-common containernetworking-plugins >= 0.7.3-2 iptables nftables conmon
Recommends: container-selinux >= 2:2.71 slirp4netns Recommends: container-selinux >= 2:2.71 slirp4netns
@ -155,9 +156,14 @@ sed -i '/\/bin\/env/d' completions/bash/%{name}
sed -i 's/0.0.0/%{version}/' contrib/python/%{name}/setup.py sed -i 's/0.0.0/%{version}/' contrib/python/%{name}/setup.py
sed -i 's/0.0.0/%{version}/' contrib/python/py%{name}/setup.py sed -i 's/0.0.0/%{version}/' contrib/python/py%{name}/setup.py
mv pkg/hooks/README.md pkg/hooks/README-hooks.md mv pkg/hooks/README.md pkg/hooks/README-hooks.md
tar -xf %SOURCE1
%build %build
mkdir _build mkdir -p _build/bin _output/bin
cd go-md2man-*
go build -mod=vendor -o ../_build/bin/go-md2man .
cp ../_build/bin/go-md2man ../_output/bin/go-md2man
cd -
cd _build cd _build
mkdir -p src/github.com/containers mkdir -p src/github.com/containers
ln -s ../../../../ src/github.com/containers/libpod ln -s ../../../../ src/github.com/containers/libpod
@ -212,6 +218,9 @@ install -Dp -m644 libpod.conf %{buildroot}%{_datadir}/containers/libpod.conf
%{_mandir}/man5/*.5* %{_mandir}/man5/*.5*
%changelog %changelog
* Thu Feb 18 2021 lingsheng <lingsheng@huawei.com> - 1:0.10.1-7
- Resolve go-md2man dependency
* Mon Feb 8 2021 lingsheng <lingsheng@huawei.com> - 1:0.10.1-6 * Mon Feb 8 2021 lingsheng <lingsheng@huawei.com> - 1:0.10.1-6
- Change BuildRequires to golang - Change BuildRequires to golang

BIN
v1.0.10.tar.gz Normal file

Binary file not shown.