qemu-launcher-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. Summary: A graphical front-end to Qemu virtual machines
  2. Summary(ja): Qemu 仮想マシン用グラフィカルフロントエンド
  3. Name: qemu-launcher
  4. Version: 1.7.4
  5. Release: 1%{?_dist_release}
  6. Group: Applications/Emulators
  7. License: GPLv2+
  8. URL: https://gna.org/projects/qemulaunch/
  9. Source0: http://download.gna.org/qemulaunch/1.7.x/%{name}_%{version}.tar.gz
  10. #Patch0 changes:
  11. # qemu-launcher.desktop: Removed file extension from Icon, changed Categories
  12. # to System
  13. # Makefile: "install" commands given -p switch to preserve timestamps
  14. Patch0: %{name}-%{version}.patch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  16. BuildArch: noarch
  17. ExcludeArch: ppc64
  18. BuildRequires: desktop-file-utils
  19. BuildRequires: gettext
  20. BuildRequires: libxml2
  21. Requires: qemu
  22. Requires: perl-Gtk2-GladeXML
  23. Requires: perl-gettext
  24. %description
  25. Qemu Launcher provides a graphical front-end to all basic, and many advanced
  26. QEMU computer emulator options. It allows you to create, save, and run multiple
  27. virtual machine configurations, create and convert disk images.
  28. %prep
  29. %setup -q
  30. %patch -p1
  31. %build
  32. make PREFIX=%{_prefix} %{?_smp_mflags}
  33. %install
  34. rm -rf %{buildroot}
  35. make install \
  36. PREFIX=%{_prefix} DESTDIR=%{buildroot} \
  37. DOCSDIR="." #Install docs in cwd, and catch them with %doc below
  38. desktop-file-install --vendor fedora --delete-original \
  39. --dir %{buildroot}/%{_datadir}/applications/ \
  40. %{buildroot}/%{_datadir}/applications/%{name}.desktop
  41. %find_lang %{name}
  42. %clean
  43. rm -rf %{buildroot}
  44. %post
  45. touch --no-create %{_datadir}/icons/hicolor
  46. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  47. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  48. fi
  49. %postun
  50. touch --no-create %{_datadir}/icons/hicolor
  51. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  52. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  53. fi
  54. %files -f %{name}.lang
  55. %defattr(-,root,root,-)
  56. %doc Changelog COPYING README TODO
  57. %{_bindir}/*
  58. %{_datadir}/%{name}
  59. %{_datadir}/applications/*
  60. %{_datadir}/pixmaps/*
  61. %{_datadir}/icons/hicolor/*/apps/*
  62. %{_mandir}/man1/*
  63. %changelog
  64. * Sun Jul 06 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7.4-1
  65. - initial build for Vine Linux
  66. * Sat Dec 09 2007 Nicholas Boyle <nsboyle@gmail.com> - 1.7.4-4
  67. - Added ExcludeArch: ppc64, as there is no ppc64 build for qemu
  68. * Tue Dec 04 2007 Nicholas Boyle <nsboyle@gmail.com> - 1.7.4-3
  69. - Clean after build now correctly removes buildroot
  70. - Package now takes ownership of directories it creates
  71. - Patched Makefile to preserve timestamps on files during install
  72. - Included source tarball with original timestamps
  73. * Sat Dec 01 2007 Nicholas Boyle <nsboyle@gmail.com> - 1.7.4-2
  74. - Changed BuildArch to noarch
  75. - Changed PREFIX and doc installation behavior during make and make install
  76. rather than patching the Makefile
  77. - Changed package Group to Applications/Emulators
  78. * Sun Nov 25 2007 Nicholas Boyle <nsboyle@gmail.com> - 1.7.4-1
  79. - Initial Fedora packaging