]> git.pld-linux.org Git - packages/SDL.git/blob - SDL.spec
- release 2.
[packages/SDL.git] / SDL.spec
1 #
2 # Conditional build:
3 # bcond_off_alsa - without ALSA support
4 # bcond_on_svgalib - with svgalib support
5 # bcond_on_aalib - with aalib support
6 #
7 Summary:        SDL (Simple DirectMedia Layer) - Game/Multimedia Library
8 Name:           SDL
9 Version:        1.1.7
10 Release:        2
11 License:        LGPL
12 Group:          X11/Libraries
13 Group(de):      X11/Libraries
14 Group(pl):      X11/Biblioteki
15 Source0:        http://www.libsdl.org/release/%{name}-%{version}.tar.gz
16 Patch0:         SDL-svga.patch
17 URL:            http://www.libsdl.org/
18 %ifnarch sparc sparc64
19 %{!?bcond_off_alsa:BuildRequires:       alsa-lib-devel}
20 %endif
21 BuildRequires:  esound-devel
22 BuildRequires:  gtk+-devel >= 1.2.1
23 BuildRequires:  XFree86-devel
24 BuildRequires:  OpenGL-devel
25 %{?bcond_on_svgalib:BuildRequires:      svgalib-devel}
26 %{?bcond_on_aalib:BuildRequires:        aalib-devel}
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %define         _prefix         /usr/X11R6
30 %define         _mandir         %{_prefix}/man
31
32 %description
33 SDL (Simple DirectMedia Layer) is a library that allows you portable,
34 low level access to a video framebuffer, audio output, mouse, and
35 keyboard. It can support both windowed and DGA modes of XFree86, and
36 it is designed to be portable - applications linked with SDL can also
37 be built on Win32 and BeOS.
38
39 %description -l pl
40 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
41 przeno¶ny, niskopoziomowy dostep do bufora ramki video, wyj¶cia audio,
42 myszy oraz klawiatury, Moze obs³ugiwaæ zarówno okienkowy tryb XFree86
43 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
44 konsolidowane z SDL mo¿na równie¿ budowac w systemach Win32 i BeOS.
45
46 %package devel
47 Summary:        SDL - Header files
48 Summary(pl):    SDL - Pliki nag³ówkowe
49 Group:          X11/Libraries
50 Group(de):      X11/Libraries
51 Group(pl):      X11/Biblioteki
52 Requires:       %{name} = %{version}
53
54 %description devel
55 SDL - Header files.
56
57 %description -l pl devel
58 SDL - Pliki nag³ówkowe.
59
60 %package static
61 Summary:        SDL - static libraries
62 Summary(pl):    SDL - biblioteki statyczne
63 Group:          X11/Libraries
64 Group(de):      X11/Libraries
65 Group(pl):      X11/Biblioteki
66 Requires:       %{name} = %{version}
67
68 %description static
69 SDL - static libraries.
70
71 %description -l pl static
72 SDL - biblioteki statyczne.
73
74 %prep
75 %setup -q
76 %patch -p1
77
78 %build
79 %configure \
80 %ifnarch sparc sparc64
81         %{!?bcond_off_alsa:--enable-alsa} \
82 %endif
83         --enable-nasm \
84         --enable-pthreads \
85         --with-x \
86         --enable-video-x11-dga \
87         --enable-video-x11-mtrr \
88         --enable-video-x11-dgamouse \
89         --enable-esd \
90         %{?bcond_on_svga:--enable-video-svga} \
91         %{?bcond_on_aalib:--enable-video-aalib}
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT \
98         m4datadir=%{_aclocaldir}
99
100 gzip -9nf BUGS README WhatsNew
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %clean
106 rm -rf $RPM_BUILD_ROOT
107
108 %files
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/lib*.so.*.*
111
112 %files devel
113 %defattr(644,root,root,755)
114 %doc *gz docs.html docs
115 %attr(755,root,root) %{_bindir}/sdl-config
116 %attr(755,root,root) %{_libdir}/lib*.so
117 %attr(755,root,root) %{_libdir}/lib*.la
118 %{_libdir}/libSDLmain.a
119 %{_includedir}/SDL
120 %{_aclocaldir}/*
121 %{_mandir}/man3/*
122
123 %files static
124 %defattr(644,root,root,755)
125 %{_libdir}/lib*.a
This page took 0.038691 seconds and 4 git commands to generate.