-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathqt-virt-manager.spec
200 lines (153 loc) · 5.26 KB
/
qt-virt-manager.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
%global binname qt5-virt-manager
Name: qt-virt-manager
Version: 0.72.99
Release: 1%{?dist}
Summary: Qt Virtual Machine Manager
License: GPLv2+
URL: http://f1ash.github.io/%{name}
Source0: https://github.com/F1ash/%{name}/archive/%{version}.tar.gz
# be compatible with prior subpackages
Provides: virt-manager-qt4 = %{version}-%{release}
Provides: virt-manager-qt5 = %{version}-%{release}
Provides: bundled(krdc-libs)
Provides: bundled(qterminal)
Obsoletes: virt-manager-qt4 <= 0.25.47
Obsoletes: virt-manager-qt5 <= 0.25.47
Requires: hicolor-icon-theme
Requires: libvirt
Requires: qtermwidget >= 0.7.1
Requires: qt-remote-viewer
# for use qemu-kvm (more useful)
Requires: qemu-kvm
# for use SPICE viewer
Requires: spice-vdagent
# for use VNC viewer
Requires: krdc-libs
# optional runtime extensions
%if 0%{?fedora}
# for scrubbing
Suggests: scrub
# for use VNC client with tls
Suggests: gnutls
%endif
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtmultimedia-devel
BuildRequires: qt5-qtsvg-devel
BuildRequires: qtermwidget-devel >= 0.7.1
BuildRequires: qt5-linguist
BuildRequires: libvirt-devel
BuildRequires: glibc-headers
BuildRequires: desktop-file-utils
BuildRequires: cmake
BuildRequires: glib2-devel
BuildRequires: spice-protocol
BuildRequires: spice-glib-devel
BuildRequires: libvncserver-devel
BuildRequires: krdc-devel
%if 0%{?fedora}
%global libcacard 1
BuildRequires: libcacard-devel
%endif
%description
Qt Virtual Machine Manager provides a graphical tool for
administering virtual machines for QEMU/KVM, Xen, LXC, OpenVZ,
VBox, VMWare, HyperV, IBM PowerVM, Bhyve virtual machines
and other Virtual Entities.
Start, stop, add or remove virtual devices, connect to a
graphical or serial console, and see resource usage
statistics for existing VMs on local or remote machines.
Uses libvirt as the back-end management API.
Uses Spice/VNC viewers for control.
%package -n qt-remote-viewer
Summary: Qt Remote Viewer
%description -n qt-remote-viewer
Qt viewer for remote access to Spice/VNC desktops.
%prep
%setup -q
%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
%cmake .. \
-DBUILD_QT_VERSION=5 \
%{?libcacard:-DWITH_LIBCACARD=1}
popd
%make_build -C %{_target_platform}
%install
%make_install -C %{_target_platform}
%check
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{binname}.desktop
desktop-file-validate %{buildroot}/%{_datadir}/applications/qt5-remote-viewer.desktop
%files
%license LICENSE Licenses
%doc README.md Changelog
%{_bindir}/%{binname}
%{_datadir}/applications/%{binname}.desktop
%{_datadir}/%{binname}/
%{_datadir}/icons/hicolor/*/apps/virtual-engineering.*
%files -n qt-remote-viewer
%license LICENSE
%{_bindir}/qt5-remote-viewer
%{_datadir}/applications/qt5-remote-viewer.desktop
%{_datadir}/icons/hicolor/*/apps/remote-desktop-viewer.*
%{_datadir}/mime/packages/qt-remote-viewer-mime.xml
%changelog
* Sun Aug 1 2021 Fl@sh <kaperang07@gmail.com> - 0.72.99-1
- version updated;
* Tue May 18 2021 Fl@sh <kaperang07@gmail.com> - 0.72.98-1
- version updated;
* Tue Dec 22 2020 Fl@sh <kaperang07@gmail.com> - 0.72.97-1
- version updated;
* Mon Jul 20 2020 Fl@sh <kaperang07@gmail.com> - 0.71.95-1
- version updated;
* Tue Jul 24 2018 Fl@sh <kaperang07@gmail.com> - 0.70.91-1
- version updated;
* Thu Jul 12 2018 Fl@sh <kaperang07@gmail.com> - 0.70.90-1
- version updated;
* Fri Apr 20 2018 Fl@sh <kaperang07@gmail.com> - 0.60.88-3
- added bundled qterminal Provides;
- release updated;
* Sat Apr 14 2018 Fl@sh <kaperang07@gmail.com> - 0.60.88-2
- added bundled krdc Provides;
- release updated;
* Sat Apr 14 2018 Fl@sh <kaperang07@gmail.com> - 0.60.88-1
- added krdc BR, R;
- version updated;
* Mon Apr 2 2018 Fl@sh <kaperang07@gmail.com> - 0.57.86-1
- version updated;
* Thu Mar 15 2018 Fl@sh <kaperang07@gmail.com> - 0.53.83-1
- version updated;
* Sun Mar 4 2018 Fl@sh <kaperang07@gmail.com> - 0.52.81-1
- version updated;
* Sat Feb 24 2018 Fl@sh <kaperang07@gmail.com> - 0.52.80-2
- release updated;
* Thu Feb 22 2018 Fl@sh <kaperang07@gmail.com> - 0.52.80-1
- version updated;
* Sat Jan 6 2018 Fl@sh <kaperang07@gmail.com> - 0.48.79-1
- version updated;
* Wed Oct 4 2017 Fl@sh <kaperang07@gmail.com> - 0.45.75-1
- version updated;
* Mon Jun 19 2017 Fl@sh <kaperang07@gmail.com> - 0.43.72-1
- version updated;
* Fri May 12 2017 Fl@sh <kaperang07@gmail.com> - 0.43.70-1
- enhanced %%description;
- remove Qt4 build part;
- version updated;
* Fri Mar 17 2017 Fl@sh <kaperang07@gmail.com> - 0.42.67-1
- enhanced %%description;
- version updated;
* Mon Jan 30 2017 Fl@sh <kaperang07@gmail.com> - 0.39.60-1
- removed libvirt-daemon-driver-qemu, libvncserver R;
- version updated;
* Tue Oct 18 2016 Fl@sh <kaperang07@gmail.com> - 0.37.57-1
- version updated;
- added changes for qt-remote-viewer subpackages;
* Wed Oct 5 2016 Fl@sh <kaperang07@gmail.com> - 0.37.56-1
- version updated;
* Wed Sep 21 2016 Fl@sh <kaperang07@gmail.com> - 0.36.55-1
- version updated;
- added remote-desktop-viwer into %%check and %%files;
* Sat Jul 16 2016 Fl@sh <kaperang07@gmail.com> - 0.34.50-1
- version updated;
* Wed May 11 2016 Fl@sh <kaperang07@gmail.com> - 0.27.50-1
- version updated;
- clear %%changelog;