]> git.pld-linux.org Git - packages/warzone2100.git/blob - warzone2100.spec
- release 5 (by relup.sh)
[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 %if "%{_rpmversion}" >= "5"
60 BuildArch:      noarch
61 %endif
62
63 %description data
64 Warzone 2100 data files
65
66 %prep
67 %setup -q
68 %patch0 -p1
69 %patch1 -p1
70
71 # et_EE -> et
72 %{__sed} -e 's/et_EE/et/g' -i po/LINGUAS
73 mv po/et{_EE,}.po
74 mv po/et{_EE,}.gmo
75
76 %build
77 %{__aclocal} -I m4
78 %{__autoconf}
79 %{__autoheader}
80 %{__automake}
81 %configure \
82         --with-distributor="PLD" \
83         --docdir=%{_docdir}/%{name}-%{version} \
84         --with-icondir=%{_pixmapsdir}
85 %{__make}
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89
90 %{__make} install \
91         DESTDIR=$RPM_BUILD_ROOT
92
93 # unsupported
94 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ca_ES
95 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/uk_UA
96
97 %find_lang %{name}
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %files -f %{name}.lang
103 %defattr(644,root,root,755)
104 %doc %{_docdir}/%{name}-%{version}
105 %attr(755,root,root) %{_bindir}/%{name}
106 %{_mandir}/man6/%{name}.6*
107 %{_desktopdir}/%{name}.desktop
108 %{_pixmapsdir}/%{name}.png
109
110 %files data
111 %defattr(644,root,root,755)
112 %{_datadir}/%{name}
This page took 0.299514 seconds and 3 git commands to generate.