Dominique Leuenberger 2018-12-18 13:58:56 +00:00 committed by Git OBS Bridge
commit e272711e8d
6 changed files with 55 additions and 13 deletions

View File

@ -4,8 +4,8 @@
<param name="url">https://github.com/kubernetes-sigs/cri-tools.git</param> <param name="url">https://github.com/kubernetes-sigs/cri-tools.git</param>
<param name="scm">git</param> <param name="scm">git</param>
<param name="filename">cri-tools</param> <param name="filename">cri-tools</param>
<param name="versionformat">1.12.0</param> <param name="versionformat">1.13.0</param>
<param name="revision">v1.12.0</param> <param name="revision">v1.13.0</param>
</service> </service>
<service name="recompress" mode="disabled"> <service name="recompress" mode="disabled">

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9c91c71a75d43d95fc6a5f2d93a8ed9a4a4d26ad3f6068c80a1925f3a75e3591
size 1438824

3
cri-tools-1.13.0.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5f539d42b4283f466239f9504d5620c04fb7f73b1f3861c855fedcd63b1409e0
size 1481804

View File

@ -1,3 +1,31 @@
-------------------------------------------------------------------
Mon Dec 17 08:14:45 UTC 2018 - Sascha Grunert <sgrunert@suse.com>
- Added `rpmlintrc` to spec file
-------------------------------------------------------------------
Fri Dec 14 10:51:01 UTC 2018 - Sascha Grunert <sgrunert@suse.com>
- Update cri-tools to v1.13.0:
* CRI CLI (crictl):
* Adds --auth options for pull command
* Fixes URL parsing for exec and attach
* Upgrades Go version to 1.11.1
* Enables Windows CI on travis
* Switches Windows default endpoints to npipe
* Updates version matrix information for the project
* Adds container name filter to ps command
* Adds metadata to filters
* Prints annotations and labels for inspect command
* CRI validation testing (critest)
* Add tests for multiple containers in a pod
* Adds runtime handler support for critest
* Adds exec sync timeout test cases
* Fixes readonly filesystem test cases
- Add `crictl.yaml` to install directory
- Fix build for ppc64
- Require golang >= 1.11
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 13 07:50:12 UTC 2018 - Valentin Rothberg <vrothberg@suse.com> Tue Nov 13 07:50:12 UTC 2018 - Valentin Rothberg <vrothberg@suse.com>

View File

@ -17,18 +17,21 @@
%define project github.com/kubernetes-sigs/cri-tools %define project github.com/kubernetes-sigs/cri-tools
%define name_source1 crictl.yaml
Name: cri-tools Name: cri-tools
Version: 1.12.0 Version: 1.13.0
Release: 0 Release: 0
Summary: CLI and validation tools for Kubelet Container Runtime Interface Summary: CLI and validation tools for Kubelet Container Runtime Interface
License: Apache-2.0 License: Apache-2.0
Group: System/Management Group: System/Management
Url: https://github.com/kubernetes-sigs/cri-tools Url: https://github.com/kubernetes-sigs/cri-tools
Source0: %{name}-%{version}.tar.xz Source0: %{name}-%{version}.tar.xz
Source1: crictl.yaml Source1: %{name_source1}
Source2: rpmlintrc
BuildRequires: go-go-md2man BuildRequires: go-go-md2man
BuildRequires: golang-packaging BuildRequires: golang-packaging
BuildRequires: golang(API) >= 1.10 BuildRequires: golang(API) >= 1.11
# disable stripping of binaries # disable stripping of binaries
%{go_nostrip} %{go_nostrip}
@ -48,16 +51,23 @@ rm -rf $HOME/go/src/%{project}/*
cp -avr * $HOME/go/src/%{project} cp -avr * $HOME/go/src/%{project}
cd $HOME/go/src/%{project} cd $HOME/go/src/%{project}
go build -buildmode=pie \ export BUILDMODE_ARGS="-buildmode=pie"
# the buildmode pie is currently not supported for ppc64
if [ %{_arch} = "ppc64" ]; then
unset BUILDMODE_ARGS
fi
go build $BUILDMODE_ARGS \
-o bin/crictl \ -o bin/crictl \
-ldflags '-X %{project}/pkg/version.Version=%{version}' \ -ldflags '-X %{project}/pkg/version.Version=%{version}' \
%{project}/cmd/crictl %{project}/cmd/crictl
go test -buildmode=pie \ go test $BUILDMODE_ARGS \
-o bin/critest \ -o bin/critest \
-ldflags '-X %{project}/pkg/version.Version=%{version}' \ -ldflags '-X %{project}/pkg/version.Version=%{version}' \
-c %{project}/cmd/critest -c %{project}/cmd/critest
# compile the manpages # compile the manpages
for md in docs/*.md for md in docs/*.md
do do
@ -77,12 +87,14 @@ install -D -m 0644 docs/crictl.1 %{buildroot}/%{_mandir}/man1/crictl.1
install -D -m 0644 docs/benchmark.1 %{buildroot}/%{_mandir}/man1/critest-benchmark.1 install -D -m 0644 docs/benchmark.1 %{buildroot}/%{_mandir}/man1/critest-benchmark.1
install -D -m 0644 docs/validation.1 %{buildroot}/%{_mandir}/man1/critest-validation.1 install -D -m 0644 docs/validation.1 %{buildroot}/%{_mandir}/man1/critest-validation.1
install -D -m 0644 crictl-completion %{buildroot}/%{_datadir}/bash-completion/completions/crictl install -D -m 0644 crictl-completion %{buildroot}/%{_datadir}/bash-completion/completions/crictl
install -D -m 0644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/%{name_source1}
%files %files
%{_bindir}/crictl %{_bindir}/crictl
%{_bindir}/critest %{_bindir}/critest
%{_mandir}/man1/* %{_mandir}/man1/*
%{_datadir}/bash-completion/completions/crictl %{_datadir}/bash-completion/completions/crictl
%config(noreplace) %{_sysconfdir}/%{name_source1}
%license LICENSE %license LICENSE
%changelog %changelog

2
rpmlintrc Normal file
View File

@ -0,0 +1,2 @@
addFilter("unstripped-binary-or-object")
addFilter("no-version-in-last-changelog")