- up to 2.6.0.0
[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.6.0.0
8 Release:        1
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:  3f0002f1d3ccdf447b4721a171ed2ac3
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 %define         specflags       -fpermissive
44
45 %description
46 ASC is a turn-based strategy game in the tradition of Battle Isle 2/3.
47 It can be played against the computer or against other human players
48 (either hotseat or by mail).
49
50 %description -l pl.UTF-8
51 ASC jest turową grą strategiczną, która posiada korzenie w Battle Isle
52 2/3. Grając w nią, można się zmierzyć z komputerem lub z innym
53 człowiekiem (przy jednym komputerze, lub przez pocztę).
54
55 %package tools
56 Summary:        Tools for ASC
57 Summary(pl.UTF-8):      Narzedzia dla ASC
58 Group:          X11/Applications/Games/Strategy
59
60 %description tools
61 Map editor and other tools for ASC.
62
63 %description tools -l pl.UTF-8
64 Edytor map i inne narzędzia dla ASC.
65
66 %prep
67 %setup -q
68 %patch0 -p1
69 %patch1 -p1
70
71 %build
72 %{__libtoolize}
73 %{__aclocal}
74 %{__autoconf}
75 %{__autoheader}
76 %{__automake}
77 %configure \
78         --with-wx-config="wx-gtk2-unicode-config"
79 %{__make}
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
84
85 %{__make} install \
86         DESTDIR=$RPM_BUILD_ROOT
87
88 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
89 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %files
95 %defattr(644,root,root,755)
96 %doc ChangeLog source/TODO
97 %attr(2755,root,games) %{_bindir}/%{name}
98 %{_datadir}/games/%{name}
99 %{_desktopdir}/%{name}.desktop
100 %{_mandir}/man6/%{name}.6*
101 %{_pixmapsdir}/%{name}.xpm
102 %{_datadir}/appdata/asc.appdata.xml
103
104 %files tools
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_bindir}/asc_demount
107 %attr(755,root,root) %{_bindir}/asc_mapedit
108 %attr(755,root,root) %{_bindir}/asc_mount
109 %attr(755,root,root) %{_bindir}/asc_weaponguide
110 %{_mandir}/man6/asc_demount.6*
111 %{_mandir}/man6/asc_mapedit.6*
112 %{_mandir}/man6/asc_mount.6*
113 %{_mandir}/man6/asc_weaponguide.6*
This page took 0.092034 seconds and 3 git commands to generate.