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