gfceux-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. Summary: GFCE UltraX Nintendo Emulator frontend
  2. Name: gfceux
  3. Version: 2.0.0
  4. Release: 1%{?_dist_release}
  5. License: GPLv2+
  6. Group: Applications/Emulators
  7. URL: http://dietschnitzel.com/gfceu/
  8. Source: http://dietschnitzel.com/gfceu/%{name}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  10. BuildArch: noarch
  11. BuildRequires: desktop-file-utils
  12. Requires: pygtk2-libglade
  13. # fceux package provided by self-build-fceux
  14. #Requires: fceux
  15. Requires: self-build-fceux
  16. Requires: hicolor-icon-theme
  17. %description
  18. GFCE Ultra is an intuitive interface for the popular Nintendo Emulator,
  19. FCE Ultra. It is designed for the GNOME desktop, and allows the user to
  20. easily play NES ROM images. Gfceu sports a number of features, including:
  21. * Network play
  22. * Custom input configuration
  23. * Fullscreen support
  24. * OpenGL support
  25. * Sound support
  26. * High compatibility, accurate emulation, and all the power of FCE Ultra!
  27. GNOME FCE Ultra is developed and maintained by Lukas Sabota.
  28. %prep
  29. %setup -q
  30. # Fix .desktop file Categories
  31. %__sed -i 's/GNOME;GTK;Game;/Game;Emulator;/' %{name}.desktop
  32. %__sed -i 's/Icon\=%{name}/Icon\=%{name}.png/' %{name}.desktop
  33. # # Patch to run fceultra instead of fceu
  34. # %__sed -i 's/'\''fceu'\''/'\''fceultra'\''/' %{name}
  35. %build
  36. %install
  37. rm -rf %{buildroot}
  38. install -d %{buildroot}%{_bindir}
  39. install -m 755 %{name} %{buildroot}%{_bindir}
  40. install -d %{buildroot}%{_datadir}/%{name}
  41. # No gfceux.glade archived!!!, but gfceux.xml archived
  42. install -m 644 {%{name}.xml,%{name}.png,%{name}_big.png} %{buildroot}%{_datadir}/%{name}
  43. # No gfceux.1 archived!!!
  44. # install -d %{buildroot}%{_mandir}/man1
  45. # install -m 644 %{name}.1 %{buildroot}%{_mandir}/man1
  46. # install desktop file and icon
  47. mkdir -p %{buildroot}%{_datadir}/applications
  48. desktop-file-install --vendor vine \
  49. --dir %{buildroot}%{_datadir}/applications \
  50. %{name}.desktop
  51. install -d %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
  52. install -p %{name}.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
  53. %clean
  54. rm -rf %{buildroot}
  55. %post
  56. touch --no-create %{_datadir}/icons/hicolor
  57. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  58. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  59. fi
  60. %postun
  61. touch --no-create %{_datadir}/icons/hicolor
  62. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  63. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  64. fi
  65. %files
  66. %defattr(-,root,root)
  67. %{_bindir}/%{name}
  68. %{_datadir}/%{name}/*
  69. #%{_mandir}/man1/*
  70. %{_datadir}/applications/vine-%{name}.desktop
  71. %{_datadir}/icons/hicolor/48x48/apps/%{name}.png
  72. %doc ChangeLog COPYING TODO INSTALL
  73. %changelog
  74. * Sun Nov 16 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.0.0-1
  75. - initial build
  76. * Sun Nov 16 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.6.0-1
  77. - initial build
  78. * Wed Jul 30 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.6.0-3
  79. - rebuild for buildsys cflags issue
  80. * Fri Nov 02 2007 Andrea Musuruane <musuruan@gmail.com> 0.6.0-2
  81. - Changed license due to new guidelines
  82. - Removed %%{?dist} tag from changelog
  83. - Updated icon cache scriptlets to be compliant to new guidelines
  84. * Thu Mar 01 2007 Andrea Musuruane <musuruan@gmail.com> 0.6.0-1
  85. - Updated to latest 0.6.0.
  86. - Added now required alsa-oss to BR
  87. - Updated URL and Source tag.
  88. - Dropped dribble-menus Requires.
  89. - Dropped --add-category X-Fedora from desktop-file-install.
  90. - Dropped .desktop file patch. Now using sed.
  91. - fceu has been renamed to fceultra to avoid conflicts (Dribble #77).
  92. * Mon Oct 23 2006 Andrea Musuruane <musuruan@gmail.com> 0.5.2-2
  93. - Added hicolor-icon-theme to Requires.
  94. - Package fceu has been renamed fceultra. Changed the Requires tag accorgingly.
  95. * Sat Oct 21 2006 Andrea Musuruane <musuruan@gmail.com> 0.5.2-1
  96. - First release for Dribble based on mde RPM
  97. - Updated to 0.5.2
  98. * Mon Aug 28 2006 Torbjorn Turpeinen <tobbe@nyvalls.se> 0.5-1
  99. - Rebuild for mde