diff --git a/openshift.spec b/openshift.spec index fa1a996195c6..51e6e3733622 100644 --- a/openshift.spec +++ b/openshift.spec @@ -68,6 +68,13 @@ Requires: tuned >= 2.3 %description -n tuned-profiles-openshift-node %{summary} +%package pod +Summary: OpenShift Pod +Requires: openshift = %{version}-%{release} + +%description pod +%{summary} + %prep %setup -q @@ -103,6 +110,11 @@ done # set the IMAGES sed -i 's|IMAGES=.*|IMAGES=%{docker_images}|' rel-eng/openshift-{master,node}.sysconfig +#Build our pod +pushd images/pod/ + go build -ldflags "%{ldflags}" pod.go +popd + %install install -d %{buildroot}%{_bindir} @@ -111,6 +123,8 @@ do echo "+++ INSTALLING ${bin}" install -p -m 755 ${bin} %{buildroot}%{_bindir}/${bin} done +#Install our pod +install -p -m 755 images/pod/pod %{buildroot}%{_bindir}/ install -d -m 0755 %{buildroot}%{_unitdir} install -m 0644 -t %{buildroot}%{_unitdir} rel-eng/openshift-master.service @@ -178,6 +192,10 @@ if [ "$1" = 0 ]; then /usr/sbin/tuned-adm profile $recommended > /dev/null 2>&1 fi +%files pod +%defattr(-,root,root,-) +%{_bindir}/pod + %changelog * Fri Feb 06 2015 Scott Dodson