]> git.pld-linux.org Git - packages/warzone2100.git/blobdiff - warzone2100.spec
- unconditional noarch subpackages
[packages/warzone2100.git] / warzone2100.spec
index 039d20aa6ad14a845c01d7bdf7454b45e90ba36f..feb6846eb0c22e773a38d2fd74a7fa87b618ab2a 100644 (file)
@@ -1,28 +1,43 @@
-#$Revision: 1.15 $, $Date: 2007-02-27 21:30:47 $
 Summary:       3D realtime strategy on a future Earth
 Summary(pl.UTF-8):     Gra RTS, której akcja toczy się w przyszłości
 Name:          warzone2100
-Version:       2.0.5
-Release:       0.1
-License:       GPL
-BuildRequires: Mesa-libGLU-devel
-Group:         X11/Applications/Games
-Source0:       http://download.gna.org/warzone/releases/2.0/%{name}-%{version}.tar.bz2
-# Source0-md5: 56e83a64d5b7aa60ced3d7ac7281bb42
+Version:       3.1.2
+Release:       5
+License:       GPL v2+
+Group:         X11/Applications/Games/Strategy
+Source0:       http://downloads.sourceforge.net/warzone2100/%{name}-%{version}.tar.xz
+# Source0-md5: 4e947125e9604821164f1ad9d1922447
+Patch0:                glew-1.12.patch
+Patch1:                gcc8.patch
 URL:           http://www.wz2100.net/
-BuildRequires: OpenAL-devel
-BuildRequires: OpenGL-devel
-BuildRequires: SDL-devel >= 1.1.4
+BuildRequires: OpenAL-devel >= 0.0.8-4
+BuildRequires: OpenGL-GLU-devel
+BuildRequires: QtNetwork-devel
+BuildRequires: QtScript-devel
+BuildRequires: SDL-devel >= 1.2
 BuildRequires: SDL_net-devel
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: bison
 BuildRequires: flex
+BuildRequires: gettext-tools
+BuildRequires: glew-devel
 BuildRequires: libjpeg-devel
-#BuildRequires:        libmad-devel
-BuildRequires: libvorbis-devel
+BuildRequires: libmad-devel
+BuildRequires: libpng-devel >= 1.2
+BuildRequires: libtheora-devel >= 0.1
+BuildRequires: libvorbis-devel >= 1.1
 BuildRequires: physfs-devel
+BuildRequires: pkgconfig
+BuildRequires: popt-devel
+BuildRequires: quesoglc-devel
+BuildRequires: sed >= 4.0
+BuildRequires: unzip
+BuildRequires: xorg-lib-libXt-devel
 BuildRequires: zip
+Requires:      %{name}-data = %{version}-%{release}
+Requires:      fonts-TTF-DejaVu
+Requires:      gdb
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -38,37 +53,58 @@ wprowadzonych kilka ciekawych pomysłów. Są to między innymi rozmaite
 technologie radarowe oraz większe skupienie się na technologiach
 artyleryjskich oraz obronie przeciwlotniczej.
 
+%package data
+Summary:       Warzone 2100 data files
+Group:         X11/Applications/Games/Strategy
+BuildArch:     noarch
+
+%description data
+Warzone 2100 data files
+
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
+
+# et_EE -> et
+%{__sed} -e 's/et_EE/et/g' -i po/LINGUAS
+mv po/et{_EE,}.po
+mv po/et{_EE,}.gmo
 
 %build
 %{__aclocal} -I m4
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-#./autogen.sh
-perl -pi -e "s#-m32##g" ./makerules/common.mk
-perl -pi -e "s#-m32##g" configure
-%configure
+%configure \
+       --with-distributor="PLD" \
+       --docdir=%{_docdir}/%{name}-%{version} \
+       --with-icondir=%{_pixmapsdir}
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
 
 %{__make} install \
         DESTDIR=$RPM_BUILD_ROOT
-install debian/%{name}.desktop $RPM_BUILD_ROOT%{_desktopdir}
-install debian/%{name}.png $RPM_BUILD_ROOT%{_pixmapsdir}
-install debian/%{name}.svg $RPM_BUILD_ROOT%{_pixmapsdir}
+
+# unsupported
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ca_ES
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/uk_UA
+
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README TODO
-%attr(755,root,root) %{_bindir}/*
-%{_datadir}/%{name}
+%doc %{_docdir}/%{name}-%{version}
+%attr(755,root,root) %{_bindir}/%{name}
+%{_mandir}/man6/%{name}.6*
 %{_desktopdir}/%{name}.desktop
-%{_pixmapsdir}/%{name}.*
+%{_pixmapsdir}/%{name}.png
+
+%files data
+%defattr(644,root,root,755)
+%{_datadir}/%{name}
This page took 0.160557 seconds and 4 git commands to generate.