]> git.pld-linux.org Git - packages/allegro5.git/blob - allegro.spec
- fixed for !ix86
[packages/allegro5.git] / allegro.spec
1 Summary:        A game programming library
2 Summary(pl):    Biblioteka do programowania gier
3 Name:           allegro
4 Version:        4.0.1
5 Release:        0.1
6 License:        Giftware
7 Group:          X11/Libraries
8 Source0:        http://prdownloads.sourceforge.net/alleg/%{name}-%{version}.tar.gz
9 Patch0:         %{name}-makefile.patch
10 Patch1:         %{name}-info.patch
11 URL:            http://alleg.sourceforge.net
12 BuildRequires:  XFree86-devel
13 BuildRequires:  esound-devel
14 %ifnarch sparc sparc64
15 BuildRequires:  alsa-lib-devel
16 %endif
17 %ifarch %{ix86}
18 BuildRequires:  svgalib-devel
19 %endif
20 BuildRequires:  texinfo
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         _prefix         /usr/X11R6
24 %define         _mandir         %{_prefix}/man
25
26 %description
27 Allegro is a cross-platform library intended for use in computer games
28 and other types of multimedia programming.
29
30 %description -l pl
31 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
32 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
33
34 %package devel
35 Summary:        A game programming library - header files
36 Summary(pl):    Biblioteka do programowania gier - pliki nag³ówkowe
37 Group:          X11/Development/Libraries
38 Requires:       %{name} = %{version}
39
40 %description devel
41 Allegro is a cross-platform library intended for use in computer games
42 and other types of multimedia programming.
43
44 This package contains header files neccessary for compiling
45 applications using allegro library.
46
47 %description devel -l pl
48 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
49 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
50
51 Ten pakiet zawiera pliki nag³ówkowe niezbêdne do kompilowania
52 aplikacji wykorzystuj±cych bibliotekê allegro.
53
54 %package static
55 Summary:        A game programming library - static libraries
56 Summary(pl):    Biblioteka do programowania gier - biblioteki statyczne
57 Group:          X11/Development/Libraries
58 Requires:       %{name}-devel = %{version}
59
60 %description static
61 Allegro is a cross-platform library intended for use in computer games
62 and other types of multimedia programming.
63
64 This package contains static libraries for linking with allegro
65 applications.
66
67 %description static -l pl
68 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
69 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
70
71 Ten pakiet zawiera biblioteki statyczne do linkowania z aplikacjami
72 wykorzystuj±cymi allegro.
73
74 %package svgalib
75 Summary:        A game programming library - svgalib module
76 Summary(pl):    Biblioteka do programowania gier - modu³ dla svgalib
77 Group:          X11/Libraries
78 PreReq:         %{name} = %{version}
79
80 %description svgalib
81 Allegro is a cross-platform library intended for use in computer games
82 and other types of multimedia programming.
83
84 This package contains module for use with allegro and svgalib.
85
86 %description svgalib -l pl
87 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
88 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
89
90 Ten pakiet zawiera modu³ do wykorzystania allegro z svgalibem.
91
92 %package dga2
93 Summary:        A game programming library - DGA2 module
94 Summary(pl):    Biblioteka do programowania gier - modu³ dla DGA2
95 Group:          X11/Libraries
96 PreReq:         %{name} = %{version}
97
98 %description dga2
99 Allegro is a cross-platform library intended for use in computer games
100 and other types of multimedia programming.
101
102 This package contains module for use with DGA.
103
104 %description dga2 -l pl
105 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
106 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
107
108 Ten pakiet zawiera modu³ do wykorzystania z DGA.
109
110 %package esd
111 Summary:        A game programming library - esound module
112 Summary(pl):    Biblioteka do programowania gier - modu³ dla esound
113 Group:          X11/Libraries
114 PreReq:         %{name} = %{version}
115
116 %description esd
117 Allegro is a cross-platform library intended for use in computer games
118 and other types of multimedia programming.
119
120 This package contains a esound module for use with ESound daemon.
121
122 %description esd -l pl
123 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
124 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
125
126 Ten pakiet zawiera modu³ do wykorzystania z demonem ESound.
127
128 %package alsa
129 Summary:        A game programming library - ALSA modules
130 Summary(pl):    Biblioteka do programowania gier - modu³y dla ALSA
131 Group:          X11/Libraries
132 PreReq:         %{name} = %{version}
133
134 %description alsa
135 Allegro is a cross-platform library intended for use in computer games
136 and other types of multimedia programming.
137
138 This package contains modules for use with ALSA sound library.
139
140 %description alsa -l pl
141 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
142 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
143
144 Ten pakiet zawiera modu³y do wykorzystania z bibliotek± d¼wiêkow±
145 ALSA.
146
147 %prep
148 %setup  -q
149 %patch0 -p1
150 %patch1 -p1
151
152 %build
153 aclocal
154 %{__autoconf}
155 %configure \
156         --enable-static \
157         --enable-dbglib \
158         --enable-proflib \
159 %ifnarch %{ix86}
160         --disable-vga \
161         --disable-linux
162 %endif
163         
164 %{__make} MAKEINFO=makeinfo
165
166 %install
167 rm -rf $RPM_BUILD_ROOT
168
169 %{__make} install install-man install-info \
170         DESTDIR=$RPM_BUILD_ROOT
171
172 gzip -9nf AUTHORS CHANGES THANKS
173
174 echo -e "# List of modules to be loaded by the Unix version of Allegro.\n" \
175         > $RPM_BUILD_ROOT%{_libdir}/allegro/4.0/modules.lst
176
177 %clean
178 rm -rf $RPM_BUILD_ROOT
179
180 %files
181 %defattr(644,root,root,755)
182 %attr(755,root,root) %{_libdir}/liballeg-%{version}.so
183 %dir %{_libdir}/allegro/
184 %{_libdir}/allegro/4.0/modules.lst
185
186 %files devel
187 %defattr(644,root,root,755)
188 %attr(755,root,root) %{_libdir}/liballd-%{version}.so
189 %attr(755,root,root) %{_libdir}/liballp-%{version}.so
190 %{_includedir}/*
191 %attr(755,root,root) %{_bindir}/allegro-config
192 %attr(755,root,root) %{_bindir}/colormap
193 %attr(755,root,root) %{_bindir}/exedat
194 %attr(755,root,root) %{_bindir}/pack
195 %attr(755,root,root) %{_bindir}/rgbmap
196 %attr(755,root,root) %{_bindir}/textconv
197 %attr(755,root,root) %{_bindir}/dat
198 %attr(755,root,root) %{_bindir}/dat2s
199 %attr(755,root,root) %{_bindir}/grabber
200 %attr(755,root,root) %{_bindir}/pat2dat
201 %{_mandir}/man3/*
202 %{_infodir}/*
203
204 %files static
205 %defattr(644,root,root,755)
206 %{_libdir}/*.a
207
208 %ifarch %{ix86}
209 %files svgalib
210 %defattr(644,root,root,755)
211 %{_libdir}/allegro/4.0/alleg-svgalib.so
212 %endif
213
214 %files dga2
215 %defattr(644,root,root,755)
216 %{_libdir}/allegro/4.0/alleg-dga2.so
217
218 %files esd
219 %defattr(644,root,root,755)
220 %{_libdir}/allegro/4.0/alleg-esddigi.so
221
222 %ifarch %{ix86}
223 %files alsa
224 %defattr(644,root,root,755)
225 %{_libdir}/allegro/4.0/alleg-alsadigi.so
226 %{_libdir}/allegro/4.0/alleg-alsamidi.so
227 %endif
This page took 0.134764 seconds and 4 git commands to generate.