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

  ViewVC Help
Powered by ViewVC 1.1.30