9688
|
1 |
#
|
|
2 |
# spec file for package libsdl
|
|
3 |
#
|
11478
|
4 |
# Copyright 2008 Sun Microsystems, Inc.
|
9688
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
16434
|
8 |
%define owner davelam
|
9688
|
9 |
#
|
12834
|
10 |
# bugdb: bugzilla.libsdl.org
|
11519
|
11 |
#
|
16431
|
12 |
|
|
13 |
%define OSR 6884:1.2.12
|
|
14 |
|
9688
|
15 |
Name: libsdl
|
|
16 |
License: LGPL
|
|
17 |
Group: System/Libraries
|
11478
|
18 |
Version: 1.2.13
|
9688
|
19 |
Release: 1
|
|
20 |
Distribution: Java Desktop System
|
17865
|
21 |
Vendor: Other
|
9688
|
22 |
Summary: libsdl - Simple DirectMedia Layer
|
|
23 |
Source: http://www.libsdl.org/release/SDL-%{version}.tar.gz
|
11520
|
24 |
# owner:dcarbery date:2008-01-17 type:bug bugzilla:542 state:upstream
|
11482
|
25 |
Patch1: sdl-01-fixPATH.diff
|
9688
|
26 |
URL: http://www.libsdl.org/
|
|
27 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
28 |
Docdir: %{_defaultdocdir}/%{name}
|
|
29 |
Autoreqprov: on
|
|
30 |
|
|
31 |
%description
|
|
32 |
Simple DirectMedia Layer is a cross-platform multimedia library designed to
|
|
33 |
provide low level access to audio, keyboard, mouse, joystick, 3D hardware via
|
|
34 |
OpenGL, and 2D video framebuffer. It is used by MPEG playback software,
|
|
35 |
emulators, and many popular games.
|
|
36 |
|
|
37 |
%package devel
|
|
38 |
Summary: Headers for developing programs that will use libsdl
|
|
39 |
Group: Development/Libraries
|
|
40 |
Requires: %{name}
|
|
41 |
|
|
42 |
%description devel
|
|
43 |
This package contains the headers that programmers will need to develop
|
|
44 |
applications which will use libsdl.
|
|
45 |
|
|
46 |
%prep
|
|
47 |
%setup -q -n SDL-%{version}
|
11482
|
48 |
%patch1 -p1
|
9688
|
49 |
|
|
50 |
%build
|
|
51 |
%ifos linux
|
|
52 |
if [ -x /usr/bin/getconf ]; then
|
|
53 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
54 |
fi
|
|
55 |
%else
|
|
56 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
57 |
%endif
|
|
58 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
59 |
CPUS=1
|
|
60 |
fi
|
|
61 |
|
11868
|
62 |
export CFLAGS="%optflags -I/usr/X11/include"
|
9688
|
63 |
export LDFLAGS="%_ldflags"
|
|
64 |
./configure \
|
|
65 |
--prefix=%{_prefix} \
|
|
66 |
--libdir=%{_libdir} \
|
|
67 |
--bindir=%{_bindir} \
|
|
68 |
--sysconfdir=%{_sysconfdir} \
|
|
69 |
--with-esd-prefix=%{_prefix} \
|
|
70 |
--mandir=%{_mandir}
|
|
71 |
make -j $CPUS
|
|
72 |
|
|
73 |
%install
|
|
74 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
75 |
|
|
76 |
# delete libtool .la files and static libs
|
|
77 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
78 |
rm $RPM_BUILD_ROOT%{_libdir}/*la
|
|
79 |
|
|
80 |
%clean
|
|
81 |
rm -rf $RPM_BUILD_ROOT
|
|
82 |
|
|
83 |
%post -p /sbin/ldconfig
|
|
84 |
%postun -p /sbin/ldconfig
|
|
85 |
|
|
86 |
%files
|
|
87 |
%defattr (-, root, root)
|
|
88 |
%{_libdir}/*.so.*
|
|
89 |
|
|
90 |
%files devel
|
|
91 |
%defattr(-, root, root)
|
|
92 |
%{_libdir}/*.so
|
|
93 |
|
|
94 |
%changelog
|
11868
|
95 |
* Fri Mar 14 2008 - [email protected]
|
|
96 |
- Add -I/usr/X11/include to CFLAGS after update of SUNWwinc.
|
11482
|
97 |
* Thu Jan 17 2008 - [email protected]
|
|
98 |
- Add patch to restore path after sdl-config check
|
11478
|
99 |
* Thu Jan 17 2008 - [email protected]
|
|
100 |
- Bump to 1.2.13.
|
10648
|
101 |
* Fri Oct 12 2007 - [email protected]
|
|
102 |
- Bump to 1.2.12 to fix bug CR6598379
|
9688
|
103 |
* Wed Apr 4 2007 - [email protected]
|
|
104 |
- Create
|