-
Notifications
You must be signed in to change notification settings - Fork 2
/
vml.spec
119 lines (95 loc) · 3.94 KB
/
vml.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
Name: vml
Version: 0.1.10
Release: alt1
Summary: Tool for easily and transparently work with qemu virtual machines
License: MIT
Group: Emulators
Url: https://github.com/Obirvalger/vml
Packager: Mikhail Gordeev <[email protected]>
Source: %name-%version.tar
BuildRequires: libssl-devel
BuildRequires(pre): rpm-build-rust
BuildRequires: /proc
Requires: rsync socat openssh-clients /usr/bin/kvm cloud-utils-cloud-localds
ExclusiveArch: aarch64 x86_64
%description
VML is a tool for easily and transparently work with qemu virtual machines.
Virtual machines present as directories with vml.toml files in it. VML is able
to initialize images with cloud-init. Virtual machines with ALT, Centos,
Debian, Fedora, openSUSE and Ubuntu could be created with just one command.
%prep
%setup
%build
export RUSTFLAGS="${RUSTFLAGS} -g"
%ifarch ppc64le
cargo build --no-default-features --features=native-tls --release %{?_smp_mflags} --offline
%else
cargo build --release %{?_smp_mflags} --offline
%endif
%install
%rust_install
install -Dm 644 files/configs/config.toml %buildroot%_sysconfdir/%name/config.toml
install -Dm 644 files/configs/images.toml %buildroot%_sysconfdir/%name/images.toml
mkdir -p %buildroot%_datadir/zsh/site-functions
%buildroot%_bindir/%name completion zsh > %buildroot%_datadir/zsh/site-functions/_%name
mkdir -p %buildroot%_datadir/bash-completion/completions
%buildroot%_bindir/%name completion bash > %buildroot%_datadir/bash-completion/completions/%name
mkdir -p %buildroot%_datadir/fish/vendor_completions.d
%buildroot%_bindir/%name completion fish > %buildroot%_datadir/fish/vendor_completions.d/%name.fish
%files
%_bindir/%name
%_sysconfdir/%name
%config(noreplace) %attr(0644,root,root) %_sysconfdir/%name/config.toml
%config(noreplace) %attr(0644,root,root) %_sysconfdir/%name/images.toml
%_datadir/zsh/site-functions/_%name
%_datadir/bash-completion/completions/%name
%_datadir/fish/vendor_completions.d/%name.fish
%doc doc *.md
%changelog
* Fri Aug 09 2024 Mikhail Gordeev <[email protected]> 0.1.10-alt1
- Return proper error code when ssh command fails
- Use log to print messages
- Add snapshot option to start and run commands
- Add image add command
- Add external subcommands
- Add some command and config aliases
- Update alt, ubuntu, fedora, opensuse, rocky and debian images
- Remove outdated images
* Wed Oct 04 2023 Mikhail Gordeev <[email protected]> 0.1.9-alt2
- Reduce transitive requires
- Set ExclusiveArch
* Tue Jun 06 2023 Mikhail Gordeev <[email protected]> 0.1.9-alt1
- Fix updating images config
- Fix creating ~ with rsync-to
- Add clean command to prepare vm be used as image
- Add check to rsync commands
- Setup sudo for gui user
- Update ubuntu and fedora images
- Remove outdated images
* Tue Oct 04 2022 Mikhail Gordeev <[email protected]> 0.1.8-alt1
- Fix vml show --all wrong state output
- Fix version show
- Add option to set ssh user on creation of a vm
- Add properties flag to pass vm properties on creation
- Add Rocky Linux image
- Add centos-9-stream
- Add AlmaLinux
* Mon Jun 27 2022 Mikhail Gordeev <[email protected]> 0.1.7-alt1
- Improve work with gui images
* Mon Jun 20 2022 Mikhail Gordeev <[email protected]> 0.1.6-alt1
- Add support of multiple arches
* Thu Dec 30 2021 Mikhail Gordeev <[email protected]> 0.1.5-alt1
- Fix finding running vms after qemu update
- Create openssh config for vms
* Mon Nov 15 2021 Mikhail Gordeev <[email protected]> 0.1.4-alt1
- Add more readable json output to show command
- Add ansible dynamic inventory - files/scripts/inventory.py
- Use anyhow and thiserror to get more readable error messages
* Mon Sep 06 2021 Mikhail Gordeev <[email protected]> 0.1.3-alt1
- Update images
* Wed Jun 23 2021 Mikhail Gordeev <[email protected]> 0.1.2-alt1
- 0.1.2
* Mon Apr 12 2021 Mikhail Gordeev <[email protected]> 0.1.1-alt1
- 0.1.1
* Mon Mar 29 2021 Mikhail Gordeev <[email protected]> 0.1.0-alt1
- Initial build for Sisyphus