/[packages]/updates/8/sdl2/current/SPECS/sdl2.spec
ViewVC logotype

Contents of /updates/8/sdl2/current/SPECS/sdl2.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1934297 - (show annotations) (download)
Wed Jan 18 16:00:36 2023 UTC (15 months ago) by daviddavid
File size: 3942 byte(s)
- backport opensuse patch to fix CVE-2022-4743 (mga#31418)

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.14
10 %define subrel 2
11 Release: %mkrel 1
12 License: Zlib
13 Group: System/Libraries
14 URL: http://wiki.libsdl.org/FrontPage
15 Source0: http://www.libsdl.org/release/SDL2-%{version}.tar.gz
16 Patch0: CVE-2021-33657.patch
17 Patch1: CVE-2022-4743.patch
18
19 BuildRequires: doxygen
20 BuildRequires: libnas-devel
21 BuildRequires: pkgconfig(alsa)
22 BuildRequires: pkgconfig(dbus-1)
23 BuildRequires: pkgconfig(egl)
24 BuildRequires: pkgconfig(gl)
25 BuildRequires: pkgconfig(ibus-1.0)
26 BuildRequires: pkgconfig(jack)
27 BuildRequires: pkgconfig(libpulse-simple)
28 BuildRequires: pkgconfig(libudev)
29 BuildRequires: pkgconfig(samplerate)
30 BuildRequires: pkgconfig(x11)
31 BuildRequires: pkgconfig(xcursor)
32 BuildRequires: pkgconfig(xext)
33 BuildRequires: pkgconfig(xi)
34 BuildRequires: pkgconfig(xinerama)
35 BuildRequires: pkgconfig(xrandr)
36 BuildRequires: pkgconfig(xscrnsaver)
37 BuildRequires: pkgconfig(xxf86vm)
38 BuildRequires: pkgconfig(wayland-client)
39 BuildRequires: pkgconfig(wayland-cursor)
40 BuildRequires: pkgconfig(wayland-egl)
41 BuildRequires: pkgconfig(wayland-protocols)
42 BuildRequires: pkgconfig(wayland-scanner)
43 BuildRequires: pkgconfig(xkbcommon)
44
45 %description
46 This is the Simple DirectMedia Layer 2, a generic API that provides low
47 level access to audio, keyboard, mouse, and display framebuffer across
48 multiple platforms.
49
50 SDL fully supports high end 3D graphics using Direct3D and OpenGL,
51 and has a 2D graphics API for emulators and classic games.
52
53 %package -n %{libname}
54 Summary: Main library for %{name}
55 Group: System/Libraries
56
57 %description -n %{libname}
58 This package contains the library needed to run programs dynamically
59 linked with %{name}.
60
61 %package -n %{develname}
62 Summary: Headers for developing programs that use %{name}
63 Group: Development/C
64 Requires: %{libname} = %{version}-%{release}
65 Provides: %{name}-devel = %{version}-%{release}
66 Provides: SDL2-devel = %{version}-%{release}
67 Obsoletes: %{_lib}sdl-devel < 2.0.0-2
68 Requires: alsa-lib-devel
69 Requires: pkgconfig(gl)
70 Requires: pkgconfig(glu)
71 Requires: pkgconfig(egl)
72
73 %description -n %{develname}
74 This package contains the headers that programmers will need to develop
75 applications which will use %{name}.
76
77 %package -n %{develsname}
78 Summary: Static library for developing static programs that use %{name}
79 Group: Development/C
80
81 %description -n %{develsname}
82 This package contains the static library that programmers will need
83 to develop static applications which are using %{name}.
84
85 %package docs
86 Summary: Documentation for Simple DirectMedia Layer 2 (SDL2)
87 Group: Documentation
88 BuildArch: noarch
89
90 %description docs
91 This package contains the generated API documentation for the SDL2 library.
92
93 %prep
94 %autosetup -p1 -n SDL2-%{version}
95
96 %build
97 %configure \
98 --enable-sdl-dlopen \
99 --enable-alsa-shared \
100 --enable-esd-shared \
101 --enable-pulseaudio-shared \
102 --enable-arts-shared \
103 --enable-nas-shared \
104 --enable-sndio-shared \
105 --enable-x11-shared \
106 --enable-directfb-shared \
107 --enable-fusionsound-shared \
108 --enable-video-wayland \
109 --disable-rpath \
110 #End
111
112 %make_build
113
114 # generate docs
115 pushd include
116 doxygen -g
117 doxygen -w html headerFile footerFile styleSheetFile doxyfile
118 doxygen
119 popd
120
121 %install
122 %make_install
123
124 %files -n %{libname}
125 %doc README-SDL.txt README.txt
126 %doc CREDITS.txt COPYING.txt
127 %doc BUGS.txt TODO.txt WhatsNew.txt
128 %{_libdir}/libSDL2-%{apiver}.so.%{major}
129 %{_libdir}/libSDL2-%{apiver}.so.%{major}.*
130
131 %files -n %{develname}
132 %{_bindir}/*-config
133 %{_libdir}/lib*.so
134 %{_libdir}/cmake/SDL2/
135 %{_libdir}/pkgconfig/*
136 %{_datadir}/aclocal/*
137 %{_includedir}/SDL2/*.h
138
139 %files -n %{develsname}
140 %{_libdir}/*.la
141 %{_libdir}/*.a
142
143 %files docs
144 %doc include/html

  ViewVC Help
Powered by ViewVC 1.1.30