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