/[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 1662823 - (show annotations) (download)
Tue Dec 22 12:22:13 2020 UTC (3 years, 3 months ago) by daviddavid
Original Path: cauldron/sdl2/current/SPECS/sdl2.spec
File size: 3860 byte(s)
- new version: 2.0.14

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

  ViewVC Help
Powered by ViewVC 1.1.30