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