SPECS (DEVEL): warzone2100.spec - up to 2.1_rc1 - set OPENAL_LIBS manually, ...

lisu lisu at pld-linux.org
Thu Nov 27 11:34:03 CET 2008


Author: lisu                         Date: Thu Nov 27 10:34:03 2008 GMT
Module: SPECS                         Tag: DEVEL
---- Log message:
- up to 2.1_rc1
- set OPENAL_LIBS manually, because pkgconfig can't find OpenAL stuff (configure.patch added)
- sorted and verisioned BRs
- use %%find_lang macro

---- Files affected:
SPECS:
   warzone2100.spec (1.21.2.1 -> 1.21.2.2) 

---- Diffs:

================================================================
Index: SPECS/warzone2100.spec
diff -u SPECS/warzone2100.spec:1.21.2.1 SPECS/warzone2100.spec:1.21.2.2
--- SPECS/warzone2100.spec:1.21.2.1	Sun Apr 20 01:52:24 2008
+++ SPECS/warzone2100.spec	Thu Nov 27 11:33:58 2008
@@ -1,19 +1,20 @@
 #$Revision$, $Date$
-%define		_beta	beta2
+%define		_rc	rc1
 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.1
-Release:	0.%{_beta}.1
+Release:	0.%{_rc}.1
 License:	GPL v2+
 Group:		X11/Applications/Games/Strategy
-Source0:	http://download.gna.org/warzone/releases/2.1/%{name}-%{version}_%{_beta}.tar.bz2
-# Source0-md5:	566b7b9f79d5f9b6b9b7d14b410d86e4
+Source0:	http://download.gna.org/warzone/releases/2.1/%{name}-%{version}_%{_rc}.tar.bz2
+# Source0-md5:	154208e2a1df4549b74c8016b38b50f0
 Patch0:		%{name}-desktop.patch
+Patch1:		%{name}-configure.patch
 URL:		http://www.wz2100.net/
-BuildRequires:	OpenAL-devel
+BuildRequires:	OpenAL-devel >= 0.0.8
 BuildRequires:	OpenGL-GLU-devel
-BuildRequires:	SDL-devel >= 1.1.4
+BuildRequires:	SDL-devel >= 1.2
 BuildRequires:	SDL_net-devel
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -21,15 +22,15 @@
 BuildRequires:	flex
 BuildRequires:	libjpeg-devel
 BuildRequires:	libmad-devel
-BuildRequires:	libvorbis-devel
-BuildRequires:	libpng-devel
+BuildRequires:	libpng-devel >= 1.2
+BuildRequires:	libvorbis-devel >= 1.1
 BuildRequires:	perl-base
 BuildRequires:	physfs-devel
 BuildRequires:	pkgconfig
 BuildRequires:	popt-devel
 BuildRequires:	quesoglc-devel
-BuildRequires:	zip
 BuildRequires:	unzip
+BuildRequires:	zip
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -46,8 +47,9 @@
 artyleryjskich oraz obronie przeciwlotniczej.
 
 %prep
-%setup -q -n %{name}-%{version}_%{_beta}
+%setup -q -n %{name}-%{version}_%{_rc}
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__aclocal} -I m4
@@ -57,7 +59,8 @@
 #%{__perl} -pi -e "s#-m32##g" makerules/common.mk
 %{__perl} -pi -e "s#-m32##g" configure
 %configure --with-distributor="PLD"
-%{__make}
+%{__make} \
+	OPENAL_LIBS="`openal-config --libs`"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -69,10 +72,12 @@
 install icons/%{name}.desktop $RPM_BUILD_ROOT%{_desktopdir}
 install icons/%{name}.png $RPM_BUILD_ROOT%{_pixmapsdir}
 
+%find_lang %{name} --all-name
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog doc/*
 %attr(755,root,root) %{_bindir}/*
@@ -86,6 +91,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.21.2.2  2008/11/27 10:33:58  lisu
+- up to 2.1_rc1
+- set OPENAL_LIBS manually, because pkgconfig can't find OpenAL stuff (configure.patch added)
+- sorted and verisioned BRs
+- use %%find_lang macro
+
 Revision 1.21.2.1  2008/04/19 23:52:24  undefine
 - up to 2.1 beta2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/warzone2100.spec?r1=1.21.2.1&r2=1.21.2.2&f=u



More information about the pld-cvs-commit mailing list