[aqemu] Initial import (#734275).

Stephen Gordon sgordon at fedoraproject.org
Tue Mar 6 15:36:08 UTC 2012


commit fdd380e1ee6b54a540b680545a17c0a2137c630e
Author: Stephen Gordon <stephen.a.gordon at gmail.com>
Date:   Tue Mar 6 10:36:01 2012 -0500

    Initial import (#734275).

 .gitignore                       |    1 +
 aqemu-0.8.2-fedora-desktop.patch |   20 +++++++
 aqemu-0.8.2-qt48.patch           |   13 +++++
 aqemu.spec                       |  110 ++++++++++++++++++++++++++++++++++++++
 sources                          |    1 +
 5 files changed, 145 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..008b527 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/aqemu-0.8.2.tar.bz2
diff --git a/aqemu-0.8.2-fedora-desktop.patch b/aqemu-0.8.2-fedora-desktop.patch
new file mode 100644
index 0000000..d633e9d
--- /dev/null
+++ b/aqemu-0.8.2-fedora-desktop.patch
@@ -0,0 +1,20 @@
+--- menu_data/aqemu.desktop.orig	2009-06-04 17:29:38.000000000 +1000
++++ menu_data/aqemu.desktop	2011-08-30 22:59:02.621556022 +1000
+@@ -1,14 +1,12 @@
+ [Desktop Entry]
+-Encoding=UTF-8
+-Name=AQEMU
+ Exec=aqemu
+ Terminal=false
+ Type=Application
+-Icon=aqemu_48x48.png
++Icon=aqemu
+ StartupNotify=true
+ Categories=System;Emulator;
+ 
++Name=AQEMU
++Comment=Virtual machine manager
+ Name[ru]=AQEMU
+-Name[en]=AQEMU
+ Comment[ru]=Управление виртуальными машинами
+-Comment[en]=Virtual machine manager
diff --git a/aqemu-0.8.2-qt48.patch b/aqemu-0.8.2-qt48.patch
new file mode 100644
index 0000000..4d7e79e
--- /dev/null
+++ b/aqemu-0.8.2-qt48.patch
@@ -0,0 +1,13 @@
+--- Embedded_Display/vncview.cpp.orig
++++ Embedded_Display/vncview.cpp
+@@ -27,8 +27,8 @@
+     #include <QMessageBox>
+     #include <QInputDialog>
+     #define KMessageBox QMessageBox
+-    #define error(parent, message, caption) \
+-        critical(parent, caption, message)
++/*    #define error(parent, message, caption) \
++        critical(parent, caption, message)*/
+ #else
+     #include "settings.h"
+     #include <KActionCollection>
diff --git a/aqemu.spec b/aqemu.spec
new file mode 100644
index 0000000..c773f67
--- /dev/null
+++ b/aqemu.spec
@@ -0,0 +1,110 @@
+Name: aqemu
+Version: 0.8.2
+Release: 7%{?dist}
+Summary: A QT graphical interface to QEMU and KVM
+Group: Applications/Emulators
+License: GPLv2+
+URL: http://aqemu.sourceforge.net
+Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
+# Patch for desktop file to ensure it shows up in the GNOME overview.
+# Upstream: http://sourceforge.net/tracker/?func=detail&aid=3430317&group_id=229794&atid=1078458
+Patch0: aqemu-0.8.2-fedora-desktop.patch
+# Fatch for vncview.cp file to disable macro that clashes with QT 4.8.
+# Upstram: http://sourceforge.net/tracker/?func=detail&aid=3429937&group_id=229794&atid=1078458
+Patch1: aqemu-0.8.2-qt48.patch
+BuildRequires: qt-devel 
+BuildRequires: cmake 
+BuildRequires: libvncserver-devel
+BuildRequires: desktop-file-utils
+BuildRequires: gnutls-devel
+BuildRequires: hicolor-icon-theme
+
+%description
+AQEMU is a graphical user interface to QEMU and KVM, written in Qt4. The 
+program has a user-friendly interface and allows user to set the 
+majority of QEMU and KVM options on their virtual machines.
+
+%prep
+%setup -q
+%patch0 
+%patch1  
+
+%build
+%cmake
+make %{?_smp_mflags}
+
+%install
+make DESTDIR=%{buildroot} install
+# Copy 48x48 and 64x64 icons to correct location.
+mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{48x48,64x64}/apps
+mv %{buildroot}%{_datadir}/pixmaps/%{name}_48x48.png \
+   %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
+mv %{buildroot}%{_datadir}/pixmaps/%{name}_64x64.png \
+   %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
+# Remove directories from install which are not being deployed in RPM.
+rm -rf %{buildroot}%{_datadir}/pixmaps
+rm -rf %{buildroot}%{_datadir}/menu
+rm -rf %{buildroot}%{_datadir}/doc/%{name}
+# Validate the icon file.
+desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
+
+%post
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    %{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+%{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+%files
+%{_bindir}/%{name}
+%doc AUTHORS CHANGELOG COPYING TODO
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/%{name}
+%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
+%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
+%{_mandir}/man1/%{name}.1*
+
+%changelog
+* Mon Mar 5 2012 Stephen Gordon <sgordon at redhat.com> - 0.8.2-7
+- Added BuildRequires on hicolor-icon-theme (bz#734275).
+
+* Mon Feb 27 2012 Stephen Gordon <sgordon at redhat.com> - 0.8.2-6
+- Added BuildRequires on gnutls-devel (bz#734275).
+- Added white space to spec file changelog (bz#734275).
+- Added comment for desktop patch file (bz#734275).
+- Added patch disabling error macro definition (bz#734275).
+- Updated license in spec file to GPLv2+ (bz#734275).
+- Updated man page location to include section number (bz#734275).
+- Removed README file as it only detailed installation (bz#734275).
+
+* Mon Sep 05 2011 Stephen Gordon <sgordon at redhat.com> - 0.8.2-5
+- Updated to include both icon sizes supplied by upstream (bz#734275).
+
+* Tue Aug 30 2011 Stephen Gordon <sgordon at redhat.com> - 0.8.2-4
+- Updated to drop redundant slashes in paths (bz#734275).
+- Updated desktop file to pass desktop-file-validate tests (bz#734275).
+
+* Tue Aug 30 2011 Stephen Gordon <sgordon at redhat.com> - 0.8.2-3
+- Escaped macros in changelog (bz#734275).
+- Dropped explicit requires fields (bz#734275).
+- Updated to use desktop-file-validate for desktop file (bz#734275).
+- Settled on %%{buildroot} for referring to build root consistently 
+  (bz#734275).
+- Updated to deploy documentation files to correct location (bz#734275).
+
+* Tue Aug 30 2011 Stephen Gordon <sgordon at redhat.com> - 0.8.2-2
+- Updated Source0 to include full URL (bz#734275).
+- Removed BuildRoot, %%clean, and %%defattr, not required (bz#734275).
+- Moved icon file manipulation from %%prep to %%install (bz#734275).
+- Modified to use %%cmake macro instead of explicit cmake call (bz#734275).
+- Added smp flags to make call (bz#734275).
+- Modified to use make install instead of make install/strip (bz#734275).
+- Modified to ensure correct DESTDIR on make call (bz#734275).
+
+* Mon Aug 29 2011 Stephen Gordon <sgordon at redhat.com> - 0.8.2-1
+- Initial packaging of aqemu 0.8.2 for Fedora, based on SuSE aqemu 0.8.1 RPM.
diff --git a/sources b/sources
index e69de29..6d5ad65 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+dcec083f566e0a22df7bfe8e7ca4c593  aqemu-0.8.2.tar.bz2


More information about the scm-commits mailing list