]> git.pld-linux.org Git - packages/conquests.git/blob - conquests.spec
- initial
[packages/conquests.git] / conquests.spec
1 Summary:        Turn based strategy game similar to Civilization
2 Summary(hu.UTF-8):      Körökre osztott stratégiai játék, a Civilization-hoz hasonló
3 Name:           conquests
4 Version:        0.11
5 Release:        0.1
6 License:        GPL v2
7 Group:          X11/Applications/Games/Strategy
8 Source0:        http://homepage.ntlworld.com/mark.harman/%{name}_src.zip
9 # Source0-md5:  ca45310a13d91bf9ecfd077fb72132fe
10 URL:            http://homepage.ntlworld.com/mark.harman/conquests.html
11 Patch0:         makefile.patch
12 BuildRequires:  FreeImage-devel
13 BuildRequires:  Mesa-libGLU-devel
14 BuildRequires:  SDL-devel
15 BuildRequires:  SDL_mixer-devel
16 BuildRequires:  cg-devel
17 BuildRequires:  freetype-devel
18 BuildRequires:  lua51-devel
19 BuildRequires:  pkgconfig
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Turn based strategy game similar to Civilization.
24
25
26 %description -l hu.UTF-8
27 Körökre osztott stratégiai játék, a Civilization-hoz hasonló.
28
29 %prep
30 %setup -q -n %{name}_src
31 %patch0 -p1
32 %{__sed} -i "s@lua5\.1/@@" conquests/game.h
33
34 %build
35 PACKS="lua51 freetype2 SDL_mixer"
36 %{__make} -f makefile_conquests \
37         CC="%{__cc}" \
38         CCFLAGS="%{rpmcflags}" \
39         INC="`pkg-config --cflags $PACKS`" \
40         LIBS="`pkg-config --cflags $PACKS` -lfreeimage"
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 %{__make} install \
46         DESTDIR=$RPM_BUILD_ROOT
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
54 %attr(755,root,root) %{_bindir}/*
This page took 0.046158 seconds and 3 git commands to generate.