]> git.pld-linux.org Git - packages/SDL.git/blob - SDL.spec
- removed .cvsignore files from %%doc
[packages/SDL.git] / SDL.spec
1 #
2 # Conditional build:
3 # _with_aalib - with aalib support
4 # _with_ggi - with GGI support
5 # _with_nas - with NAS audio support
6 # _with_svga - with svgalib support
7 #
8 # _without_alsa - without ALSA support
9 # _without_arts - without arts support
10 # _without_esound - without esound support
11 #
12 %ifarch alpha
13 %define _without_arts 1
14 %endif
15
16 %define         snap 20030528
17
18 Summary:        SDL (Simple DirectMedia Layer) - Game/Multimedia Library
19 Summary(es):    Simple DirectMedia Layer
20 Summary(pl):    SDL (Simple DirectMedia Layer) - Biblioteka do gier/multimediów
21 Summary(pt_BR): Simple DirectMedia Layer
22 Summary(ru):    Simple DirectMedia Layer
23 Summary(uk):    Simple DirectMedia Layer
24 Summary(zh_CN): SDL (Simple DirectMedia Layer) Generic APIs - ÓÎÏ·/¶àýÌå¿â
25 Name:           SDL
26 Version:        1.2.6
27 Release:        1.%{snap}.0
28 License:        LGPL
29 Group:          X11/Libraries
30 #Source0:       http://www.libsdl.org/release/%{name}-%{version}.tar.gz
31 Source0:        http://www.libsdl.org/cvs/%{name}-1.2.tar.gz
32 # Source0-md5:  8e5801a100367f515b186ff8469cdb0d
33 Patch0:         %{name}-byteorder.patch
34 Patch1:         %{name}-fixlibs.patch
35 Patch2:         %{name}-amfix.patch
36 Patch3:         %{name}-lpthread.patch
37 Patch4:         %{name}-ac25x.patch
38 Patch5:         %{name}-no_rpath_in_sdl-config.patch
39 Patch6:         %{name}-noobjc.patch
40 Patch7:         %{name}-am17.patch
41 URL:            http://www.libsdl.org/
42 BuildRequires:  OpenGL-devel
43 BuildRequires:  XFree86-devel >= 4.0.2
44 %{?_with_aalib:BuildRequires:   aalib-devel}
45 %ifnarch sparc sparc64
46 %{!?_without_alsa:BuildRequires:        alsa-lib-devel}
47 %endif
48 %{!?_without_arts:BuildRequires:        arts-devel >= 1.1}
49 BuildRequires:  autoconf
50 BuildRequires:  automake
51 %{!?_without_esound:BuildRequires:      esound-devel}
52 %{?_with_ggi:BuildRequires:     libggi-devel}
53 BuildRequires:  libtool
54 %{?_with_nas:BuildRequires:     nas-devel}
55 %ifarch %{ix86}
56 BuildRequires:  nasm
57 %endif
58 BuildRequires:  perl-modules
59 %{?_with_svgalib:BuildRequires: svgalib-devel}
60 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61
62 %description
63 SDL (Simple DirectMedia Layer) is a library that allows you portable,
64 low level access to a video framebuffer, audio output, mouse, and
65 keyboard. It can support both windowed and DGA modes of XFree86, and
66 it is designed to be portable - applications linked with SDL can also
67 be built on Win32 and BeOS.
68
69 %description -l pl
70 SDL (Simple DirectMedia Layer) jest bibliotek± udostêpniaj±c±
71 przeno¶ny, niskopoziomowy dostêp do bufora ramki video, wyj¶cia audio,
72 myszy oraz klawiatury. Mo¿e obs³ugiwaæ zarówno okienkowy tryb XFree86
73 jak i DGA. Konstruuj±c j± miano na uwadze przeno¶no¶æ: aplikacje
74 konsolidowane z SDL mo¿na równie¿ budowaæ w systemach Win32 i BeOS.
75
76 %description -l pt_BR
77 Esse é o Simple DirectMedia Layer, uma API genérica que dá acesso de
78 baixo nível a áudio, teclado, mouse e vídeo em várias plataformas.
79
80 Essa biblioteca é usada por alguns jogos.
81
82 %package devel
83 Summary:        SDL - Header files
84 Summary(pl):    SDL - Pliki nag³ówkowe
85 Summary(pt_BR): Bibliotecas e arquivos de cabeçalho para aplicações SDL
86 Summary(ru):    æÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ SDL
87 Summary(uk):    æÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL
88 Summary(zh_CN): SDL (Simple DirectMedia Layer) ¿ª·¢¿â
89 Group:          X11/Development/Libraries
90 Requires:       %{name} = %{version}
91 Requires:       XFree86-devel >= 4.0.2
92 %ifnarch sparc sparc64
93 %{!?_without_alsa:Requires:     alsa-lib-devel}
94 %endif
95 %{!?_without_arts:Requires:     arts-devel}
96 %{!?_without_esound:Requires:   esound-devel}
97 %{?_with_nas:Requires:  nas-devel}
98
99 %description devel
100 SDL - Header files.
101
102 %description devel -l pl
103 SDL - Pliki nag³ówkowe.
104
105 %description devel -l pt_BR
106 Esse pacote contém bibliotecas, arquivos de cabeçalho e outros
107 recursos para o desenvolvimento de aplicativos com SDL.
108
109 %description devel -l ru
110 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
111 ÉÓÐÏÌØÚÕÀÝÉÈ SDL.
112
113 %description devel -l uk
114 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÆÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
115 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL.
116
117 %package static
118 Summary:        SDL - static libraries
119 Summary(pl):    SDL - biblioteki statyczne
120 Summary(pt_BR): Biblioteca estática para desenvolvimento de aplicações com a SDL
121 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ SDL
122 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ SDL
123 Group:          X11/Development/Libraries
124 Requires:       %{name}-devel = %{version}
125
126 %description static
127 SDL - static libraries.
128
129 %description static -l pl
130 SDL - biblioteki statyczne.
131
132 %description static -l pt_BR
133 Biblioteca estática para desenvolvimento de aplicações com a SDL.
134
135 %description static -l ru
136 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ,
137 ÉÓÐÏÌØÚÕÀÝÉÈ SDL.
138
139 %description static -l uk
140 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÓÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
141 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ SDL.
142
143 %package examples
144 Summary:        SDL - example programs
145 Summary(pl):    SDL - programy przyk³adowe
146 Group:          X11/Development/Libraries
147 Requires:       %{name}-devel = %{version}
148
149 %description examples
150 SDL - example programs.
151
152 %description examples -l pl
153 SDL - przyk³adowe programy.
154
155 %prep
156 %setup -q -n %{name}-1.2
157 %patch0 -p1
158 %patch1 -p1
159 %patch2 -p1
160 %patch3 -p1
161 %patch4 -p1
162 %patch5 -p1
163 %patch6 -p1
164 %patch7 -p1
165
166 %build
167 find . -type d -name CVS -print | xargs rm -rf {} \;
168 rm -f missing libtool
169 %{__libtoolize}
170 %{__aclocal}
171 %{__automake}
172 %{__autoconf}
173 SED=sed ; export SED
174 %configure \
175 %ifarch %{ix86}
176         --enable-nasm \
177 %else
178         --disable-nasm \
179 %endif
180         --enable-pthreads \
181         --enable-pthread-sem \
182         --with-x \
183         --enable-dga \
184         --enable-video-dga \
185         --disable-video-directfb \
186         --enable-video-x11-dgamouse \
187         --enable-video-x11-vm \
188         --enable-video-x11-xv \
189         --enable-video-opengl \
190         --enable-video-fbcon \
191         %{?_with_aalib:--enable-video-aalib} \
192         %{?_with_ggi:--enable-video-ggi} \
193         %{!?_with_nas:--disable-nas} \
194         %{?_with_svga:--enable-video-svga} \
195 %ifnarch sparc sparc64
196         %{!?_without_alsa:--enable-alsa} \
197 %endif
198         %{!?_without_esound:--enable-esd} \
199         %{!?_without_arts:--enable-arts} \
200         %{?_without_arts:--disable-arts}
201
202 %{__make}
203
204 %install
205 rm -rf $RPM_BUILD_ROOT
206 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
207
208 SED=sed ; export SED
209 %{__make} install \
210         DESTDIR=$RPM_BUILD_ROOT \
211         m4datadir=%{_aclocaldir}
212
213 install test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
214
215 rm -rf docs/man3 docs/{Makefile*,.cvsignore} docs/html/{Makefile*,.cvsignore}
216
217 %clean
218 rm -rf $RPM_BUILD_ROOT
219
220 %post   -p /sbin/ldconfig
221 %postun -p /sbin/ldconfig
222
223 %files
224 %defattr(644,root,root,755)
225 %attr(755,root,root) %{_libdir}/lib*.so.*.*
226
227 %files devel
228 %defattr(644,root,root,755)
229 %doc BUGS CREDITS README TODO WhatsNew docs.html docs
230 %attr(755,root,root) %{_bindir}/sdl-config
231 %attr(755,root,root) %{_libdir}/lib*.so
232 %{_libdir}/lib*.la
233 %{_libdir}/libSDLmain.a
234 %{_includedir}/SDL
235 %{_aclocaldir}/*
236 %{_mandir}/man3/*
237
238 %files examples
239 %defattr(644,root,root,755)
240 %{_examplesdir}/%{name}-%{version}
241
242 %files static
243 %defattr(644,root,root,755)
244 %{_libdir}/libSDL.a
This page took 0.092769 seconds and 4 git commands to generate.