]>
Commit | Line | Data |
---|---|---|
7f4d1a21 | 1 | Summary: Simple DirectMedia Layer - Sample Image Loading Library |
6a02ff81 ER |
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 | |
ea1b2ce1 | 4 | Name: SDL_image |
6a4c1856 | 5 | Version: 1.2.6 |
b920919b | 6 | Release: 2 |
6a4c1856 | 7 | License: LGPL v2.1+ |
ea1b2ce1 | 8 | Group: Libraries |
983150b6 | 9 | Source0: http://www.libsdl.org/projects/SDL_image/release/%{name}-%{version}.tar.gz |
6a4c1856 | 10 | # Source0-md5: b866dc4f647517bdaf57f6ffdefd013e |
b920919b SS |
11 | Patch0: %{name}-buffer-overflow.patch |
12 | Patch1: %{name}-IMG_lbm.patch | |
fff12f80 | 13 | URL: http://www.libsdl.org/projects/SDL_image/ |
2ddf60ef | 14 | BuildRequires: SDL-devel >= 1.2.10 |
8d9d3b5e | 15 | BuildRequires: autoconf |
16 | BuildRequires: automake | |
d89af22e | 17 | BuildRequires: libjpeg-devel >= 6b |
6a4c1856 JB |
18 | BuildRequires: libpng-devel >= 2:1.2.0 |
19 | BuildRequires: libtiff-devel >= 3 | |
8d9d3b5e | 20 | BuildRequires: libtool |
2ddf60ef | 21 | Requires: SDL >= 1.2.10 |
1843ad0e | 22 | Obsoletes: libSDL_image1.2 |
fee6c0ad | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ea1b2ce1 | 24 | |
6533b2c9 | 25 | %description |
e06ff6de | 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. | |
6533b2c9 | 29 | |
6cacee76 JR |
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. | |
d65af93b | 34 | |
6cacee76 | 35 | %description -l pt_BR.UTF-8 |
4add988f | 36 | Simple DirectMedia Layer - Biblioteca exemplo para carga de Imagens. |
37 | ||
6533b2c9 | 38 | %package devel |
4add988f | 39 | Summary: Header files and more to develop SDL_image applications |
6a02ff81 ER |
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 | |
ea1b2ce1 | 42 | Group: Development/Libraries |
2c78cf22 | 43 | Requires: %{name} = %{version}-%{release} |
2ddf60ef | 44 | Requires: SDL-devel >= 1.2.10 |
1843ad0e | 45 | Obsoletes: libSDL_image1.2-devel |
6533b2c9 | 46 | |
47 | %description devel | |
ea1b2ce1 | 48 | Header files and more to develop SDL_image applications. |
6533b2c9 | 49 | |
6cacee76 JR |
50 | %description devel -l pl.UTF-8 |
51 | Pliki nagłówkowe do rozwijania aplikacji używających SDL_image. | |
fff12f80 | 52 | |
6cacee76 JR |
53 | %description devel -l pt_BR.UTF-8 |
54 | Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações | |
4add988f | 55 | SDL. |
56 | ||
ea1b2ce1 | 57 | %package static |
fff12f80 | 58 | Summary: Static SDL_image libraries |
6a02ff81 ER |
59 | Summary(pl.UTF-8): Statyczne biblioteki SDL_image |
60 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento de aplicações SDL | |
ea1b2ce1 | 61 | Group: Development/Libraries |
2c78cf22 | 62 | Requires: %{name}-devel = %{version}-%{release} |
ea1b2ce1 | 63 | |
64 | %description static | |
65 | Statis SDL_image libraries. | |
6533b2c9 | 66 | |
6cacee76 | 67 | %description static -l pl.UTF-8 |
fff12f80 AM |
68 | Statyczne biblioteki SDL_image. |
69 | ||
6cacee76 JR |
70 | %description static -l pt_BR.UTF-8 |
71 | Bibliotecas estáticas para desenvolvimento de aplicações SDL. | |
4add988f | 72 | |
ea1b2ce1 | 73 | %prep |
4add988f | 74 | %setup -q |
b920919b SS |
75 | %patch0 -p2 |
76 | %patch1 -p2 | |
6533b2c9 | 77 | |
a27eb965 | 78 | rm -f acinclude.m4 |
9d17b6f2 JB |
79 | |
80 | %build | |
d2548248 | 81 | %{__libtoolize} |
c1e28d9f | 82 | %{__aclocal} |
9b7600fc | 83 | %{__autoconf} |
84 | %{__automake} | |
199fb27d | 85 | %configure \ |
d89af22e JB |
86 | jpg_lib=libjpeg.so.62 \ |
87 | png_lib=libpng12.so.0 \ | |
88 | tif_lib=libtiff.so.3 \ | |
6f9850dd | 89 | --enable-bmp \ |
90 | --enable-gif \ | |
91 | --enable-jpg \ | |
92 | --enable-pcx \ | |
93 | --enable-png \ | |
94 | --enable-ppm \ | |
95 | --enable-tif | |
ea1b2ce1 | 96 | |
b7ebbe93 | 97 | %{__make} |
6533b2c9 | 98 | |
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
b9acb865 | 101 | install -d $RPM_BUILD_ROOT%{_bindir} |
ea1b2ce1 | 102 | |
43fa5666 PG |
103 | %{__make} install \ |
104 | DESTDIR=$RPM_BUILD_ROOT | |
8d9d3b5e | 105 | |
c2b81651 | 106 | install .libs/showimage $RPM_BUILD_ROOT%{_bindir}/sdlshow |
6533b2c9 | 107 | |
108 | %clean | |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
999f21b0 | 111 | %post -p /sbin/ldconfig |
112 | %postun -p /sbin/ldconfig | |
199fb27d | 113 | |
6533b2c9 | 114 | %files |
ea1b2ce1 | 115 | %defattr(644,root,root,755) |
d89af22e | 116 | %doc CHANGES README |
6a4c1856 JB |
117 | %attr(755,root,root) %{_bindir}/sdlshow |
118 | %attr(755,root,root) %{_libdir}/libSDL_image-*.so.*.*.* | |
6533b2c9 | 119 | |
120 | %files devel | |
ea1b2ce1 | 121 | %defattr(644,root,root,755) |
6a4c1856 JB |
122 | %attr(755,root,root) %{_libdir}/libSDL_image.so |
123 | %{_libdir}/libSDL_image.la | |
124 | %{_includedir}/SDL/SDL_image.h | |
ea1b2ce1 | 125 | |
126 | %files static | |
e06ff6de | 127 | %defattr(644,root,root,755) |
6a4c1856 | 128 | %{_libdir}/libSDL_image.a |