2016-10-14 15:33:26 +00:00
|
|
|
%define debug_package %{nil}
|
|
|
|
%global provider github
|
|
|
|
%global provider_tld com
|
|
|
|
%global project kubernetes-incubator
|
|
|
|
%global repo cri-o
|
2017-05-12 13:36:15 +00:00
|
|
|
%global Name crio
|
2016-10-14 15:33:26 +00:00
|
|
|
# https://github.com/kubernetes-incubator/cri-o
|
|
|
|
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
|
|
|
|
%global import_path %{provider_prefix}
|
2016-10-31 19:17:23 +00:00
|
|
|
%global commit 8ba639952a95f2e24cc98987689138b67545576c
|
2016-10-14 15:33:26 +00:00
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
|
|
|
|
Name: %{Name}
|
|
|
|
Version: 0.0.1
|
|
|
|
Release: 1.git%{shortcommit}%{?dist}
|
|
|
|
Summary: Kubelet Container Runtime Interface (CRI) for OCI runtimes.
|
|
|
|
Group: Applications/Text
|
|
|
|
License: Apache 2.0
|
|
|
|
URL: https://%{provider_prefix}
|
|
|
|
Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: golang-github-cpuguy83-go-md2man
|
|
|
|
|
|
|
|
%description
|
2017-05-12 13:36:15 +00:00
|
|
|
The crio package provides an implementation of the
|
2016-10-14 15:33:26 +00:00
|
|
|
Kubelet Container Runtime Interface (CRI) using OCI conformant runtimes.
|
|
|
|
|
2017-05-12 13:36:15 +00:00
|
|
|
crio provides following functionalities:
|
2016-10-14 15:33:26 +00:00
|
|
|
|
|
|
|
Support multiple image formats including the existing Docker image format
|
|
|
|
Support for multiple means to download images including trust & image verification
|
|
|
|
Container image management (managing image layers, overlay filesystems, etc)
|
|
|
|
Container process lifecycle management
|
|
|
|
Monitoring and logging required to satisfy the CRI
|
|
|
|
Resource isolation as required by the CRI
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{repo}-%{commit}
|
|
|
|
|
|
|
|
%build
|
|
|
|
make all
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
%make_install install.systemd
|
|
|
|
|
|
|
|
#define license tag if not already defined
|
|
|
|
%{!?_licensedir:%global license %doc}
|
|
|
|
%files
|
2017-05-12 13:36:15 +00:00
|
|
|
%{_bindir}/crio
|
|
|
|
%{_bindir}/crioctl
|
|
|
|
%{_mandir}/man5/crio.conf.5*
|
|
|
|
%{_mandir}/man8/crio.8*
|
|
|
|
%{_sysconfdir}/crio.conf
|
|
|
|
%dir /%{_libexecdir}/crio
|
|
|
|
/%{_libexecdir}/crio/conmon
|
|
|
|
/%{_libexecdir}/crio/pause
|
|
|
|
%{_unitdir}/crio.service
|
2016-10-14 15:33:26 +00:00
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun %{Name}
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart %{Name}
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Mon Oct 31 2016 Dan Walsh <dwalsh@redhat.com> - 0.0.1
|
|
|
|
- Initial RPM release
|
|
|
|
|