source: projects/specs/branches/6/n/numptyphysics/numptyphysics-vl.spec @ 2419

Revision 2419, 3.1 KB checked in by kazutaka, 13 years ago (diff)

新規追加

Line 
1Name:           numptyphysics
2Version:        0.3
3Release:        0.5.20080925svn%{?dist}
4Summary:        A crayon-drawing based physics puzzle game
5Summary:        クレヨン風お絵かき物理パズルゲーム
6
7Group:          Applications/Games
8License:        GPLv3+
9URL:            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
12Source0:        numptyphysics.tar.gz
13Source1:        numptyphysics.desktop
14Source10:       numptyphysics-levels-2008-09-27.tar.gz
15Patch0:         numptyphysics-0.3-gcc43.patch
16Patch1:         numptyphysics-0.3-doublefree.patch
17BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
18
19BuildRequires:  libX11-devel
20BuildRequires:  SDL_image-devel
21BuildRequires:  desktop-file-utils
22
23%description
24Harness gravity with your crayon and set about creating blocks, ramps,
25levers, pulleys and whatever else you fancy to get the little red thing to
26the 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
41make %{?_smp_mflags}    \
42        ARCH=i686       \
43        CCOPTS="%{optflags} -IBox2D/Include"
44
45
46%install
47rm -rf $RPM_BUILD_ROOT
48
49# Directory structure
50install -d $RPM_BUILD_ROOT%{_datadir}/numptyphysics
51install -d $RPM_BUILD_ROOT%{_bindir}
52install -d $RPM_BUILD_ROOT%{_datadir}/pixmaps
53
54# Files
55install -pm 644 *.png *.nph *.jpg $RPM_BUILD_ROOT%{_datadir}/numptyphysics
56install -pm 755 i686/Game $RPM_BUILD_ROOT%{_bindir}/numptyphysics
57install -pm 644 debian/numptyphysics64.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/numptyphysics.png
58
59# Additional levels
60tar xzf %{SOURCE10} -C $RPM_BUILD_ROOT%{_datadir}/numptyphysics
61
62# Icon
63desktop-file-install --vendor=vine %{SOURCE1} \
64        --dir=$RPM_BUILD_ROOT%{_datadir}/applications
65
66
67%clean
68rm -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
Note: See TracBrowser for help on using the repository browser.