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