]> git.pld-linux.org Git - packages/SDL_image.git/blob - SDL_image.spec
- added buffer-overflow.patch and IMG_lbm.patch
[packages/SDL_image.git] / SDL_image.spec
1 Summary:        Simple DirectMedia Layer - Sample Image Loading Library
2 Summary(pl.UTF-8):      Przykładowa biblioteka do ładowania obrazków
3 Summary(pt_BR.UTF-8):   Simple DirectMedia Layer - Biblioteca exemplo para carga de Imagens
4 Name:           SDL_image
5 Version:        1.2.6
6 Release:        2
7 License:        LGPL v2.1+
8 Group:          Libraries
9 Source0:        http://www.libsdl.org/projects/SDL_image/release/%{name}-%{version}.tar.gz
10 # Source0-md5:  b866dc4f647517bdaf57f6ffdefd013e
11 Patch0:         %{name}-buffer-overflow.patch
12 Patch1:         %{name}-IMG_lbm.patch
13 URL:            http://www.libsdl.org/projects/SDL_image/
14 BuildRequires:  SDL-devel >= 1.2.10
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  libjpeg-devel >= 6b
18 BuildRequires:  libpng-devel >= 2:1.2.0
19 BuildRequires:  libtiff-devel >= 3
20 BuildRequires:  libtool
21 Requires:       SDL >= 1.2.10
22 Obsoletes:      libSDL_image1.2
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 This is a simple library to load images of various formats as SDL
27 surfaces. This library currently supports BMP, PPM, PCX, GIF, JPEG,
28 and PNG formats.
29
30 %description -l pl.UTF-8
31 jest to prosta biblioteka służąca do ładowania różnego formatu obrazków
32 jako powierzchni SDL. W chwili obecnej biblioteka obsługuje
33 następujące formaty: BMP, PPM, PCX, GIF, JPEG oraz PNG.
34
35 %description -l pt_BR.UTF-8
36 Simple DirectMedia Layer - Biblioteca exemplo para carga de Imagens.
37
38 %package devel
39 Summary:        Header files and more to develop SDL_image applications
40 Summary(pl.UTF-8):      Pliki nagłówkowe do rozwijania aplikacji używających SDL_image
41 Summary(pt_BR.UTF-8):   Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações SDL
42 Group:          Development/Libraries
43 Requires:       %{name} = %{version}-%{release}
44 Requires:       SDL-devel >= 1.2.10
45 Obsoletes:      libSDL_image1.2-devel
46
47 %description devel
48 Header files and more to develop SDL_image applications.
49
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe do rozwijania aplikacji używających SDL_image.
52
53 %description devel -l pt_BR.UTF-8
54 Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações
55 SDL.
56
57 %package static
58 Summary:        Static SDL_image libraries
59 Summary(pl.UTF-8):      Statyczne biblioteki SDL_image
60 Summary(pt_BR.UTF-8):   Bibliotecas estáticas para desenvolvimento de aplicações SDL
61 Group:          Development/Libraries
62 Requires:       %{name}-devel = %{version}-%{release}
63
64 %description static
65 Statis SDL_image libraries.
66
67 %description static -l pl.UTF-8
68 Statyczne biblioteki SDL_image.
69
70 %description static -l pt_BR.UTF-8
71 Bibliotecas estáticas para desenvolvimento de aplicações SDL.
72
73 %prep
74 %setup -q
75 %patch0 -p2
76 %patch1 -p2
77
78 rm -f acinclude.m4
79
80 %build
81 %{__libtoolize}
82 %{__aclocal}
83 %{__autoconf}
84 %{__automake}
85 %configure \
86         jpg_lib=libjpeg.so.62 \
87         png_lib=libpng12.so.0 \
88         tif_lib=libtiff.so.3 \
89         --enable-bmp \
90         --enable-gif \
91         --enable-jpg \
92         --enable-pcx \
93         --enable-png \
94         --enable-ppm \
95         --enable-tif
96
97 %{__make}
98
99 %install
100 rm -rf $RPM_BUILD_ROOT
101 install -d $RPM_BUILD_ROOT%{_bindir}
102
103 %{__make} install \
104         DESTDIR=$RPM_BUILD_ROOT
105
106 install .libs/showimage $RPM_BUILD_ROOT%{_bindir}/sdlshow
107
108 %clean
109 rm -rf $RPM_BUILD_ROOT
110
111 %post   -p /sbin/ldconfig
112 %postun -p /sbin/ldconfig
113
114 %files
115 %defattr(644,root,root,755)
116 %doc CHANGES README
117 %attr(755,root,root) %{_bindir}/sdlshow
118 %attr(755,root,root) %{_libdir}/libSDL_image-*.so.*.*.*
119
120 %files devel
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_libdir}/libSDL_image.so
123 %{_libdir}/libSDL_image.la
124 %{_includedir}/SDL/SDL_image.h
125
126 %files static
127 %defattr(644,root,root,755)
128 %{_libdir}/libSDL_image.a
This page took 0.096011 seconds and 3 git commands to generate.