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