]> git.pld-linux.org Git - packages/SDL_image.git/blob - SDL_image.spec
- release 3,
[packages/SDL_image.git] / SDL_image.spec
1 Summary:        Simple DirectMedia Layer - Sample Image Loading Library
2 Name:           SDL_image
3 Version:        1.0.4
4 Release:        3
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.1.1
9 BuildRequires:  libjpeg-devel
10 BuildRequires:  libpng-devel
11 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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 %description -l pl
20 jest to prosta biblioteka s³u¿±ca do ³adowania ró¿nego formtu obrazków jako
21 powierzchni SDL. W chwili obecnej biblioteka obs³uguje nastepuj±ce formaty:
22 BMP, PPM, PCX, GIF, JPEG oraz PNG.
23
24 %package devel
25 Summary:        Header files and more to develop SDL_image applications
26 Group:          Development/Libraries
27 Group(fr):      Development/Librairies
28 Group(pl):      Programowanie/Biblioteki
29 Requires:       %{name} = %{version}
30 Requires:       SDL-devel
31
32 %description devel
33 Header files and more to develop SDL_image applications.
34
35 %package static
36 Summary:        Statis SDL_image libraries
37 Group:          Development/Libraries
38 Group(fr):      Development/Librairies
39 Group(pl):      Programowanie/Biblioteki
40 Requires:       %{name}-devel = %{version}
41
42 %description static
43 Statis SDL_image libraries.
44
45 %prep
46 %setup -q 
47
48 %build
49 LDFLAGS="-s"; export LDFLAGS
50 %configure \
51         --enable-bmp \
52         --enable-gif \
53         --enable-jpg \
54         --enable-pcx \
55         --enable-png \
56         --enable-ppm \
57         --enable-tif
58
59 make
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 make install DESTDIR=$RPM_BUILD_ROOT
64
65 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
66
67 gzip -9nf README CHANGES
68
69 %post   -p /sbin/ldconfig
70 %postun -p /sbin/ldconfig
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %files
76 %defattr(644,root,root,755)
77 %attr(755,root,root) %{_bindir}/showimage
78 %attr(755,root,root) %{_libdir}/lib*.so.*.*
79
80 %files devel
81 %defattr(644,root,root,755)
82 %doc *.gz
83 %attr(755,root,root) %{_libdir}/lib*.so
84 %{_includedir}/SDL/*
85
86 %files static
87 %attr(644,root,root) %{_libdir}/lib*.a
This page took 0.094878 seconds and 4 git commands to generate.