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