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