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