podman-2:1.3.2-0.13.dev.git6d285b8
- Resolves: #1716809 - use conmon v0.2.0 Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
parent
18e5f1a05f
commit
afbd7741fe
1
.gitignore
vendored
1
.gitignore
vendored
@ -252,3 +252,4 @@
|
|||||||
/libpod-0ede794.tar.gz
|
/libpod-0ede794.tar.gz
|
||||||
/libpod-3fb9669.tar.gz
|
/libpod-3fb9669.tar.gz
|
||||||
/libpod-6d285b8.tar.gz
|
/libpod-6d285b8.tar.gz
|
||||||
|
/conmon-5995229.tar.gz
|
||||||
|
40
podman.spec
40
podman.spec
@ -25,29 +25,22 @@
|
|||||||
%global commit0 6d285b879c3fa252545b15a3dea816426ba2c610
|
%global commit0 6d285b879c3fa252545b15a3dea816426ba2c610
|
||||||
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
||||||
|
|
||||||
%global import_path_conmon github.com/kubernetes-sigs/cri-o
|
%global import_path_conmon github.com/containers/conmon
|
||||||
%global git_conmon https://%{import_path_conmon}
|
%global git_conmon https://%{import_path_conmon}
|
||||||
%global commit_conmon a30f93ca229c7fc68fb1d8c7a3342de3c3f54ae5
|
%global commit_conmon 59952292a3b07ac125575024ae21956efe0ecdfb
|
||||||
%global shortcommit_conmon %(c=%{commit_conmon}; echo ${c:0:7})
|
%global shortcommit_conmon %(c=%{commit_conmon}; echo ${c:0:7})
|
||||||
|
|
||||||
Name: podman
|
Name: podman
|
||||||
# Epoch is 2 for f30 (rawhide), 1 for f28 and f29
|
|
||||||
# BEWARE while using on other distros
|
|
||||||
%if 0%{?fedora} >= 30
|
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
%else
|
|
||||||
Epoch: 1
|
|
||||||
%endif
|
|
||||||
Version: 1.3.2
|
Version: 1.3.2
|
||||||
# Rawhide almost always ships unreleased builds,
|
# Rawhide almost always ships unreleased builds,
|
||||||
# so release tag should be of the form 0.N.blahblah
|
# so release tag should be of the form 0.N.blahblah
|
||||||
Release: 0.12.dev.git%{shortcommit0}%{?dist}
|
Release: 0.13.dev.git%{shortcommit0}%{?dist}
|
||||||
Summary: Manage Pods, Containers and Container Images
|
Summary: Manage Pods, Containers and Container Images
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://%{name}.io/
|
URL: https://%{name}.io/
|
||||||
Source0: %{git0}/archive/%{commit0}/%{repo}-%{shortcommit0}.tar.gz
|
Source0: %{git0}/archive/%{commit0}/%{repo}-%{shortcommit0}.tar.gz
|
||||||
Source1: %{git_conmon}/archive/%{commit_conmon}/cri-o-%{shortcommit_conmon}.tar.gz
|
Source1: %{git_conmon}/archive/%{commit_conmon}/conmon-%{shortcommit_conmon}.tar.gz
|
||||||
ExclusiveArch: aarch64 ppc64le s390x x86_64
|
|
||||||
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
|
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
|
||||||
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
|
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
|
||||||
BuildRequires: btrfs-progs-devel
|
BuildRequires: btrfs-progs-devel
|
||||||
@ -68,7 +61,7 @@ BuildRequires: systemd
|
|||||||
BuildRequires: systemd-devel
|
BuildRequires: systemd-devel
|
||||||
Requires: runc >= 2:1.0.0-57
|
Requires: runc >= 2:1.0.0-57
|
||||||
Requires: containers-common
|
Requires: containers-common
|
||||||
Requires: containernetworking-plugins >= 0.7.3-2
|
Requires: containernetworking-plugins >= 0.7.5-1
|
||||||
Requires: iptables
|
Requires: iptables
|
||||||
Requires: nftables
|
Requires: nftables
|
||||||
# #1686813 - conmon hasn't been made independent yet
|
# #1686813 - conmon hasn't been made independent yet
|
||||||
@ -428,16 +421,8 @@ export BUILDTAGS="remoteclient systemd varlink seccomp exclude_graphdriver_devic
|
|||||||
%gobuild -o bin/%{name}-remote %{import_path}/cmd/%{name}
|
%gobuild -o bin/%{name}-remote %{import_path}/cmd/%{name}
|
||||||
|
|
||||||
# build conmon
|
# build conmon
|
||||||
pushd cri-o-%{commit_conmon}
|
pushd conmon-%{commit_conmon}
|
||||||
mkdir _output
|
%{__make} all
|
||||||
pushd _output
|
|
||||||
mkdir -p src/%{provider}.%{provider_tld}/{kubernetes-sigs,opencontainers}
|
|
||||||
ln -s $(dirs +1 -l) src/%{import_path_conmon}
|
|
||||||
popd
|
|
||||||
ln -s vendor src
|
|
||||||
export GOPATH=$(pwd)/_output:$(pwd)
|
|
||||||
export BUILDTAGS="selinux seccomp $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh) containers_image_ostree_stub"
|
|
||||||
BUILDTAGS=$BUILDTAGS %{__make} -C conmon
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -458,8 +443,11 @@ install -dp %{buildroot}%{_datadir}/containers
|
|||||||
install -p -m 644 %{repo}.conf %{buildroot}%{_datadir}/containers
|
install -p -m 644 %{repo}.conf %{buildroot}%{_datadir}/containers
|
||||||
|
|
||||||
# install conmon
|
# install conmon
|
||||||
|
pushd conmon-%{commit_conmon}
|
||||||
|
%{__make} LIBEXECDIR=%{buildroot}%{_libexecdir} install
|
||||||
install -dp %{buildroot}%{_libexecdir}/%{name}
|
install -dp %{buildroot}%{_libexecdir}/%{name}
|
||||||
install -p -m 755 cri-o-%{commit_conmon}/bin/conmon %{buildroot}%{_libexecdir}/%{name}
|
install -p -m 755 bin/conmon %{buildroot}%{_libexecdir}/%{name}
|
||||||
|
popd
|
||||||
|
|
||||||
# source codes for building projects
|
# source codes for building projects
|
||||||
%if 0%{?with_devel}
|
%if 0%{?with_devel}
|
||||||
@ -546,6 +534,8 @@ exit 0
|
|||||||
%{_datadir}/zsh/site-functions/_%{name}
|
%{_datadir}/zsh/site-functions/_%{name}
|
||||||
%dir %{_libexecdir}/%{name}
|
%dir %{_libexecdir}/%{name}
|
||||||
%{_libexecdir}/%{name}/conmon
|
%{_libexecdir}/%{name}/conmon
|
||||||
|
%dir %{_libexecdir}/crio
|
||||||
|
%{_libexecdir}/crio/conmon
|
||||||
%config(noreplace) %{_sysconfdir}/cni/net.d/87-%{name}-bridge.conflist
|
%config(noreplace) %{_sysconfdir}/cni/net.d/87-%{name}-bridge.conflist
|
||||||
%{_datadir}/containers/%{repo}.conf
|
%{_datadir}/containers/%{repo}.conf
|
||||||
%{_unitdir}/io.%{name}.service
|
%{_unitdir}/io.%{name}.service
|
||||||
@ -570,6 +560,7 @@ exit 0
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files remote
|
%files remote
|
||||||
|
%license LICENSE
|
||||||
%{_bindir}/%{name}-remote
|
%{_bindir}/%{name}-remote
|
||||||
|
|
||||||
%files tests
|
%files tests
|
||||||
@ -577,6 +568,9 @@ exit 0
|
|||||||
%{_datadir}/%{name}/test
|
%{_datadir}/%{name}/test
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 07 2019 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2:1.3.2-0.13.dev.git6d285b8
|
||||||
|
- Resolves: #1716809 - use conmon v0.2.0
|
||||||
|
|
||||||
* Thu Jun 06 2019 Lokesh Mandvekar (Bot) <lsm5+bot@fedoraproject.org> - 2:1.3.2-0.12.dev.git6d285b8
|
* Thu Jun 06 2019 Lokesh Mandvekar (Bot) <lsm5+bot@fedoraproject.org> - 2:1.3.2-0.12.dev.git6d285b8
|
||||||
- autobuilt 6d285b8
|
- autobuilt 6d285b8
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1,2 +1,2 @@
|
|||||||
SHA512 (cri-o-a30f93c.tar.gz) = 8bfa291fe3720259b63abaae5b0e50574a3437e1742c84fca36ff325d046ddd81a406a26fe0a3c4760b4c69a7e065a9b1ac550f2e061b45aadc7faf4702b798d
|
SHA512 (conmon-5995229.tar.gz) = 9b739acdf6ba4ec24fa9e2ca60843e236a93f7b641b202459d0efde49928a3f803bc2fab6c626ea56bd5f34ef079f6f3123abd5660c9cbc1de9cc5b4648f8f51
|
||||||
SHA512 (libpod-6d285b8.tar.gz) = 67ccdf0ce69ece8c4cc6758af7b6f9b785f7d23dc09dba9eefdcf5d82bbf104a13c9faec033801d94e685af738fa8deab6810d6550bc3ea68e4f317c4fb512a5
|
SHA512 (libpod-6d285b8.tar.gz) = 67ccdf0ce69ece8c4cc6758af7b6f9b785f7d23dc09dba9eefdcf5d82bbf104a13c9faec033801d94e685af738fa8deab6810d6550bc3ea68e4f317c4fb512a5
|
||||||
|
Loading…
Reference in New Issue
Block a user