Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions origin.spec
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ OS_ONLY_BUILD_PLATFORMS="${BUILD_PLATFORM}" %{os_git_vars} OS_BUILD_RELEASE_ARCH

PLATFORM="$(go env GOHOSTOS)/$(go env GOHOSTARCH)"
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sysconfdir}/systemd/system.conf.d

# Install linux components
for bin in oc hyperkube
Expand All @@ -185,6 +186,9 @@ install -p -m 755 _output/local/bin/windows/amd64/oc.exe %{buildroot}/%{_datadir
install -p -m 755 _output/local/bin/windows/amd64/kubectl.exe %{buildroot}/%{_datadir}/%{name}/windows/kubectl.exe
%endif

# Install systemd accounting file
install -p -m 0644 contrib/systemd/origin-accounting.conf %{buildroot}%{_sysconfdir}/systemd/system.conf.d/origin-accounting.conf

for cmd in \
kubectl
do
Expand Down Expand Up @@ -215,6 +219,7 @@ done
%{_bindir}/kubectl
%{_sysconfdir}/bash_completion.d/oc
%{_sysconfdir}/bash_completion.d/kubectl
%{_sysconfdir}/systemd/system.conf.d/origin-accounting.conf
%{_mandir}/man1/oc*

%if 0%{?make_redistributable}
Expand Down