Hello community, here is the log from the commit of package runc for openSUSE:Factory checked in at 2016-08-18 09:18:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/runc (Old) and /work/SRC/openSUSE:Factory/.runc.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "runc" Changes: -------- --- /work/SRC/openSUSE:Factory/runc/runc.changes 2016-07-30 00:27:43.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.runc.new/runc.changes 2016-08-18 09:18:09.000000000 +0200 @@ -1,0 +2,9 @@ +Wed Aug 17 10:29:15 UTC 2016 - cbrau...@suse.de + +- Add runc-test package which contains the source code and the test. This + package will be used to run the integration tests. +- Simplify package build and check sections: Instead of symlinking we default to + cp -avr. go list gets confused by symlinks hence, we need to copy the source + code anyway if we want to run unit tests during package build at some point. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ runc.spec ++++++ --- /var/tmp/diff_new_pack.ol4TnP/_old 2016-08-18 09:18:10.000000000 +0200 +++ /var/tmp/diff_new_pack.ol4TnP/_new 2016-08-18 09:18:10.000000000 +0200 @@ -57,16 +57,40 @@ of Docker. It was originally designed to be a replacement for LXC within Docker, and has grown to become a separate project entirely. +%package test +Summary: Test package for runc +Group: System/Management +%ifarch %go_arches +Requires: go >= 1.5 +Requires: go-go-md2man +%else +Requires: gcc5-go >= 5.0 +%endif +Requires: libapparmor-devel +# Seccomp isn't supported on aarch64. +%ifnarch aarch64 +Requires: libseccomp-devel +%endif +Requires: libselinux-devel +Recommends: criu +BuildArch: noarch + +%description test +Test package for runc. It contains the source code and the tests. + %prep %setup -q -n %{name}-%{version} # Apply the vendor'd patch to the right subdirectory. %patch0 -p1 -d Godeps/_workspace/src/github.com/seccomp/libseccomp-golang %build -# Create buildir, -export GOPATH=$PWD/Godeps/_workspace -mkdir -pv $GOPATH/src/github.com/opencontainers/ -ln -svfn $PWD $GOPATH/src/github.com/opencontainers/runc +# Do not use symlinks. If you want to run the unit tests for this package at +# some point during the build and you need to directly use go list directly it +# will get confused by symlinks. +export GOPATH=${HOME}/go:${HOME}/go/src/github.com/opencontainers/runc/Godeps/_workspace:${GOPATH} +mkdir -pv $HOME/go/src/github.com/opencontainers/runc +rm -rf $HOME/go/src/github.com/opencontainers/runc/* +cp -avr * $HOME/go/src/github.com/opencontainers/runc # Build all features. export BUILDTAGS="apparmor selinux" @@ -86,6 +110,8 @@ %install %{__install} -D -m755 %{name}-%{version} %{buildroot}%{_sbindir}/%{name} +install -d -m755 %{buildroot}/usr/src/runc/ +cp -avr $HOME/go/src/github.com/opencontainers/runc/* %{buildroot}/usr/src/runc/ %ifarch %go_arches %{__install} -d -m755 %{buildroot}%{_mandir}/man8 @@ -101,4 +127,10 @@ %{_mandir}/man8/runc*.8.gz %endif +%files test +%defattr(-,root,root) +/usr/src/runc/ +%exclude /usr/src/runc/runc +%exclude /usr/src/runc/runc/Godeps/_workspace/pkg + %changelog