Blame qt-virt-manager.spec

F1ash 7c36a26
%global binname qt5-virt-manager
Raphael Groner 5e173e2
Raphael Groner 5e173e2
Name:           qt-virt-manager
F1ash bedf20e
Version:        0.60.88
F1ash bedf20e
Release:        3%{?dist}
Raphael Groner 5e173e2
Summary:        Qt Virtual Machine Manager
F1ash 7c36a26
Raphael Groner 5e173e2
License:        GPLv2+
F1ash 23f146c
URL:            http://f1ash.github.io/%{name}
F1ash 7c36a26
Source0:        https://github.com/F1ash/%{name}/archive/%{version}.tar.gz
F1ash 7c36a26
F1ash 7c36a26
# be compatible with prior subpackages
F1ash 7c36a26
Provides:       virt-manager-qt4 = %{version}-%{release}
F1ash 7c36a26
Provides:       virt-manager-qt5 = %{version}-%{release}
F1ash bedf20e
Provides:       bundled(krdc-libs)
F1ash bedf20e
Provides:       bundled(qterminal)
F1ash 7c36a26
Obsoletes:      virt-manager-qt4 <= 0.25.47
F1ash 7c36a26
Obsoletes:      virt-manager-qt5 <= 0.25.47
F1ash 8f7a4c2
F1ash 23f146c
Requires:       hicolor-icon-theme
F1ash 7c36a26
F1ash 7c36a26
Requires:       libvirt
F1ash 81a46a1
Requires:       qtermwidget >= 0.7.1
F1ash 7c36a26
Requires:       qt-remote-viewer
F1ash 7c36a26
Raphael Groner 5e173e2
# for use qemu-kvm (more useful)
Raphael Groner 5e173e2
Requires:       qemu-kvm
Raphael Groner 5e173e2
Raphael Groner 5e173e2
# for use SPICE viewer
Raphael Groner 5e173e2
Requires:       spice-vdagent
F1ash bedf20e
# for use VNC viewer
F1ash bedf20e
Requires:       krdc-libs
Raphael Groner 5e173e2
F1ash 7c36a26
# optional runtime extensions
F1ash 7c36a26
%if 0%{?fedora}
F1ash 7c36a26
# for scrubbing
Raphael Groner 5e173e2
Suggests:       scrub
F1ash 7c36a26
# for use VNC client with tls
53fc010
Suggests:       gnutls
F1ash 23f146c
%endif
F1ash 7c36a26
Raphael Groner 5e173e2
BuildRequires:  qt5-qtbase-devel
F1ash 7c36a26
BuildRequires:  qt5-qtmultimedia-devel
Raphael Groner 5e173e2
BuildRequires:  qt5-qtsvg-devel
F1ash 81a46a1
BuildRequires:  qtermwidget-devel >= 0.7.1
F1ash b23d9c7
BuildRequires:  qt5-linguist
F1ash 7c36a26
Raphael Groner 5e173e2
BuildRequires:  libvirt-devel
Raphael Groner 5e173e2
BuildRequires:  glibc-headers
Raphael Groner 5e173e2
BuildRequires:  desktop-file-utils
Raphael Groner 5e173e2
BuildRequires:  cmake
Raphael Groner 5e173e2
BuildRequires:  glib2-devel
Raphael Groner 5e173e2
BuildRequires:  spice-protocol
Raphael Groner 5e173e2
BuildRequires:  spice-glib-devel
53fc010
BuildRequires:  libvncserver-devel
F1ash bedf20e
BuildRequires:  krdc-devel
28edad7
%if 0%{?fedora}
28edad7
%global libcacard 1
Raphael Groner 5e173e2
BuildRequires:  libcacard-devel
Raphael Groner 5e173e2
%endif
Raphael Groner 5e173e2
Raphael Groner 5e173e2
%description
F1ash 7c36a26
Qt Virtual Machine Manager provides a graphical tool for
F1ash fb7f641
administering virtual machines for QEMU/KVM, Xen, LXC, OpenVZ,
F1ash fb7f641
VBox, VMWare, HyperV, IBM PowerVM, Bhyve virtual machines
F1ash 7c36a26
and other Virtual Entities.
F1ash 7c36a26
Start, stop, add or remove virtual devices, connect to a
F1ash 7c36a26
graphical or serial console, and see resource usage
F1ash 7c36a26
statistics for existing VMs on local or remote machines.
F1ash 7c36a26
Uses libvirt as the back-end management API.
F1ash 7c36a26
Uses Spice/VNC viewers for control.
F1ash 8f7a4c2
F1ash 7c36a26
%package -n     qt-remote-viewer
F1ash 7c36a26
Summary:        Qt Remote Viewer
F1ash 20ff34c
F1ash 7c36a26
%description -n qt-remote-viewer
F1ash 7c36a26
Qt viewer for remote access to Spice/VNC desktops.
F1ash 20ff34c
Raphael Groner 5e173e2
Raphael Groner 5e173e2
%prep
Raphael Groner 5e173e2
%setup -q
Raphael Groner 5e173e2
Raphael Groner 5e173e2
%build
F1ash 7c36a26
mkdir -p %{_target_platform}
F1ash 7c36a26
pushd %{_target_platform}
28edad7
%cmake .. \
28edad7
  -DBUILD_QT_VERSION=5 \
