]> git.pld-linux.org Git - packages/crimsonfields.git/blob - crimsonfields.spec
dd87494bd60414b0c9f856a025a9df9891e9ce00
[packages/crimsonfields.git] / crimsonfields.spec
1 #
2 # Conditional build:
3 %bcond_without  SDL_mixer       # build without SDL_mixer
4 %bcond_without  SDL_net         # build without SDL_net
5 #
6 Summary:        A hex-based tactical war game
7 Summary(pl.UTF-8):      Taktyczna gra wojenna oparta na hex
8 Name:           crimsonfields
9 Version:        0.5.1
10 Release:        1
11 License:        GPL v2+
12 Group:          X11/Applications/Games/Strategy
13 Source0:        http://crimson.seul.org/files/crimson-%{version}.tar.bz2
14 # Source0-md5:  71d5137ede548a2108198acac44d3ab4
15 Patch0:         %{name}-autothingies.patch
16 Patch1:         %{name}-desktop.patch
17 URL:            http://crimson.seul.org/
18 BuildRequires:  SDL-devel >= 1.1.5
19 %{?with_SDL_mixer:BuildRequires:        SDL_mixer-devel}
20 %{?with_SDL_net:BuildRequires:  SDL_net-devel >= 1.2.6}
21 BuildRequires:  SDL_sound-devel
22 BuildRequires:  SDL_ttf-devel
23 BuildRequires:  autoconf
24 BuildRequires:  automake
25 BuildRequires:  glib2-devel
26 BuildRequires:  libstdc++-devel
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Crimson Fields is a tactical war game in the tradition of Battle Isle
31 for one or two players.
32
33 The outcome of the war lies in your hands. You decide which units are
34 sent to the front lines, and when to unleash the reserves. Your
35 mission objectives range from defending strategically vital locations
36 to simply destroying all enemy forces in the area. Protect supply
37 convoys or raid enemy facilities to uncover technological secrets or
38 fill your storage bays so you can repair damaged units or build new
39 ones in your own factories. Lead your troops to victory!
40
41 Tools are available to create custom maps and campaigns. You can also
42 play the original Battle Isle maps if you have a copy of the game.
43
44 %description -l pl.UTF-8
45 Crimson Fields to taktyczna gra wojenna dla jednego lub dwóch graczy,
46 utrzymana w tradycji Battle Isle.
47
48 Wynik gry leży w Twoich rękach. Ty decydujesz, które jednostki są
49 wysyłane na linie frontu i kiedy wypuścić rezerwę. Cele misji
50 rozciągają się od obrony strategicznych miejsc po zwykłe zniszczenie
51 wszystkich sił wroga w terenie. Zabezpiecz konwoje dostawcze albo
52 najedź na wroga, aby odkryć jego sekrety technologiczne lub uzupełnić
53 swoje zapasy, co umożliwi naprawę uszkodzonych jednostek albo
54 zbudowanie nowych we własnych fabrykach. Prowadź swoje wojsko do
55 zwycięstwa!
56
57 Dostępne są narzędzia do tworzenia własnych map i kampanii. Można
58 także grać na oryginalnych mapach Battle Isle, jeśli mamy kopię gry.
59
60 %prep
61 %setup -q -n crimson-%{version}
62 %patch0 -p1
63 %patch1 -p1
64
65 %build
66 cp %{_datadir}/automake/config.sub config/.
67 cp %{_datadir}/automake/config.guess config/.
68 glib-gettextize --copy --force
69 %{__aclocal}
70 %{__autoconf}
71 %{__automake}
72 %configure \
73         --enable-cfed \
74         --enable-bi2cf \
75         --enable-comet
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80
81 %{__make} install \
82         DESTDIR=$RPM_BUILD_ROOT
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %files
88 %defattr(644,root,root,755)
89 %doc ChangeLog NEWS README THANKS TODO
90 %attr(755,root,root) %{_bindir}/*
91 %dir %{_datadir}/crimson
92 %{_datadir}/crimson/*.ttf
93 %{_datadir}/crimson/cf.dat
94 %{_datadir}/crimson/default.*
95 %{_datadir}/crimson/*.bmp
96 %{_datadir}/crimson/levels
97 %dir %{_datadir}/crimson/locale
98 %lang(de) %{_datadir}/crimson/locale/de.dat
99 %lang(fr) %{_datadir}/crimson/locale/fr.dat
100 %lang(en) %{_datadir}/crimson/locale/en.dat
101 %lang(hu) %{_datadir}/crimson/locale/hu.dat
102 %lang(it) %{_datadir}/crimson/locale/it.dat
103 %lang(pl) %{_datadir}/crimson/locale/pl.dat
104 %lang(sk) %{_datadir}/crimson/locale/sk.dat
105 %lang(sr) %{_datadir}/crimson/locale/sr.dat
106 %{_datadir}/crimson/music
107 %{_datadir}/crimson/sound
108 %{_desktopdir}/*.desktop
109 %{_mandir}/man*/*
110 %{_pixmapsdir}/crimson.png
This page took 0.144045 seconds and 2 git commands to generate.