File aqemu.spec of Package aqemu
#
# spec file for package aqemu
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: aqemu
Version: 0.9.2
Release: 1
Summary: GUI to QEMU and KVM emulators
License: GPL-2.0
URL: https://github.com/tobimensch/aqemu
Source0: https://github.com/tobimensch/aqemu/archive/v%version.tar.gz
Patch0: aqemu-rcc.patch
BuildRequires: gcc-c++
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: update-desktop-files
BuildRequires: cmake
BuildRequires: LibVNCServer-devel
BuildRequires: xz
BuildRequires: pkgconfig(gnutls)
%description
AQEMU is GUI to QEMU and KVM emulators, written in Qt4. The program have
user-friendly interface and allows to set up the majority of QEMU and KVM
options.
%prep
%autosetup -p1 -n %name-%version
%build
sed -i -e 's#share/doc/aqemu#share/doc/packages/aqemu/#' \
CMakeLists.txt
mv menu_data/aqemu_48x48.png menu_data/%name.png
CXXFLAGS='%optflags -fvisibility=hidden -fvisibility-inlines-hidden -Wno-deprecated-declarations -Wno-misleading-indentation -Wno-unused-but-set-variable -Wno-unused-variable'
%cmake
%cmake_build
%install
%cmake_install
rm -rf %buildroot/%_datadir/menu
%suse_update_desktop_file %name
%files
%_defaultdocdir/%name/
%_bindir/%name
%_datadir/applications/%name.desktop
%_datadir/%name/
%_datadir/pixmaps/*.png
%_mandir/man1/*
%changelog