28edad7
  %{?libcacard:-DWITH_LIBCACARD=1}
F1ash 81a46a1
Raphael Groner 5e173e2
popd
F1ash 7c36a26
%make_build -C %{_target_platform}
Raphael Groner 5e173e2
Raphael Groner 5e173e2
%install
F1ash 7c36a26
%make_install -C %{_target_platform}
Raphael Groner 5e173e2
Raphael Groner 5e173e2
%check
F1ash 7c36a26
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{binname}.desktop
F1ash c8ac6d3
desktop-file-validate %{buildroot}/%{_datadir}/applications/qt5-remote-viewer.desktop
F1ash 7c36a26
F1ash 7c36a26
%files
F1ash 7c36a26
%license LICENSE Licenses
F1ash 7c36a26
%doc README.md Changelog
F1ash 7c36a26
%{_bindir}/%{binname}
F1ash 7c36a26
%{_datadir}/applications/%{binname}.desktop
F1ash 7c36a26
%{_datadir}/%{binname}/
28edad7
%{_datadir}/icons/hicolor/*/apps/virtual-engineering.*
Raphael Groner 5e173e2
F1ash 7c36a26
%files -n       qt-remote-viewer
F1ash c8ac6d3
%license LICENSE
F1ash c8ac6d3
%{_bindir}/qt5-remote-viewer
F1ash c8ac6d3
%{_datadir}/applications/qt5-remote-viewer.desktop
28edad7
%{_datadir}/icons/hicolor/*/apps/remote-desktop-viewer.*
F1ash a41ea04
%{_datadir}/mime/packages/qt-remote-viewer-mime.xml
F1ash 7c36a26
Raphael Groner 5e173e2
Raphael Groner 5e173e2
%changelog
F1ash bedf20e
* Fri Apr 20 2018 Fl@sh <kaperang07@gmail.com> - 0.60.88-3
F1ash bedf20e
- added bundled qterminal Provides;
F1ash bedf20e
- release updated;
F1ash bedf20e
F1ash bedf20e
* Sat Apr 14 2018 Fl@sh <kaperang07@gmail.com> - 0.60.88-2
F1ash bedf20e
- added bundled krdc Provides;
F1ash bedf20e
- release updated;
F1ash bedf20e
F1ash bedf20e
* Sat Apr 14 2018 Fl@sh <kaperang07@gmail.com> - 0.60.88-1
F1ash bedf20e
- added krdc BR, R;
F1ash bedf20e
- version updated;
F1ash bedf20e
F1ash bedf20e
* Mon Apr  2 2018 Fl@sh <kaperang07@gmail.com> - 0.57.86-1
F1ash bedf20e
- version updated;
439d441
F1ash a41ea04
* Thu Mar 15 2018 Fl@sh <kaperang07@gmail.com> - 0.53.83-1
F1ash a41ea04
- version updated;
F1ash a41ea04
F1ash f40be8f
* Sun Mar  4 2018 Fl@sh <kaperang07@gmail.com> - 0.52.81-1
F1ash f40be8f
- version updated;
F1ash f40be8f
F1ash 3ec1952
* Sat Feb 24 2018 Fl@sh <kaperang07@gmail.com> - 0.52.80-2
F1ash 3ec1952
- release updated;
F1ash 3ec1952
F1ash 686f1b4
* Thu Feb 22 2018 Fl@sh <kaperang07@gmail.com> - 0.52.80-1
F1ash 686f1b4
- version updated;
F1ash 686f1b4
F1ash 81a46a1
* Sat Jan  6 2018 Fl@sh <kaperang07@gmail.com> - 0.48.79-1
F1ash 81a46a1
- version updated;
F1ash 81a46a1
F1ash bedf20e
* Wed Oct  4 2017 Fl@sh <kaperang07@gmail.com> - 0.45.75-1
F1ash bedf20e
- version updated;
93e8ecf
F1ash 1ed1ab7
* Mon Jun 19 2017 Fl@sh <kaperang07@gmail.com> - 0.43.72-1
F1ash fb7f641
- version updated;
F1ash 5e7cfdb
F1ash 1ed1ab7
* Fri May 12 2017 Fl@sh <kaperang07@gmail.com> - 0.43.70-1
F1ash 7ff93b2
- enhanced %%description;
F1ash 1ed1ab7
- remove Qt4 build part;
F1ash 7ff93b2
- version updated;
F1ash 7ff93b2
F1ash 1ed1ab7
* Fri Mar 17 2017 Fl@sh <kaperang07@gmail.com> - 0.42.67-1
F1ash 7c36a26
- enhanced %%description;
F1ash 8f7a4c2
- version updated;
F1ash 8f7a4c2
F1ash 1ed1ab7
* Mon Jan 30 2017 Fl@sh <kaperang07@gmail.com> - 0.39.60-1
F1ash 1ed1ab7
- removed libvirt-daemon-driver-qemu, libvncserver R;
F1ash 7c36a26
- version updated;
F1ash 7c36a26
F1ash 1ed1ab7
* Tue Oct 18 2016 Fl@sh <kaperang07@gmail.com> - 0.37.57-1
F1ash 1ed1ab7
- version updated;
F1ash 1ed1ab7
- added changes for qt-remote-viewer subpackages;
F1ash 7c36a26
F1ash 1ed1ab7
* Wed Oct  5 2016 Fl@sh <kaperang07@gmail.com> - 0.37.56-1
Raphael Groner 5e173e2
- version updated;
Raphael Groner 5e173e2
F1ash 1ed1ab7
* Wed Sep 21 2016 Fl@sh <kaperang07@gmail.com> - 0.36.55-1
Raphael Groner 5e173e2
- version updated;
F1ash 1ed1ab7
- added remote-desktop-viwer into %%check and %%files;
Raphael Groner 5e173e2
F1ash 1ed1ab7
* Sat Jul 16 2016 Fl@sh <kaperang07@gmail.com> - 0.34.50-1
Raphael Groner 5e173e2
- version updated;
Raphael Groner 5e173e2
F1ash 1ed1ab7
* Wed May 11 2016 Fl@sh <kaperang07@gmail.com> - 0.27.50-1
Raphael Groner 5e173e2
- version updated;
Raphael Groner 5e173e2
- clear %%changelog;