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

  ViewVC Help
Powered by ViewVC 1.1.30