packages: teeworlds/teeworlds.spec - BR: SDL-devel zlib-devel - use rpmcxxf...

sparky sparky at pld-linux.org
Mon Nov 23 00:53:21 CET 2009


Author: sparky                       Date: Sun Nov 22 23:53:20 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- BR: SDL-devel zlib-devel
- use rpmcxxflags and rpmldflags, not perfect but not bat either

---- Files affected:
packages/teeworlds:
   teeworlds.spec (1.16 -> 1.17) 

---- Diffs:

================================================================
Index: packages/teeworlds/teeworlds.spec
diff -u packages/teeworlds/teeworlds.spec:1.16 packages/teeworlds/teeworlds.spec:1.17
--- packages/teeworlds/teeworlds.spec:1.16	Fri Oct 30 00:36:34 2009
+++ packages/teeworlds/teeworlds.spec	Mon Nov 23 00:53:15 2009
@@ -17,13 +17,14 @@
 URL:		http://www.teeworlds.com/
 BuildRequires:	OpenGL-GLU-devel
 BuildRequires:	OpenGL-devel
+BuildRequires:	SDL-devel
 BuildRequires:	alsa-lib-devel
 BuildRequires:	bam
 BuildRequires:	python
 BuildRequires:	python-modules
 BuildRequires:	sed >= 4.0
-BuildRequires:	unzip
 BuildRequires:	xorg-lib-libX11-devel
+BuildRequires:	zlib-devel
 Provides:	teewars = %{version}
 Obsoletes:	teewars <= 0.3.4
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -36,9 +37,18 @@
 
 %prep
 %setup -q -n %{name}-%{version}-src
+sed -i '/release_settings.cc.optimize = 1/a\Import("pld_config.bam")' default.bam
 
 %build
-bam release
+cat <<'EOF' > pld_config.bam
+	release_settings.cc.flags:Add("%{rpmcxxflags}")
+	release_settings.cc.c_compiler = "%{__cc}"
+	release_settings.cc.cxx_compiler = "%{__cxx}"
+	release_settings.link.linker = "%{__cxx}"
+	release_settings.link.inputflags = "%{rpmcxxflags} %{rpmldflags}"
+EOF
+
+bam -v release
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -67,6 +77,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.17  2009/11/22 23:53:15  sparky
+- BR: SDL-devel zlib-devel
+- use rpmcxxflags and rpmldflags, not perfect but not bat either
+
 Revision 1.16  2009/10/29 23:36:34  arvenil
 - up to 0.5.2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/teeworlds/teeworlds.spec?r1=1.16&r2=1.17&f=u



More information about the pld-cvs-commit mailing list