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 |
akien |
1158190 |
Version: 2.0.6 |
10 |
akien |
1172300 |
Release: %mkrel 3 |
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 |
akien |
921069 |
|
16 |
akien |
1172296 |
# Upstream patch for CVE-2017-2888, can be removed for 2.0.7 |
17 |
akien |
1172300 |
Patch0: SDL2-2.0.6-CVE-2017-2888.patch |
18 |
akien |
1083868 |
|
19 |
blue_prawn |
464667 |
BuildRequires: doxygen |
20 |
wally |
464693 |
BuildRequires: libnas-devel |
21 |
|
|
BuildRequires: pkgconfig(alsa) |
22 |
wally |
464703 |
BuildRequires: pkgconfig(egl) |
23 |
|
|
BuildRequires: pkgconfig(gl) |
24 |
wally |
464693 |
BuildRequires: pkgconfig(libpulse-simple) |
25 |
|
|
BuildRequires: pkgconfig(libudev) |
26 |
|
|
BuildRequires: pkgconfig(x11) |
27 |
|
|
BuildRequires: pkgconfig(xcursor) |
28 |
|
|
BuildRequires: pkgconfig(xext) |
29 |
|
|
BuildRequires: pkgconfig(xi) |
30 |
|
|
BuildRequires: pkgconfig(xinerama) |
31 |
|
|
BuildRequires: pkgconfig(xrandr) |
32 |
|
|
BuildRequires: pkgconfig(xscrnsaver) |
33 |
|
|
BuildRequires: pkgconfig(xxf86vm) |
34 |
blino |
736266 |
BuildRequires: pkgconfig(wayland-egl) |
35 |
|
|
BuildRequires: pkgconfig(xkbcommon) |
36 |
blue_prawn |
464662 |
|
37 |
|
|
%description |
38 |
|
|
This is the Simple DirectMedia Layer 2, a generic API that provides low |
39 |
|
|
level access to audio, keyboard, mouse, and display framebuffer across |
40 |
|
|
multiple platforms. |
41 |
|
|
|
42 |
|
|
SDL fully supports high end 3D graphics using Direct3D and OpenGL, |
43 |
|
|
and has a 2D graphics API for emulators and classic games. |
44 |
|
|
|
45 |
|
|
%package -n %{libname} |
46 |
|
|
Summary: Main library for %{name} |
47 |
|
|
Group: System/Libraries |
48 |
|
|
|
49 |
|
|
%description -n %{libname} |
50 |
|
|
This package contains the library needed to run programs dynamically |
51 |
|
|
linked with %{name}. |
52 |
|
|
|
53 |
|
|
%package -n %{develname} |
54 |
|
|
Summary: Headers for developing programs that use %{name} |
55 |
|
|
Group: Development/C |
56 |
wally |
464682 |
Requires: %{libname} = %{version}-%{release} |
57 |
wally |
464679 |
Provides: %{name}-devel = %{version}-%{release} |
58 |
tv |
1001624 |
Provides: SDL2-devel = %{version}-%{release} |
59 |
wally |
464704 |
Obsoletes: %{_lib}sdl-devel < 2.0.0-2 |
60 |
tv |
1001740 |
Requires: alsa-lib-devel |
61 |
|
|
Requires: pkgconfig(gl) |
62 |
|
|
Requires: pkgconfig(glu) |
63 |
|
|
Requires: pkgconfig(egl) |
64 |
blue_prawn |
464662 |
|
65 |
|
|
%description -n %{develname} |
66 |
|
|
This package contains the headers that programmers will need to develop |
67 |
|
|
applications which will use %{name}. |
68 |
|
|
|
69 |
blue_prawn |
495199 |
%package -n %{develsname} |
70 |
|
|
Summary: Static library for developing static programs that use %{name} |
71 |
|
|
Group: Development/C |
72 |
|
|
|
73 |
|
|
%description -n %{develsname} |
74 |
|
|
This package contains the static library that programmers will need |
75 |
|
|
to develop static applications which are using %{name}. |
76 |
|
|
|
77 |
blue_prawn |
464662 |
%package docs |
78 |
|
|
Summary: Documentation for Simple DirectMedia Layer 2 (SDL2) |
79 |
|
|
Group: Documentation |
80 |
|
|
BuildArch: noarch |
81 |
|
|
|
82 |
|
|
%description docs |
83 |
|
|
This package contains the generated API documentation for the SDL2 library. |
84 |
|
|
|
85 |
|
|
%prep |
86 |
akien |
1172300 |
%autosetup -p1 -n SDL2-%{version} |
87 |
blue_prawn |
464662 |
|
88 |
|
|
%build |
89 |
wally |
464717 |
%configure2_5x \ |
90 |
shadow95 |
494253 |
--enable-sdl-dlopen \ |
91 |
|
|
--enable-alsa-shared \ |
92 |
|
|
--enable-esd-shared \ |
93 |
|
|
--enable-pulseaudio-shared \ |
94 |
|
|
--enable-arts-shared \ |
95 |
|
|
--enable-nas-shared \ |
96 |
|
|
--enable-sndio-shared \ |
97 |
|
|
--enable-x11-shared \ |
98 |
|
|
--enable-directfb-shared \ |
99 |
fwang |
466078 |
--enable-fusionsound-shared \ |
100 |
blino |
736266 |
--enable-video-wayland \ |
101 |
wally |
464718 |
--disable-rpath \ |
102 |
blue_prawn |
495199 |
#End |
103 |
wally |
464717 |
|
104 |
akien |
921069 |
%make_build |
105 |
blue_prawn |
464662 |
|
106 |
|
|
# generate docs |
107 |
|
|
pushd include |
108 |
|
|
doxygen -g |
109 |
|
|
doxygen -w html headerFile footerFile styleSheetFile doxyfile |
110 |
|
|
doxygen |
111 |
|
|
popd |
112 |
|
|
|
113 |
|
|
%install |
114 |
akien |
921069 |
%make_install |
115 |
blue_prawn |
464662 |
|
116 |
|
|
%files -n %{libname} |
117 |
|
|
%doc README-SDL.txt README.txt |
118 |
|
|
%doc CREDITS.txt COPYING.txt |
119 |
|
|
%doc BUGS.txt TODO.txt WhatsNew.txt |
120 |
wally |
464678 |
%{_libdir}/libSDL2-%{apiver}.so.%{major} |
121 |
|
|
%{_libdir}/libSDL2-%{apiver}.so.%{major}.* |
122 |
blue_prawn |
464662 |
|
123 |
|
|
%files -n %{develname} |
124 |
|
|
%{_bindir}/*-config |
125 |
|
|
%{_libdir}/lib*.so |
126 |
akien |
921069 |
%{_libdir}/cmake/SDL2/ |
127 |
blue_prawn |
464662 |
%{_libdir}/pkgconfig/* |
128 |
|
|
%{_datadir}/aclocal/* |
129 |
|
|
%{_includedir}/SDL2/*.h |
130 |
|
|
|
131 |
blue_prawn |
495199 |
%files -n %{develsname} |
132 |
|
|
%{_libdir}/*.la |
133 |
|
|
%{_libdir}/*.a |
134 |
|
|
|
135 |
blue_prawn |
464662 |
%files docs |
136 |
|
|
%doc include/html |