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