black-box-vl.spec 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. Name: black-box
  2. License: GPL
  3. Group: Applications/Games
  4. Summary: Find the crystals
  5. Summary(ja): 隠された水晶の位置を推測するパズルゲーム
  6. Version: 1.4.8
  7. Release: 1%{?_dist_release}
  8. URL: http://www.linux-games.com/black-box/
  9. Source: %{name}-%{version}.tar.gz
  10. Source1: %{name}.xpm
  11. Source2: %{name}.desktop
  12. Source3: %{name}.6
  13. Patch1: black-box-1.4.3-maxpath.dif
  14. Patch3: black-box-1.4.3-config.patch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-build
  16. BuildRequires: automake
  17. BuildRequires: autoconf
  18. BuildRequires: SDL-devel
  19. BuildRequires: SDL_mixer-devel
  20. BuildRequires: SDL_image-devel
  21. BuildRequires: libpng-devel
  22. Requires: SDL
  23. Requires: SDL_mixer
  24. Requires: SDL_image
  25. Requires: libpng
  26. Vendor: Project Vine
  27. Distribution: Vine Linux
  28. Packager: OOI Keita <ooik.ovwqlsjxcqwg4dc@privango.jp>
  29. %description
  30. There's a black box. You can shoot in and watch, where the shot leaves
  31. the box. In the box, crystals are reflecting the shots. You have to
  32. guess where the crystals are hidden, by watching your shots.
  33. %description -l ja
  34. ブラックボックスに光線をあてると、光の跡が残ります。
  35. 箱の中にある水晶が、光を反射しているのです。
  36. 光の跡を手がかりにに、水晶が隠されている場所を推測しなければなりません。
  37. %prep
  38. %setup
  39. %patch1
  40. %patch3 -p0 -b .config
  41. %build
  42. aclocal
  43. automake -a
  44. autoconf
  45. #CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" ./configure --prefix=%{_prefix}
  46. %configure --prefix=%{_prefix}
  47. make
  48. %install
  49. rm -rf $RPM_BUILD_ROOT
  50. make DESTDIR=$RPM_BUILD_ROOT install-strip
  51. # add desktop icon
  52. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pixmaps
  53. install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT/%{_datadir}/pixmaps/%{name}.xpm
  54. # add desktop
  55. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
  56. install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
  57. # add man
  58. mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man6
  59. install -p -D -m 644 %{SOURCE3} ${RPM_BUILD_ROOT}/%{_mandir}/man6/%{name}.6
  60. %clean
  61. rm -rf $RPM_BUILD_ROOT
  62. %files
  63. %defattr(-,root,root)
  64. %doc AUTHORS COPYING ChangeLog README NEWS
  65. %{_bindir}/%{name}
  66. %{_datadir}/black-box
  67. %{_datadir}/pixmaps
  68. %{_datadir}/applications
  69. %{_mandir}/man6
  70. %changelog -n black-box
  71. * Tue Feb 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.8-1
  72. - update to 1.4.8
  73. - remove Patch0,2
  74. - add BuildRequires: SDL_image-devel
  75. * Sat Sep 06 2008 Shu KONNO <owa@bg.wakwak.com> 1.4.3-2vl5
  76. - applied new versioning policy, spec in utf-8
  77. - added black-box-1.4.3-config.patch
  78. * Tue Oct 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.4.3-1vl2
  79. - rebuilt for Vine Linux 4.0
  80. - changed Group to Applications/Games
  81. * Sun Feb 6 2005 OOI Keita <ooik.ovwqlsjxcqwg4dc@privango.jp> - 1.4.3-1vl1
  82. - initial build
  83. - patchs (and source) from suse
  84. - man from deb
  85. - add desktop and icon