]>
Commit | Line | Data |
---|---|---|
1 | Summary: Simple DirectMedia Layer - Sample Image Loading Library | |
2 | Name: SDL_image | |
3 | Version: 1.0.4 | |
4 | Release: 1 | |
5 | License: LGPL | |
6 | Group: Libraries | |
7 | Source0: http://www.devolution.com/~slouken/SDL/projects/SDL_image/src/%{name}-%{version}.tar.gz | |
8 | BuildRequires: SDL-devel >= 1.0.1 | |
9 | BuildRequires: libjpeg-devel | |
10 | BuildRequires: libpng-devel | |
11 | BuildRoot: /tmp/%{name}-%{version}-root | |
12 | ||
13 | %define _prefix /usr/X11R6 | |
14 | ||
15 | %description | |
16 | This is a simple library to load images of various formats as SDL surfaces. | |
17 | This library currently supports BMP, PPM, PCX, GIF, JPEG, and PNG formats. | |
18 | ||
19 | %package devel | |
20 | Summary: Header files and more to develop SDL_image applications | |
21 | Group: Development/Libraries | |
22 | Group(fr): Development/Librairies | |
23 | Group(pl): Programowanie/Biblioteki | |
24 | Requires: %{name} = %{version} | |
25 | Requires: SDL-devel | |
26 | ||
27 | %description devel | |
28 | Header files and more to develop SDL_image applications. | |
29 | ||
30 | %package static | |
31 | Summary: Statis SDL_image libraries | |
32 | Group: Development/Libraries | |
33 | Group(fr): Development/Librairies | |
34 | Group(pl): Programowanie/Biblioteki | |
35 | Requires: %{name}-devel = %{version} | |
36 | Requires: SDL-devel | |
37 | ||
38 | %description static | |
39 | Statis SDL_image libraries. | |
40 | ||
41 | %prep | |
42 | %setup -q | |
43 | ||
44 | %build | |
45 | LDFLAGS="-s"; export LDFLAGS | |
46 | %configure | |
47 | ||
48 | make | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | make install DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* | |
55 | ||
56 | gzip -9nf README CHANGES | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %{_bindir}/showimage | |
64 | %attr(755,root,roo) %{_libdir}/lib*.so.*.* | |
65 | ||
66 | %files devel | |
67 | %defattr(644,root,root,755) | |
68 | %doc *.gz | |
69 | %attr(755,root,roo) %{_libdir}/lib*.so | |
70 | %{_includedir}/SDL/* | |
71 | ||
72 | %files static | |
73 | %attr(644,root,roo) %{_libdir}/lib*.a |