Change-Id: I1eed510099c267b6f18d100e0f3b412358186f3a
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3622
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Xiaolin Li <xiaolinl@vmware.com>
| ... | ... |
@@ -1,11 +1,21 @@ |
| 1 | 1 |
Summary: CLI tool for spawning and running containers per OCI spec. |
| 2 | 2 |
Name: runc |
| 3 |
-Version: 0.1.1 |
|
| 3 |
+Version: 1.0.0.rc4 |
|
| 4 | 4 |
Release: 1%{?dist}
|
| 5 | 5 |
License: ASL 2.0 |
| 6 | 6 |
URL: https://runc.io/ |
| 7 |
-Source0: https://github.com/opencontainers/runc/archive/%{name}-v%{version}.tar.gz
|
|
| 8 |
-%define sha1 runc=ca70c97c9211462f774e22f03fec2fe61f45f1ba |
|
| 7 |
+Source0: https://github.com/opencontainers/runc/archive/%{name}-1.0.0-rc4.tar.gz
|
|
| 8 |
+%define sha1 runc=ba166c907ade645ce4a41a2a20fbc13a8a6cd3ef |
|
| 9 |
+Source1: https://github.com/sirupsen/logrus/archive/logrus-1.0.3.tar.gz |
|
| 10 |
+%define sha1 logrus=9edcef15ac3860d431b162102533911788885b5f |
|
| 11 |
+Source2: https://github.com/opencontainers/runtime-spec/archive/runtime-spec-1.0.0.tar.gz |
|
| 12 |
+%define sha1 runtime-spec=7cd96a1bebe4cdb55d2b5f5df1e52374b016a0bd |
|
| 13 |
+Source3: https://github.com/urfave/cli/archive/urfave-cli-1.19.1.tar.gz |
|
| 14 |
+%define sha1 urfave-cli=9044d4e160ebb954c17856785cf8fde02858d9ac |
|
| 15 |
+Source4: https://github.com/golang/sys/archive/golang-sys-07c182904dbd53199946ba614a412c61d3c548f5.zip |
|
| 16 |
+%define sha1 golang-sys=940b297797b1defc11d67820a92becefeaa88f59 |
|
| 17 |
+Source5: https://github.com/golang/crypto/archive/golang-crypto-eb71ad9bd329b5ac0fd0148dd99bd62e8be8e035.zip |
|
| 18 |
+%define sha1 golang-crypto=775ab62e664ee2c89f624d5be6c55775360653ee |
|
| 9 | 19 |
Group: Virtualization/Libraries |
| 10 | 20 |
Vendor: VMware, Inc. |
| 11 | 21 |
Distribution: Photon |
| ... | ... |
@@ -21,6 +31,7 @@ BuildRequires: libseccomp-devel |
| 21 | 21 |
BuildRequires: protobuf-devel |
| 22 | 22 |
BuildRequires: protobuf-c-devel |
| 23 | 23 |
BuildRequires: python2-devel |
| 24 |
+BuildRequires: unzip |
|
| 24 | 25 |
Requires: glibc |
| 25 | 26 |
Requires: libgcc |
| 26 | 27 |
Requires: libseccomp |
| ... | ... |
@@ -29,18 +40,43 @@ Requires: libseccomp |
| 29 | 29 |
runC is a CLI tool for spawning and running containers according to the OCI specification. Containers are started as a child process of runC and can be embedded into various other systems without having to run a daemon. |
| 30 | 30 |
|
| 31 | 31 |
%prep |
| 32 |
-%setup -q -n %{name}-%{version}
|
|
| 32 |
+%setup -q -n %{name}-1.0.0-rc4
|
|
| 33 | 33 |
|
| 34 | 34 |
%build |
| 35 |
+pushd .. |
|
| 36 |
+tar -xvf %{SOURCE1}
|
|
| 37 |
+tar -xvf %{SOURCE2}
|
|
| 38 |
+tar -xvf %{SOURCE3}
|
|
| 39 |
+unzip %{SOURCE4}
|
|
| 40 |
+unzip %{SOURCE5}
|
|
| 41 |
+mkdir -p $GOPATH/src/github.com/opencontainers/runtime-spec/ |
|
| 42 |
+mkdir -p $GOPATH/src/github.com/sirupsen/logrus |
|
| 43 |
+mkdir -p $GOPATH/src/github.com/urfave/cli |
|
| 44 |
+mkdir -p $GOPATH/src/golang.org/x/sys/ |
|
| 45 |
+mkdir -p $GOPATH/src/golang.org/x/crypto/ |
|
| 46 |
+mkdir -p build/src/github.com/opencontainers/runc |
|
| 47 |
+cp -r runtime-spec-1.0.0/* $GOPATH/src/github.com/opencontainers/runtime-spec/ |
|
| 48 |
+cp -r logrus-1.0.3/* $GOPATH/src/github.com/sirupsen/logrus |
|
| 49 |
+cp -r cli-1.19.1/* $GOPATH/src/github.com/urfave/cli |
|
| 50 |
+cp -r sys-master/* $GOPATH/src/golang.org/x/sys |
|
| 51 |
+cp -r crypto-master/* $GOPATH/src/golang.org/x/crypto |
|
| 52 |
+popd |
|
| 53 |
+cp -r . ../build/src/github.com/opencontainers/runc |
|
| 54 |
+cd ../build |
|
| 55 |
+export GOPATH=$GOPATH:`pwd` |
|
| 56 |
+cd src/github.com/opencontainers/runc |
|
| 35 | 57 |
make %{?_smp_mflags}
|
| 36 | 58 |
|
| 37 | 59 |
%install |
| 38 |
-install -D -m0755 runc %{buildroot}%{_sbindir}/runc
|
|
| 60 |
+cd ../build/src/github.com/opencontainers/runc |
|
| 61 |
+make install BINDIR=%{buildroot}%{_sbindir}
|
|
| 39 | 62 |
|
| 40 | 63 |
%files |
| 41 | 64 |
%defattr(-,root,root) |
| 42 | 65 |
%{_sbindir}/runc
|
| 43 | 66 |
|
| 44 | 67 |
%changelog |
| 68 |
+* Tue Aug 22 2017 Dheeraj Shetty <dheerajs@vmware.com> 1.0.0.rc4-1 |
|
| 69 |
+- Update runc package to 1.0.0.rc4. |
|
| 45 | 70 |
* Tue Apr 25 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.1.1-1 |
| 46 | 71 |
- Initial runc package for PhotonOS. |