1 |
blue_prawn |
464662 |
%define apiver 2.0 |
2 |
|
|
%define major 0 |
3 |
|
|
%define libname %mklibname sdl %{apiver} %{major} |
4 |
wally |
464681 |
%define develname %mklibname sdl %{apiver} -d |
5 |
blue_prawn |
495199 |
%define develsname %mklibname sdl %{apiver} -d -s |
6 |
blue_prawn |
464662 |
|
7 |
|
|
Name: sdl2 |
8 |
|
|
Summary: Simple DirectMedia Layer 2 |
9 |
blue_prawn |
557113 |
Version: 2.0.1 |
10 |
|
|
Release: %mkrel 1 |
11 |
blue_prawn |
464662 |
License: Zlib |
12 |
|
|
Group: System/Libraries |
13 |
blue_prawn |
555870 |
URL: http://wiki.libsdl.org/FrontPage |
14 |
fwang |
466067 |
Source0: http://www.libsdl.org/release/SDL2-%{version}.tar.gz |
15 |
blue_prawn |
464667 |
BuildRequires: doxygen |
16 |
wally |
464693 |
BuildRequires: libnas-devel |
17 |
|
|
BuildRequires: pkgconfig(alsa) |
18 |
wally |
464703 |
BuildRequires: pkgconfig(egl) |
19 |
|
|
BuildRequires: pkgconfig(gl) |
20 |
wally |
464693 |
BuildRequires: pkgconfig(libpulse-simple) |
21 |
|
|
BuildRequires: pkgconfig(libudev) |
22 |
|
|
BuildRequires: pkgconfig(x11) |
23 |
|
|
BuildRequires: pkgconfig(xcursor) |
24 |
|
|
BuildRequires: pkgconfig(xext) |
25 |
|
|
BuildRequires: pkgconfig(xi) |
26 |
|
|
BuildRequires: pkgconfig(xinerama) |
27 |
|
|
BuildRequires: pkgconfig(xrandr) |
28 |
|
|
BuildRequires: pkgconfig(xscrnsaver) |
29 |
|
|
BuildRequires: pkgconfig(xxf86vm) |
30 |
blue_prawn |
464662 |
|
31 |
|
|
%description |
32 |
|
|
This is the Simple DirectMedia Layer 2, a generic API that provides low |
33 |
|
|
level access to audio, keyboard, mouse, and display framebuffer across |
34 |
|
|
multiple platforms. |
35 |
|
|
|
36 |
|
|
SDL fully supports high end 3D graphics using Direct3D and OpenGL, |
37 |
|
|
and has a 2D graphics API for emulators and classic games. |
38 |
|
|
|
39 |
|
|
%package -n %{libname} |
40 |
|
|
Summary: Main library for %{name} |
41 |
|
|
Group: System/Libraries |
42 |
|
|
|
43 |
|
|
%description -n %{libname} |
44 |
|
|
This package contains the library needed to run programs dynamically |
45 |
|
|
linked with %{name}. |
46 |
|
|
|
47 |
|
|
%package -n %{develname} |
48 |
|
|
Summary: Headers for developing programs that use %{name} |
49 |
|
|
Group: Development/C |
50 |
wally |
464682 |
Requires: %{libname} = %{version}-%{release} |
51 |
wally |
464679 |
Provides: %{name}-devel = %{version}-%{release} |
52 |
wally |
464704 |
Obsoletes: %{_lib}sdl-devel < 2.0.0-2 |
53 |
blue_prawn |
464662 |
|
54 |
|
|
%description -n %{develname} |
55 |
|
|
This package contains the headers that programmers will need to develop |
56 |
|
|
applications which will use %{name}. |
57 |
|
|
|
58 |
blue_prawn |
495199 |
%package -n %{develsname} |
59 |
|
|
Summary: Static library for developing static programs that use %{name} |
60 |
|
|
Group: Development/C |
61 |
|
|
|
62 |
|
|
%description -n %{develsname} |
63 |
|
|
This package contains the static library that programmers will need |
64 |
|
|
to develop static applications which are using %{name}. |
65 |
|
|
|
66 |
blue_prawn |
464662 |
%package docs |
67 |
|
|
Summary: Documentation for Simple DirectMedia Layer 2 (SDL2) |
68 |
|
|
Group: Documentation |
69 |
|
|
BuildArch: noarch |
70 |
|
|
|
71 |
|
|
%description docs |
72 |
|
|
This package contains the generated API documentation for the SDL2 library. |
73 |
|
|
|
74 |
|
|
%prep |
75 |
|
|
%setup -q -n SDL2-%{version} |
76 |
|
|
|
77 |
|
|
%build |
78 |
wally |
464717 |
%configure2_5x \ |
79 |
shadow95 |
494253 |
--enable-sdl-dlopen \ |
80 |
|
|
--enable-alsa-shared \ |
81 |
|
|
--enable-esd-shared \ |
82 |
|
|
--enable-pulseaudio-shared \ |
83 |
|
|
--enable-arts-shared \ |
84 |
|
|
--enable-nas-shared \ |
85 |
|
|
--enable-sndio-shared \ |
86 |
|
|
--enable-x11-shared \ |
87 |
|
|
--enable-directfb-shared \ |
88 |
fwang |
466078 |
--enable-fusionsound-shared \ |
89 |
wally |
464718 |
--disable-rpath \ |
90 |
blue_prawn |
495199 |
#End |
91 |
wally |
464717 |
|
92 |
blue_prawn |
464662 |
%make |
93 |
|
|
|
94 |
|
|
# generate docs |
95 |
|
|
pushd include |
96 |
|
|
doxygen -g |
97 |
|
|
doxygen -w html headerFile footerFile styleSheetFile doxyfile |
98 |
|
|
doxygen |
99 |
|
|
popd |
100 |
|
|
|
101 |
|
|
%install |
102 |
wally |
464680 |
%makeinstall_std |
103 |
blue_prawn |
464662 |
|
104 |
|
|
%files -n %{libname} |
105 |
|
|
%doc README-SDL.txt README.txt |
106 |
|
|
%doc CREDITS.txt COPYING.txt |
107 |
|
|
%doc BUGS.txt TODO.txt WhatsNew.txt |
108 |
wally |
464678 |
%{_libdir}/libSDL2-%{apiver}.so.%{major} |
109 |
|
|
%{_libdir}/libSDL2-%{apiver}.so.%{major}.* |
110 |
blue_prawn |
464662 |
|
111 |
|
|
%files -n %{develname} |
112 |
|
|
%{_bindir}/*-config |
113 |
|
|
%{_libdir}/lib*.so |
114 |
|
|
%{_libdir}/pkgconfig/* |
115 |
|
|
%{_datadir}/aclocal/* |
116 |
|
|
%{_includedir}/SDL2/*.h |
117 |
|
|
|
118 |
blue_prawn |
495199 |
%files -n %{develsname} |
119 |
|
|
%{_libdir}/*.la |
120 |
|
|
%{_libdir}/*.a |
121 |
|
|
|
122 |
blue_prawn |
464662 |
%files docs |
123 |
|
|
%doc include/html |