]> git.pld-linux.org Git - packages/warzone2100.git/blob - warzone2100.spec
- unconditional noarch subpackages
[packages/warzone2100.git] / warzone2100.spec
1 Summary:        3D realtime strategy on a future Earth
2 Summary(pl.UTF-8):      Gra RTS, której akcja toczy się w przyszłości
3 Name:           warzone2100
4 Version:        3.1.2
5 Release:        5
6 License:        GPL v2+
7 Group:          X11/Applications/Games/Strategy
8 Source0:        http://downloads.sourceforge.net/warzone2100/%{name}-%{version}.tar.xz
9 # Source0-md5:  4e947125e9604821164f1ad9d1922447
10 Patch0:         glew-1.12.patch
11 Patch1:         gcc8.patch
12 URL:            http://www.wz2100.net/
13 BuildRequires:  OpenAL-devel >= 0.0.8-4
14 BuildRequires:  OpenGL-GLU-devel
15 BuildRequires:  QtNetwork-devel
16 BuildRequires:  QtScript-devel
17 BuildRequires:  SDL-devel >= 1.2
18 BuildRequires:  SDL_net-devel
19 BuildRequires:  autoconf
20 BuildRequires:  automake
21 BuildRequires:  bison
22 BuildRequires:  flex
23 BuildRequires:  gettext-tools
24 BuildRequires:  glew-devel
25 BuildRequires:  libjpeg-devel
26 BuildRequires:  libmad-devel
27 BuildRequires:  libpng-devel >= 1.2
28 BuildRequires:  libtheora-devel >= 0.1
29 BuildRequires:  libvorbis-devel >= 1.1
30 BuildRequires:  physfs-devel
31 BuildRequires:  pkgconfig
32 BuildRequires:  popt-devel
33 BuildRequires:  quesoglc-devel
34 BuildRequires:  sed >= 4.0
35 BuildRequires:  unzip
36 BuildRequires:  xorg-lib-libXt-devel
37 BuildRequires:  zip
38 Requires:       %{name}-data = %{version}-%{release}
39 Requires:       fonts-TTF-DejaVu
40 Requires:       gdb
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %description
44 Warzone 2100 is a real-time strategy game. Although comparable to
45 Earth 2150 in many significant respects, it does contain aspects that
46 are unique. These include various radar technologies and a greater
47 focus on artillery and counter-battery technologies.
48
49 %description -l pl.UTF-8
50 Warzone 2100 jest grą strategiczną czasu rzeczywistego. Chociaż gra
51 bardzo przypomina grę Earth 2150, to jednak zostało do niej
52 wprowadzonych kilka ciekawych pomysłów. Są to między innymi rozmaite
53 technologie radarowe oraz większe skupienie się na technologiach
54 artyleryjskich oraz obronie przeciwlotniczej.
55
56 %package data
57 Summary:        Warzone 2100 data files
58 Group:          X11/Applications/Games/Strategy
59 BuildArch:      noarch
60
61 %description data
62 Warzone 2100 data files
63
64 %prep
65 %setup -q
66 %patch0 -p1
67 %patch1 -p1
68
69 # et_EE -> et
70 %{__sed} -e 's/et_EE/et/g' -i po/LINGUAS
71 mv po/et{_EE,}.po
72 mv po/et{_EE,}.gmo
73
74 %build
75 %{__aclocal} -I m4
76 %{__autoconf}
77 %{__autoheader}
78 %{__automake}
79 %configure \
80         --with-distributor="PLD" \
81         --docdir=%{_docdir}/%{name}-%{version} \
82         --with-icondir=%{_pixmapsdir}
83 %{__make}
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87
88 %{__make} install \
89         DESTDIR=$RPM_BUILD_ROOT
90
91 # unsupported
92 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ca_ES
93 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/uk_UA
94
95 %find_lang %{name}
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %files -f %{name}.lang
101 %defattr(644,root,root,755)
102 %doc %{_docdir}/%{name}-%{version}
103 %attr(755,root,root) %{_bindir}/%{name}
104 %{_mandir}/man6/%{name}.6*
105 %{_desktopdir}/%{name}.desktop
106 %{_pixmapsdir}/%{name}.png
107
108 %files data
109 %defattr(644,root,root,755)
110 %{_datadir}/%{name}
This page took 0.116439 seconds and 4 git commands to generate.