-
Notifications
You must be signed in to change notification settings - Fork 6
/
oc-inject.spec
71 lines (54 loc) · 1.99 KB
/
oc-inject.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Name: oc-inject
Version: 0.7.9
Release: 3%{?dist}
Summary: Copy an executable to an OpenShift container and run it
License: ASL 2.0
URL: https://github.com/serhei/oc-inject
Source0: https://github.com/serhei/oc-inject/releases/download/v0.7.9/oc-inject-0.7.9.tar.gz
#BuildRequires: pandoc
BuildArch: noarch
Requires: python3
%if 0%{?fedora}
Recommends: origin-clients
#Recommends: kubernetes-client
Suggests: java
%endif
%description
Copy an executable to an OpenShift container and run the executable.
oc-inject is a prototype tool for last-resort troubleshooting of a
running container, when a required debugging tool is not present in
the container image.
%global debug_package %{nil}
%prep
%autosetup
%build
%install
mkdir -p %{buildroot}%{_bindir}
cp -a oc-inject %{buildroot}%{_bindir}
chmod 0755 %{buildroot}%{_bindir}/oc-inject
mkdir -p %{buildroot}%{_mandir}/man1
cp -a oc-inject.1 %{buildroot}%{_mandir}/man1/oc-inject.1
sed -i "s/VERSION/%{version}/g" %{buildroot}%{_mandir}/man1/oc-inject.1
chmod 0644 %{buildroot}%{_mandir}/man1/oc-inject.1
mkdir -p %{buildroot}%{_pkgdocdir}
cp -a README.md %{buildroot}%{_pkgdocdir}
%files
%{_bindir}/oc-inject
%{_mandir}/man1/oc-inject.1.*
%license LICENSE
%doc README.md
%changelog
* Thu Jan 21 2021 Serhei Makarov <[email protected]> - 0.7.9-3
- Add dependency on origin-clients (oc).
- Note soft dependency on Java runtime environment.
* Wed Jan 20 2021 Serhei Makarov <[email protected]> - 0.7.9-2
- Fix Source0 URL.
* Fri Jan 15 2021 Serhei Makarov <[email protected]> - 0.7.9-1
- Draft version for Fedora package review.
- Added man page, updated install procedure.
* Mon Feb 10 2020 Serhei Makarov <[email protected]> - 0.0.3-1
- Updated version with rudimentary support for JDK tools.
* Wed Dec 11 2019 Serhei Makarov <[email protected]> - 0.0.2-1
- Updated version for Red Hat Developer Blog demos.
* Mon Dec 17 2018 Serhei Makarov <[email protected]> - 0.0.1-1
- Initial release to test rpmbuild and COPR.