2012-02-01 21:13:17 +04:00
|
|
|
%define name qemu-launcher
|
2015-08-23 20:51:06 +04:00
|
|
|
%define version 1.8.0
|
|
|
|
%define release pre0
|
2012-02-01 21:13:17 +04:00
|
|
|
|
|
|
|
Summary: Interface to configure and launch Qemu
|
|
|
|
Name: %name
|
|
|
|
Version: %version
|
|
|
|
Release: %release
|
|
|
|
License: GPL
|
|
|
|
Group: Emulators
|
|
|
|
URL: http://projects.wanderings.us/qemu_launcher
|
2015-08-23 20:51:06 +04:00
|
|
|
Source0: http://download.gna.org/qemulaunch/%{name}_%{version}-%{release}.orig.tar.gz
|
2012-02-01 21:13:17 +04:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: perl-Locale-gettext >= 1.04
|
|
|
|
BuildRequires: librsvg
|
|
|
|
BuildRequires: libxml2-utils
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
|
|
|
|
%description
|
|
|
|
A launcher for Qemu that manages Qemu configs and creates disk images
|
|
|
|
Qemu-launcher provides a point and click interface to Qemu. It also
|
|
|
|
allows you to create, save, load, and run multiple Qemu VM
|
|
|
|
configurations. It has a basic interface for creating or convertering
|
|
|
|
disk images.
|
|
|
|
|
|
|
|
Only supports the x86 PC emulator part of Qemu.
|
|
|
|
|
|
|
|
%prep
|
2015-08-23 20:51:06 +04:00
|
|
|
%setup -q -n qemu-launcher-%{version}-%{release}
|
2012-02-01 21:13:17 +04:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %buildroot
|
|
|
|
%makeinstall DESTDIR=%buildroot PREFIX=%_prefix
|
|
|
|
|
2015-08-23 20:51:06 +04:00
|
|
|
#%find_lang %name
|
2012-02-01 21:13:17 +04:00
|
|
|
|
|
|
|
desktop-file-install --vendor="" \
|
|
|
|
--remove-category="Application" \
|
|
|
|
--remove-category="Utility" \
|
|
|
|
--add-category="System" \
|
|
|
|
--dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/*
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}{%{_miconsdir},%{_iconsdir},%{_liconsdir},%{_menudir}}
|
|
|
|
|
|
|
|
rsvg-convert -a -w 48 -w 48 %buildroot%_iconsdir/hicolor/scalable/apps/qemu-launcher.svg -o %buildroot%_liconsdir/qemu-launcher.png
|
|
|
|
rsvg-convert -a -w 32 -w 32 %buildroot%_iconsdir/hicolor/scalable/apps/qemu-launcher.svg -o %buildroot%_iconsdir/qemu-launcher.png
|
|
|
|
rsvg-convert -a -w 16 -w 16 %buildroot%_iconsdir/hicolor/scalable/apps/qemu-launcher.svg -o %buildroot%_miconsdir/qemu-launcher.png
|
|
|
|
|
|
|
|
rm -rf %buildroot/%{_datadir}/doc/%name
|
|
|
|
|
|
|
|
%if %mdkversion < 200900
|
|
|
|
%post
|
|
|
|
%update_menus
|
|
|
|
%update_icon_cache hicolor
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %mdkversion < 200900
|
|
|
|
%postun
|
|
|
|
%clean_menus
|
|
|
|
%clean_icon_cache hicolor
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %buildroot
|
|
|
|
|
2015-08-23 20:51:06 +04:00
|
|
|
%files
|
|
|
|
#-f %name.lang
|
2012-02-01 21:13:17 +04:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README
|
|
|
|
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_liconsdir}/%{name}.png
|
|
|
|
%{_iconsdir}/%{name}.png
|
|
|
|
%{_miconsdir}/%{name}.png
|
|
|
|
%{_datadir}/pixmaps/*.xpm
|
|
|
|
%{_datadir}/%name
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_datadir}/applications/qemu-launcher.desktop
|
2015-08-23 20:51:06 +04:00
|
|
|
/usr/share/icons/hicolor/48x48/apps/qemu-launcher.png
|
|
|
|
/usr/share/icons/hicolor/scalable/apps/qemu-launcher.svg
|
2012-02-01 21:13:17 +04:00
|
|
|
|
|
|
|
|
|
|
|
|