]> git.pld-linux.org Git - packages/asc.git/blob - asc.spec
- release 5
[packages/asc.git] / asc.spec
1 # TODO:
2 # - check sounds - doesn't work for me
3
4 Summary:        Advanced Strategic Command - a free, turn based strategy game
5 Summary(pl.UTF-8):      Advanced Strategic Command - turowa gra strategiczna
6 Name:           asc
7 Version:        2.4.0.0
8 Release:        5
9 License:        GPL v2+
10 Group:          X11/Applications/Games/Strategy
11 Source0:        http://downloads.sourceforge.net/asc-hq/%{name}-%{version}.tar.bz2
12 # Source0-md5:  8c18a7cf84cb53b04527d864301d405d
13 Source1:        %{name}.desktop
14 Source2:        %{name}.xpm
15 Patch0:         %{name}-configure.patch
16 Patch1:         %{name}-lua.patch
17 URL:            http://www.asc-hq.org/
18 BuildRequires:  SDL-devel >= 1.2.2
19 BuildRequires:  SDL_image-devel
20 BuildRequires:  SDL_mixer-devel >= 1.2
21 BuildRequires:  SDL_sound-devel
22 BuildRequires:  autoconf
23 BuildRequires:  automake
24 BuildRequires:  boost-devel >= 1.35.0
25 BuildRequires:  bzip2-devel >= 1.0.0
26 BuildRequires:  curl-devel >= 7.10.0
27 BuildRequires:  expat-devel
28 BuildRequires:  freetype-devel
29 BuildRequires:  libjpeg-devel
30 BuildRequires:  libpng-devel
31 BuildRequires:  libsigc++12-devel >= 1.2
32 BuildRequires:  libtool >= 2:1.5
33 BuildRequires:  lua51-devel
34 BuildRequires:  physfs-devel
35 BuildRequires:  pkgconfig
36 BuildRequires:  wxGTK2-unicode-gl-devel
37 BuildRequires:  xvid-devel
38 BuildRequires:  zip
39 BuildRequires:  zlib-devel
40 Obsoletes:      asc-music
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %description
44 ASC is a turn-based strategy game in the tradition of Battle Isle 2/3.
45 It can be played against the computer or against other human players
46 (either hotseat or by mail).
47
48 %description -l pl.UTF-8
49 ASC jest turową grą strategiczną, która posiada korzenie w Battle Isle
50 2/3. Grając w nią, można się zmierzyć z komputerem lub z innym
51 człowiekiem (przy jednym komputerze, lub przez pocztę).
52
53 %package tools
54 Summary:        Tools for ASC
55 Summary(pl.UTF-8):      Narzedzia dla ASC
56 Group:          X11/Applications/Games/Strategy
57
58 %description tools
59 Map editor and other tools for ASC.
60
61 %description tools -l pl.UTF-8
62 Edytor map i inne narzędzia dla ASC.
63
64 %prep
65 %setup -q
66 %patch0 -p1
67 %patch1 -p1
68
69 %build
70 %{__libtoolize}
71 %{__aclocal}
72 %{__autoconf}
73 %{__autoheader}
74 %{__automake}
75 %configure \
76         --with-wx-config="wx-gtk2-unicode-config"
77 %{__make}
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
82
83 %{__make} install \
84         DESTDIR=$RPM_BUILD_ROOT
85
86 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
87 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %files
93 %defattr(644,root,root,755)
94 %doc ChangeLog source/TODO
95 %attr(2755,root,games) %{_bindir}/%{name}
96 %{_datadir}/games/%{name}
97 %{_desktopdir}/%{name}.desktop
98 %{_mandir}/man6/%{name}.6*
99 %{_pixmapsdir}/%{name}.xpm
100
101 %files tools
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_bindir}/asc_demount
104 %attr(755,root,root) %{_bindir}/asc_mapedit
105 %attr(755,root,root) %{_bindir}/asc_mount
106 %attr(755,root,root) %{_bindir}/asc_weaponguide
107 %{_mandir}/man6/asc_demount.6*
108 %{_mandir}/man6/asc_mapedit.6*
109 %{_mandir}/man6/asc_mount.6*
110 %{_mandir}/man6/asc_weaponguide.6*
This page took 0.029827 seconds and 4 git commands to generate.