]> git.pld-linux.org Git - packages/SDL_image.git/blob - SDL_image.spec
- update to 1.0.10,
[packages/SDL_image.git] / SDL_image.spec
1 Summary:        Simple DirectMedia Layer - Sample Image Loading Library
2 Name:           SDL_image
3 Version:        1.0.10
4 Release:        1
5 License:        LGPL
6 Group:          Libraries
7 Group(de):      Libraries
8 Group(fr):      Librairies
9 Group(pl):      Biblioteki
10 Source0:        http://www.devolution.com/~slouken/SDL/projects/SDL_image/src/%{name}-%{version}.tar.gz
11 BuildRequires:  SDL-devel >= 1.1.1
12 BuildRequires:  libjpeg-devel
13 BuildRequires:  libpng >= 1.0.8
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define         _prefix         /usr/X11R6
17
18 %description
19 This is a simple library to load images of various formats as SDL
20 surfaces. This library currently supports BMP, PPM, PCX, GIF, JPEG,
21 and PNG formats.
22
23 %description -l pl
24 jest to prosta biblioteka s³u¿±ca do ³adowania ró¿nego formtu obrazków
25 jako powierzchni SDL. W chwili obecnej biblioteka obs³uguje
26 nastepuj±ce formaty: BMP, PPM, PCX, GIF, JPEG oraz PNG.
27
28 %package devel
29 Summary:        Header files and more to develop SDL_image applications
30 Group:          Development/Libraries
31 Group(de):      Entwicklung/Libraries
32 Group(fr):      Development/Librairies
33 Group(pl):      Programowanie/Biblioteki
34 Requires:       %{name} = %{version}
35 Requires:       SDL-devel
36
37 %description devel
38 Header files and more to develop SDL_image applications.
39
40 %package static
41 Summary:        Statis SDL_image libraries
42 Group:          Development/Libraries
43 Group(de):      Entwicklung/Libraries
44 Group(fr):      Development/Librairies
45 Group(pl):      Programowanie/Biblioteki
46 Requires:       %{name}-devel = %{version}
47
48 %description static
49 Statis SDL_image libraries.
50
51 %prep
52 %setup -q 
53
54 %build
55 %configure \
56         --enable-bmp \
57         --enable-gif \
58         --enable-jpg \
59         --enable-pcx \
60         --enable-png \
61         --enable-ppm \
62         --enable-tif
63
64 %{__make}
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68 %{__make} install DESTDIR=$RPM_BUILD_ROOT
69
70 mv -f $RPM_BUILD_ROOT%{_bindir}/showimage $RPM_BUILD_ROOT%{_bindir}/sdlshow
71
72 gzip -9nf README CHANGES
73
74 %post   -p /sbin/ldconfig
75 %postun -p /sbin/ldconfig
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files
81 %defattr(644,root,root,755)
82 %attr(755,root,root) %{_bindir}/*
83 %attr(755,root,root) %{_libdir}/lib*.so.*.*
84
85 %files devel
86 %defattr(644,root,root,755)
87 %doc *.gz
88 %attr(755,root,root) %{_libdir}/lib*.so
89 %{_includedir}/SDL/*
90
91 %files static
92 %defattr(644,root,root,755)
93 %{_libdir}/lib*.a
This page took 0.04591 seconds and 4 git commands to generate.