-
Notifications
You must be signed in to change notification settings - Fork 168
Expand file tree
/
Copy pathkcli.spec
More file actions
55 lines (45 loc) · 1.8 KB
/
kcli.spec
File metadata and controls
55 lines (45 loc) · 1.8 KB
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
# spec file for kcli package
#
# Copyright (c) 2017 Karim Boumedhel
#
Name: kcli
Version: 99.${GIT_CUSTOM_VERSION}
Release: 0%{?dist}
Url: http://github.com/karmab/kcli
Summary: Wrapper for libvirt, kubevirt, vsphere, openstack, proxmox, ovirt, aws, azure, gcp, ibmcloud, packet and hcloud
License: ASL 2.0
Group: Development/Languages/Python
VCS: ${GIT_DIR_VCS}
Source: kcli.tar.gz
AutoReq: no
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python3-devel gzip python3-setuptools git
Requires: python3 libvirt-python3 xorriso nmap-ncat python3-prettytable python3-jinja2 python3-PyYAML python3-argcomplete
%description
Kcli is a wrapper for local/remote libvirt, kubevirt, vsphere, openstack, proxmox, ovirt, aws, azure, gcp, ibmcloud, packet and hcloud
It allows to easily deploy and manage single vms from cloud images or several using plans or kubernetes clusters
%global debug_package %{nil}
%prep
%setup -T -b 0 -q -n kcli
%build
sed -i "s/, 'libvirt.*/\]/" setup.py
echo "$(git ls-remote https://github.com/karmab/kcli | head -1 | cut -c1-7) $(date +%Y/%m/%d)" > kvirt/version/git
%{python3} setup.py build
%install
%{python3} setup.py install --prefix=%{_prefix} --root=%{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{python3_sitelib}/*
%attr(0755,root,root) %{_bindir}/kcli
%attr(0755,root,root) %{_bindir}/kweb
%attr(0755,root,root) %{_bindir}/klist.py
%attr(0755,root,root) %{_bindir}/kcliagent
%attr(0755,root,root) %{_bindir}/kclimcp
%attr(0755,root,root) %{_bindir}/ksushy
%attr(0755,root,root) %{_bindir}/ekstoken
%attr(0755,root,root) %{_bindir}/gketoken
%post
! systemctl is-active --quiet ksushy.service || (systemctl daemon-reload && systemctl restart ksushy.service)
%changelog