]> git.pld-linux.org Git - packages/caph.git/blob - caph.spec
- initial
[packages/caph.git] / caph.spec
1 Summary:        A sandbox game, based on physics
2 Name:           caph
3 Version:        091231
4 Release:        0.3
5 License:        GPL v2
6 Group:          Applications
7 Source0:        http://dl.sourceforge.net/project/caphgame/caph/caph-091231/%{name}-src-%{version}.tar.bz2
8 # Source0-md5:  26d743ed2b82726dea8cd3c4780b3adb
9 Source1:        http://dl.sourceforge.net/project/caphgame/caph/caph-091231/%{name}-data-%{version}.tar.bz2
10 # Source1-md5:  42877f73bba16d835391ddaf747ccdd3
11 Patch0:         %{name}-libpng.patch
12 Patch1:         %{name}-sysdatadir.patch
13 Patch2:         %{name}-mapsdir.patch
14 URL:            http://caphgame.sourceforge.net/
15 BuildRequires:  Mesa-libGL-devel
16 BuildRequires:  SDL-devel
17 BuildRequires:  libpng-devel
18 BuildRequires:  pkgconfig
19 BuildRequires:  sed >= 4.0
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 It is a sandbox game, based on physics. The game target is to make
24 contact red object with green object. You can use various objects,
25 solid, wire (rope), and bendable objects. Gravitation will help you.
26
27 %prep
28 %setup -q -n %{name}-src
29 tar xvf %{SOURCE1}
30
31 %patch0 -p1
32 %patch1 -p1
33 %patch2 -p1
34
35 %{__sed} -i "1 s,/sh,/bash," src/{build,mkgen}
36 %{__sed} -i "s,libgl,gl," src/build
37
38 %build
39 cd src
40 CFLAGS="%{rpmcflags}" \
41 LFLAGS="%{rpmldflags}" \
42 ./build
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 install -d $RPM_BUILD_ROOT%{_bindir}
48 install bin/caph $RPM_BUILD_ROOT%{_bindir}
49
50 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
51 cp -r caph-data/share/caph/* $RPM_BUILD_ROOT%{_datadir}/%{name}
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc doc/caph/CHANGELOG doc/caph/README
59 %attr(755,root,root) %{_bindir}/caph
60 %{_datadir}/%{name}
This page took 0.028066 seconds and 3 git commands to generate.