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