black-box-vl.spec 2.6 KB

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