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

  ViewVC Help
Powered by ViewVC 1.1.30