airstrike-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. Name: airstrike
  2. Version: 1.0
  3. Release: 3.pre6%{?_dist_release}
  4. Summary: 2D Air combat
  5. Summary(ja): 複葉機による二次元対戦ゲーム
  6. Vendor: Project Vine
  7. Distribution: Vine Linux
  8. URL: http://icculus.org/airstrike/
  9. Source0: %{name}-pre6a-src.tar.gz
  10. Source1: %{name}48x48.png
  11. Source2: %{name}.desktop
  12. Source3: %{name}
  13. Patch0: airstrikerc.patch
  14. License: GPL
  15. Group: Applications/Games
  16. BuildRequires: SDL-devel SDL_image-devel SDL_mixer-devel
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. Prefix: /usr
  19. %description
  20. Airstrike is a 2d biplane dogfight game in the tradition of the
  21. Intellivision and Amiga games 'Biplanes' and 'BIP'. It features a
  22. robust physics engine and several other extensions of the original
  23. games.
  24. %description -l ja
  25. IntellivisionとAmigaのゲーム、'Biplanes'と'BIP'に似た、2Dの複葉機対戦
  26. ゲームです。元になったゲームに比べ、強健な物理エンジンと新たに追加された
  27. 拡張機能が特徴です。
  28. %prep
  29. rm -rf $RPM_BUILD_ROOT
  30. %setup -q -n %{name}-pre6a-src
  31. %patch0 -p1
  32. %build
  33. sed -i 's|-lSDL_mixer|-lSDL_mixer -lm|' src/Makefile
  34. make airstrike-sound
  35. %install
  36. mkdir -p $RPM_BUILD_ROOT%{_bindir}
  37. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
  38. mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/data
  39. mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/data/sound
  40. mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
  41. mkdir -p $RPM_BUILD_ROOT%{_mandir}/man6/
  42. install -p -m 755 %{name} $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}
  43. install -p -m 644 airstrikerc $RPM_BUILD_ROOT%{_datadir}/%{name}/
  44. install -p -m 644 data/*.png $RPM_BUILD_ROOT%{_datadir}/%{name}/data
  45. install -p -m 644 data/*.txt $RPM_BUILD_ROOT%{_datadir}/%{name}/data
  46. install -p -m 644 data/sound/* $RPM_BUILD_ROOT%{_datadir}/%{name}/data/sound
  47. install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/pixmaps
  48. install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/applications
  49. install -p -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/%{name}
  50. install -p -m 644 doc/airstrike.6 $RPM_BUILD_ROOT%{_mandir}/man6/airstrike.6
  51. %clean
  52. rm -rf $RPM_BUILD_ROOT
  53. %files
  54. %defattr(-,root,root)
  55. %doc COPYING LICENSE INSTALL README ChangeLog
  56. %{_bindir}/%{name}
  57. %{_datadir}/pixmaps/%{name}*
  58. %{_datadir}/%{name}/*
  59. %{_datadir}/applications/%{name}*
  60. %{_mandir}/man6/*
  61. %changelog
  62. * Sun Jan 25 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0-3.pre6
  63. - rebuild with VineSeed environment
  64. * Sat Jun 18 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 1.0-2.pre6
  65. - rebuild for Vine Linux 6
  66. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 1.0-1.pre6vl5
  67. - applied new versioning policy, spec in utf-8
  68. * Mon Oct 9 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0-0vl1.pre6
  69. - rebuilt for Vine Linux 4.0
  70. - changed Group to Applications/Games
  71. * Sat Feb 5 2005 OOI Keita <ooik.ovwqlsjxcqwg4dc@privango.jp> - 1.0-0vl0.pre6
  72. - add man
  73. - add jp summary and description
  74. - sound enable
  75. - airstrikerc.patch
  76. * Fri Feb 7 2003 Michal Ambroz <rebus@seznam.cz>
  77. - pre6 version
  78. * Sat Oct 26 2002 Michal Ambroz <rebus@seznam.cz>
  79. - initial spec file