... | ... |
@@ -78,6 +78,13 @@ Requires: %{name} = %{version}-%{release} |
78 | 78 |
%description dockerregistry |
79 | 79 |
%{summary} |
80 | 80 |
|
81 |
+%package pod |
|
82 |
+Summary: OpenShift Pod |
|
83 |
+Requires: openshift = %{version}-%{release} |
|
84 |
+ |
|
85 |
+%description pod |
|
86 |
+%{summary} |
|
87 |
+ |
|
81 | 88 |
%prep |
82 | 89 |
%setup -q |
83 | 90 |
|
... | ... |
@@ -121,6 +128,11 @@ do |
121 | 121 |
go install -ldflags "%{ldflags}" %{import_path}/cmd/openshift |
122 | 122 |
done |
123 | 123 |
|
124 |
+#Build our pod |
|
125 |
+pushd images/pod/ |
|
126 |
+ go build -ldflags "%{ldflags}" pod.go |
|
127 |
+popd |
|
128 |
+ |
|
124 | 129 |
%install |
125 | 130 |
|
126 | 131 |
install -d %{buildroot}%{_bindir} |
... | ... |
@@ -136,7 +148,8 @@ done |
136 | 136 |
install -p -m 755 _build/bin/openshift %{buildroot}%{_datadir}/%{name}/linux/osc |
137 | 137 |
install -p -m 755 _build/bin/darwin_amd64/openshift %{buildroot}%{_datadir}/%{name}/macosx/osc |
138 | 138 |
install -p -m 755 _build/bin/windows_386/openshift.exe %{buildroot}%{_datadir}/%{name}/windows/osc.exe |
139 |
- |
|
139 |
+#Install openshift pod |
|
140 |
+install -p -m 755 images/pod/pod %{buildroot}%{_bindir}/ |
|
140 | 141 |
|
141 | 142 |
install -d -m 0755 %{buildroot}/etc/%{name}/{master,node} |
142 | 143 |
install -d -m 0755 %{buildroot}%{_unitdir} |
... | ... |
@@ -229,6 +242,10 @@ fi |
229 | 229 |
%defattr(-,root,root,-) |
230 | 230 |
%{_bindir}/dockerregistry |
231 | 231 |
|
232 |
+%files pod |
|
233 |
+%defattr(-,root,root,-) |
|
234 |
+%{_bindir}/pod |
|
235 |
+ |
|
232 | 236 |
%changelog |
233 | 237 |
* Mon Jan 26 2015 Scott Dodson <sdodson@redhat.com> 0.2-3 |
234 | 238 |
- Update to 21fb40637c4e3507cca1fcab6c4d56b06950a149 |