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

  ViewVC Help
Powered by ViewVC 1.1.30