]> git.pld-linux.org Git - packages/brikx.git/blob - brikx.spec
- fix build (added -include patch)
[packages/brikx.git] / brikx.spec
1 Summary:        Puzzle game
2 Summary(pl):    Gra logiczna
3 Name:           brikx
4 Version:        0.2.3
5 Release:        1
6 License:        GPL v2+
7 Group:          X11/Applications/Games
8 Source0:        http://dl.sourceforge.net/brikx/%{name}-%{version}.tar.bz2
9 # Source0-md5:  5b22082e352e9a2a5b61fe2b6b4d0b70
10 URL:            http://sourceforge.net/projects/brikx
11 Patch0:         %{name}-include.patch
12 BuildRequires:  SDL-devel
13 BuildRequires:  SDL_image-devel
14 BuildRequires:  SDL_ttf-devel
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  freetype
18 BuildRequires:  sed >= 4.0
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 A small puzzle game in which your goal is to remove all tiles. You are
23 held up by other tiles, gravity, walls, and other things.
24
25 %description -l pl
26 Ma³a gra logiczna, w której celem gracza jest pozbycie siê wszystkich
27 kulek. W dokonaniu tego przeszkadzaj± inne kulki, grawitacja, ¶ciany
28 oraz inne rzeczy.
29
30 %prep
31 %setup -q -n %{name}
32 %patch0 -p1
33 %{__sed} -i 's@data@%{_datadir}/%{name}@' src/brikx.h
34
35 %build
36 %{__aclocal}
37 %{__autoconf}
38 %{__autoheader}
39 %{__automake}
40 %configure
41 %{__make}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 cp -r src/data/* $RPM_BUILD_ROOT%{_datadir}/%{name}
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc AUTHORS ChangeLog
58 %attr(755,root,root) %{_bindir}/%{name}
59 %{_datadir}/%{name}
This page took 0.364794 seconds and 4 git commands to generate.