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