vacuum-magic-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. %define srcname vacuum
  2. %define major_ver 0.13
  3. %define minor_ver a
  4. Name: vacuum-magic
  5. Version: %{major_ver}%{minor_ver}
  6. Release: 3%{?_dist_release}
  7. Summary: Vacuum Magic is a fast-paced action game
  8. Summary(ja): テンポの速いアクションゲーム
  9. License: GPL
  10. URL: http://apocalypse.rulez.org/vacuum
  11. Group: Applications/Games
  12. Source0: %{srcname}-%{version}.tar.gz
  13. Source1: %{name}.png
  14. BuildRequires: perl-Compress-Zlib
  15. BuildRequires: SDL_perl
  16. BuildRequires: desktop-file-utils
  17. Requires: perl
  18. Requires: SDL_perl
  19. Requires: perl-Compress-Zlib
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  21. BuildArch: noarch
  22. %description
  23. Vacuum Magic is a fast-paced action game.
  24. The point of the game is using your magical vacuum field to
  25. collect food and defend against monsters. Food and certain
  26. monsters can also be spat out and used as a projectile
  27. against other monsters. Vacuum Magic can be played by up to
  28. six players, either cooperatively or against each other.
  29. %description -l ja
  30. Vacuum Magic はテンポの速いアクションゲームです。
  31. 魔法の吸い込み砲を使って、食料を集めたり、怪物に反撃をする。
  32. また、飲み込んだ食料やある怪物は吐き出せて、
  33. ほかの怪物に対して弾として使える。
  34. Vacuum Magic は最大で 6 人同時プレイが可能で、
  35. 協力プレイまたは反撃プレイのどちらかで遊べます。
  36. %prep
  37. %setup -q -n %{srcname}-%{major_ver}
  38. %build
  39. %configure
  40. %__make
  41. %install
  42. [ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"
  43. %makeinstall
  44. ## rename
  45. %__sed -i -e "s@/share/%{srcname}@/share/%{name}@g" \
  46. %{buildroot}/%{_bindir}/%{srcname}
  47. %__mv %{buildroot}/%{_bindir}/%{srcname} %{buildroot}/%{_bindir}/%{name}
  48. %__mv %{buildroot}/%{_datadir}/%{srcname} %{buildroot}/%{_datadir}/%{name}
  49. %__mv %{buildroot}/%{_datadir}/man/man6/%{srcname}.6 \
  50. %{buildroot}/%{_datadir}/man/man6/%{name}.6
  51. ## NO use perl(Win32), which is required by perl(L2hos::Win32)
  52. %__sed -i -e 's/use Win32;/## RPM requires perl(Win32)\n# use Win32;/' \
  53. $RPM_BUILD_ROOT%{_bindir}/%{name}
  54. ## menu
  55. %__install -dm 755 %{buildroot}%{_datadir}/pixmaps
  56. %__install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps
  57. %__cat > %{name}.desktop << EOF
  58. [Desktop Entry]
  59. Comment=Vacuum Magic is a fast-paced action game
  60. Name=Vacuum Magic
  61. GenericName=Vacuum Magic
  62. Type=Application
  63. Exec=%{name}
  64. Icon=%{name}
  65. Terminal=false
  66. Categories=GNOME;Application;Game
  67. EOF
  68. desktop-file-install --vendor Vine \
  69. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  70. --mode 644 \
  71. %{name}.desktop
  72. %post
  73. %{_bindir}/update-desktop-database %{_datadir}/applications || :
  74. %postun
  75. %{_bindir}/update-desktop-database %{_datadir}/applications || :
  76. %clean
  77. [ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"
  78. %files
  79. %defattr(-,root,root,-)
  80. %doc AUTHORS ChangeLog README NEWS TODO
  81. %doc %{_mandir}/man6/%{name}.6.gz
  82. %{_bindir}/%{name}
  83. %dir %{_datadir}/%{name}
  84. %{_datadir}/%{name}/*
  85. %{_datadir}/applications/*.desktop
  86. %{_datadir}/pixmaps/*.png
  87. %changelog
  88. * Tue Jan 24 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.13a-3
  89. - rebuild
  90. * Sat Feb 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.13a-2
  91. - rebuild for vl6
  92. * Sat Aug 02 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.13a-1
  93. - initial build