/[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 464704 - (show annotations) (download)
Thu Aug 8 17:24:26 2013 UTC (10 years, 8 months ago) by wally
Original Path: cauldron/sdl2/current/SPECS/sdl2.spec
File size: 2695 byte(s)
- fix devel pkg obsoletes
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 3
10 License: Zlib
11 Group: System/Libraries
12 URL: http://wiki.libsdl.org/moin.fcg/FrontPage
13 Source0: http://www.libsdl.org/tmp/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 %make
71
72 # generate docs
73 pushd include
74 doxygen -g
75 doxygen -w html headerFile footerFile styleSheetFile doxyfile
76 doxygen
77 popd
78
79 %install
80 %makeinstall_std
81
82 #we don't want these
83 #find %{buildroot} -name "*.la" -delete
84
85 %files -n %{libname}
86 %doc README-SDL.txt README.txt
87 %doc CREDITS.txt COPYING.txt
88 %doc BUGS.txt TODO.txt WhatsNew.txt
89 %{_libdir}/libSDL2-%{apiver}.so.%{major}
90 %{_libdir}/libSDL2-%{apiver}.so.%{major}.*
91
92 %files -n %{develname}
93 %{_bindir}/*-config
94 %{_libdir}/lib*.so
95 %{_libdir}/lib*.a
96 %{_libdir}/lib*.la
97 %{_libdir}/pkgconfig/*
98 %{_datadir}/aclocal/*
99 %{_includedir}/SDL2/*.h
100
101 %files docs
102 %doc include/html

  ViewVC Help
Powered by ViewVC 1.1.30