numptyphysics-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. Name: numptyphysics
  2. Version: 0.3
  3. Release: 0.5.20080925svn%{?dist}
  4. Summary: A crayon-drawing based physics puzzle game
  5. Summary: クレヨン風お絵かき物理パズルゲーム
  6. Group: Applications/Games
  7. License: GPLv3+
  8. URL: http://numptyphysics.garage.maemo.org/
  9. # svn co -r81 https://garage.maemo.org/svn/numptyphysics/trunk numptyphysics
  10. # tar czf numptyphysics.tar.gz numptyphysics --exclude .svn
  11. Source0: numptyphysics.tar.gz
  12. Source1: numptyphysics.desktop
  13. Source10: numptyphysics-levels-2008-09-27.tar.gz
  14. Patch0: numptyphysics-0.3-gcc43.patch
  15. Patch1: numptyphysics-0.3-doublefree.patch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  17. BuildRequires: libX11-devel
  18. BuildRequires: SDL_image-devel
  19. BuildRequires: desktop-file-utils
  20. %description
  21. Harness gravity with your crayon and set about creating blocks, ramps,
  22. levers, pulleys and whatever else you fancy to get the little red thing to
  23. the little yellow thing.
  24. %description -l ja
  25. ブロックや坂道、レバー、滑車など、必要な道具をクレヨンを使って画面上に描いて、
  26. 後は重力を利用して小さな赤い物体を小さな黄色い物体に当ててください。
  27. %prep
  28. %setup -q -n %{name}
  29. %patch0 -p1 -b .gcc43
  30. %patch1 -p1 -b .doublefree
  31. %build
  32. # Note the ARCH variable doesn't denote real arch. It's just used to hit a
  33. # conditional that we're not compiling with mingw
  34. make %{?_smp_mflags} \
  35. ARCH=i686 \
  36. CCOPTS="%{optflags} -IBox2D/Include"
  37. %install
  38. rm -rf $RPM_BUILD_ROOT
  39. # Directory structure
  40. install -d $RPM_BUILD_ROOT%{_datadir}/numptyphysics
  41. install -d $RPM_BUILD_ROOT%{_bindir}
  42. install -d $RPM_BUILD_ROOT%{_datadir}/pixmaps
  43. # Files
  44. install -pm 644 *.png *.nph *.jpg $RPM_BUILD_ROOT%{_datadir}/numptyphysics
  45. install -pm 755 i686/Game $RPM_BUILD_ROOT%{_bindir}/numptyphysics
  46. install -pm 644 debian/numptyphysics64.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/numptyphysics.png
  47. # Additional levels
  48. tar xzf %{SOURCE10} -C $RPM_BUILD_ROOT%{_datadir}/numptyphysics
  49. # Icon
  50. desktop-file-install --vendor=vine %{SOURCE1} \
  51. --dir=$RPM_BUILD_ROOT%{_datadir}/applications
  52. %clean
  53. rm -rf $RPM_BUILD_ROOT
  54. %files
  55. %defattr(-,root,root,-)
  56. %{_bindir}/%{name}
  57. %{_datadir}/%{name}
  58. %{_datadir}/pixmaps/%{name}.png
  59. %{_datadir}/applications/vine-%{name}.desktop
  60. %changelog
  61. * Thu Dec 30 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.3-0.5.20080925svn
  62. - initial build for Vine Linux based on fedora development
  63. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-0.5.20080925svn
  64. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  65. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-0.4.20080925svn
  66. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  67. * Tue Sep 30 2008 Lubomir Rintel <lkundrak@v3.sk> 0.3-0.4.20080925svn
  68. - Add more levels
  69. * Mon Sep 29 2008 Lubomir Rintel <lkundrak@v3.sk> 0.3-0.2.20080925svn
  70. - Review, small tidy-ups
  71. * Thu Sep 25 2008 Lubomir Rintel <lkundrak@v3.sk> 0.3-0.1.20080925svn
  72. - Initial packaging attempt