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