libsdl.spec revision 12224
12258N/A#
12258N/A# spec file for package libsdl
12258N/A#
12258N/A# Copyright 2008 Sun Microsystems, Inc.
12258N/A# This file and all modifications and additions to the pristine
12258N/A# package are under the same license as the package itself.
12258N/A#
12258N/A# Owner: davelam
12258N/A#
12258N/AName: libsdl
12258N/ALicense: LGPL
12258N/AGroup: System/Libraries
12258N/AVersion: 1.2.13
12258N/ARelease: 1
12258N/ADistribution: Java Desktop System
12258N/AVendor: Sun Microsystems, Inc.
12258N/ASummary: libsdl - Simple DirectMedia Layer
12258N/ASource: http://www.libsdl.org/release/SDL-%{version}.tar.gz
12258N/APatch1: sdl-01-fixPATH.diff
12258N/AURL: http://www.libsdl.org/
12258N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
12258N/ADocdir: %{_defaultdocdir}/%{name}
12258N/AAutoreqprov: on
12258N/A
12258N/A%description
12258N/ASimple DirectMedia Layer is a cross-platform multimedia library designed to
12258N/Aprovide low level access to audio, keyboard, mouse, joystick, 3D hardware via
12258N/AOpenGL, and 2D video framebuffer. It is used by MPEG playback software,
12258N/Aemulators, and many popular games.
12258N/A
12258N/A%package devel
12258N/ASummary: Headers for developing programs that will use libsdl
12258N/AGroup: Development/Libraries
12258N/ARequires: %{name}
12258N/A
12258N/A%description devel
12258N/AThis package contains the headers that programmers will need to develop
12258N/Aapplications which will use libsdl.
12258N/A
12258N/A%prep
12258N/A%setup -q -n SDL-%{version}
12258N/A%patch1 -p1
12258N/A
12258N/A%build
12258N/A%ifos linux
12258N/Aif [ -x /usr/bin/getconf ]; then
12258N/A CPUS=`getconf _NPROCESSORS_ONLN`
12258N/Afi
12258N/A%else
12258N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
12258N/A%endif
12258N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
12258N/A CPUS=1
12258N/Afi
12258N/A
12258N/Aexport CFLAGS="%optflags"
12258N/Aexport LDFLAGS="%_ldflags"
12258N/A./configure \
12258N/A --prefix=%{_prefix} \
12258N/A --libdir=%{_libdir} \
12258N/A --bindir=%{_bindir} \
12258N/A --sysconfdir=%{_sysconfdir} \
12258N/A --with-esd-prefix=%{_prefix} \
12258N/A --mandir=%{_mandir}
12258N/Amake -j $CPUS
12258N/A
12258N/A%install
12258N/Amake install DESTDIR=$RPM_BUILD_ROOT
12258N/A
12258N/A# delete libtool .la files and static libs
12258N/Arm $RPM_BUILD_ROOT%{_libdir}/*.a
12258N/Arm $RPM_BUILD_ROOT%{_libdir}/*la
12258N/A
12258N/A%clean
12258N/Arm -rf $RPM_BUILD_ROOT
12258N/A
12258N/A%post -p /sbin/ldconfig
12258N/A%postun -p /sbin/ldconfig
12258N/A
12258N/A%files
12258N/A%defattr (-, root, root)
12258N/A%{_libdir}/*.so.*
12258N/A
12258N/A%files devel
12258N/A%defattr(-, root, root)
12258N/A%{_libdir}/*.so
12258N/A
12258N/A%changelog
12258N/A* Thu Jan 17 2008 - patrick.ale@gmail.com
12258N/A- Add patch to restore path after sdl-config check
12258N/A* Thu Jan 17 2008 - damien.carbery@sun.com
12258N/A- Bump to 1.2.13.
12258N/A* Fri Oct 12 2007 - dave.lin@sun.com
12258N/A- Bump to 1.2.12 to fix bug CR6598379
12258N/A* Wed Apr 4 2007 - laca@sun.com
12258N/A- Create
12258N/A