xwelltris-vl.spec 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. Summary: XWelltris - a tetris like popular game for X Window
  2. Summary(ja): テトリスに似たゲーム
  3. Name: xwelltris
  4. Version: 1.0.1
  5. Release: 3%{?_dist_release}
  6. License: GPL
  7. Group: Applications/Games
  8. URL: http://xnc.dubna.su/xwelltris/
  9. Source0: %{name}-%{version}.src.tar.gz
  10. Source1: %{name}.desktop
  11. Source2: %{name}.png
  12. Source3: %{name}.6
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: SDL-devel SDL_image-devel
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. %description
  18. This is a small tetris like game for X Window.
  19. Imaging that you are looking into the glass from the top.
  20. You see four walls and the bottom. The flat 2d figures falling
  21. down from the walls one by one. You can move these figures from one wall to
  22. another or rotate them...
  23. %description -l ja
  24. 軽いテトリス-ライク-ゲーム。
  25. 四角いコップを上から覗いたような視点で、
  26. 4面の壁を二次元のブロックが底に向かって次々と滑り落ちます。
  27. 壁から壁に動かしたり、回転させたりして...頑張ってください。
  28. %prep
  29. %setup -q
  30. %build
  31. CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS=-s ./configure \
  32. --prefix=%{_prefix} --with-sdl
  33. make
  34. %install
  35. rm -rf $RPM_BUILD_ROOT
  36. install -d "$RPM_BUILD_ROOT"/%{_prefix}/{bin,share/xwelltris}
  37. install xwelltris "$RPM_BUILD_ROOT"/%{_prefix}/bin
  38. install -p -m 644 data/polyomino.dat \
  39. data/board2.gif \
  40. data/font2.gif \
  41. data/topnine.gif \
  42. data/wellcuts.gif \
  43. data/wellintro.gif \
  44. "$RPM_BUILD_ROOT"/%{_prefix}/share/xwelltris
  45. # add desktop
  46. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
  47. install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
  48. # add desktop icon
  49. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pixmaps
  50. install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/pixmaps/%{name}.png
  51. # add man
  52. mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man6
  53. install -p -D -m 644 %{SOURCE3} ${RPM_BUILD_ROOT}/%{_mandir}/man6/%{name}.6
  54. %clean
  55. rm -rf $RPM_BUILD_ROOT
  56. %files
  57. %defattr(755,root,root,755)
  58. %{_bindir}/%{name}*
  59. %defattr(644,root,root,755)
  60. %doc README README.keys AUTHORS LICENSE Changelog
  61. %{_datadir}/%{name}/*
  62. %{_datadir}/applications/%{name}*
  63. %{_datadir}/pixmaps/%{name}*
  64. %{_mandir}/man6/%{name}*
  65. %changelog
  66. * Wed Oct 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.1-3vl5
  67. - applied new versioning policy, spec in utf-8
  68. * Thu Aug 16 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.1-2vl3
  69. - rebuilt with new toolchain
  70. * Tue Oct 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.1-2vl2
  71. - rebuilt for Vine Linux 4.0
  72. - changed Group to Applocations/Games
  73. - added URL
  74. * Thu Feb 17 2005 OOI Keita <ooik.ovwqlsjxcqwg4dc@privango.jp> - 1.0.1-2vl1
  75. - initial spec for vine
  76. - add desktop and icon
  77. - add man from deb
  78. - add ja summary and description