SPECS: mysdl.spec (NEW) - initial PLD release, made scons honour C...

gotar gotar at pld-linux.org
Sun May 20 14:32:48 CEST 2007


Author: gotar                        Date: Sun May 20 12:32:48 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial PLD release, made scons honour CXXFLAGS

---- Files affected:
SPECS:
   mysdl.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/mysdl.spec
diff -u /dev/null SPECS/mysdl.spec:1.1
--- /dev/null	Sun May 20 14:32:48 2007
+++ SPECS/mysdl.spec	Sun May 20 14:32:43 2007
@@ -0,0 +1,60 @@
+# $Revision$, $Date$
+Summary:	MySDL library
+Summary(pl.UTF-8):	Biblioteka MySDL
+Name:		mysdl
+Version:	1.0
+Release:	1
+License:	GPL
+Group:		Libraries
+Source0:	http://source.musgit.com/files/%{name}_%{version}.tar.bz2
+# Source0-md5:	bc503a224c3012060a1da7d34886318c
+Patch0:		%{name}-build.patch
+URL:		http://source.musgit.com/
+BuildRequires:	OpenAL-devel
+BuildRequires:	OpenGL-GLU-devel
+BuildRequires:	SDL_image-devel
+BuildRequires:	expat-devel
+BuildRequires:	libvorbis-devel
+BuildRequires:	scons
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+MySDL is a gaming framework and library based on SDL, OpenGL, OpenAL
+and a few more open source libraries.
+
+%description -l pl.UTF-8
+
+%prep
+%setup -q -n %{name}_%{version}
+%patch0 -p1
+
+%build
+sed -i "s/CXXFLAGS=\['-march=pentium'\]/CXXFLAGS=Split(ARGUMENTS.get('CXXFLAGS',''))/" SConstruct
+sed -i 's/-O3//' SConstruct
+%{__scons} \
+	%{!?debug:dist=1} \
+	CXXFLAGS="%{rpmcflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir}}
+
+cp -r dist/linux/include/* $RPM_BUILD_ROOT%{_includedir}
+cp dist/linux/lib/* $RPM_BUILD_ROOT%{_libdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{_includedir}/*
+%{_libdir}/*.a
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/05/20 12:32:43  gotar
+- initial PLD release, made scons honour CXXFLAGS
================================================================


More information about the pld-cvs-commit mailing list