]>
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 |
14ab01ba | 5 | Version: 1.2.7 |
6 | Release: 1 | |
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 |
14ab01ba | 10 | # Source0-md5: a729ff61f74f0a45ec7fe36354cf938e |
fff12f80 | 11 | URL: http://www.libsdl.org/projects/SDL_image/ |
2ddf60ef | 12 | BuildRequires: SDL-devel >= 1.2.10 |
8d9d3b5e | 13 | BuildRequires: autoconf |
14 | BuildRequires: automake | |
d89af22e | 15 | BuildRequires: libjpeg-devel >= 6b |
6a4c1856 JB |
16 | BuildRequires: libpng-devel >= 2:1.2.0 |
17 | BuildRequires: libtiff-devel >= 3 | |
8d9d3b5e | 18 | BuildRequires: libtool |
2ddf60ef | 19 | Requires: SDL >= 1.2.10 |
1843ad0e | 20 | Obsoletes: libSDL_image1.2 |
fee6c0ad | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ea1b2ce1 | 22 | |
6533b2c9 | 23 | %description |
e06ff6de | 24 | This is a simple library to load images of various formats as SDL |
25 | surfaces. This library currently supports BMP, PPM, PCX, GIF, JPEG, | |
26 | and PNG formats. | |
6533b2c9 | 27 | |
6cacee76 JR |
28 | %description -l pl.UTF-8 |
29 | jest to prosta biblioteka służąca do ładowania różnego formatu obrazków | |
30 | jako powierzchni SDL. W chwili obecnej biblioteka obsługuje | |
31 | następujące formaty: BMP, PPM, PCX, GIF, JPEG oraz PNG. | |
d65af93b | 32 | |
6cacee76 | 33 | %description -l pt_BR.UTF-8 |
4add988f | 34 | Simple DirectMedia Layer - Biblioteca exemplo para carga de Imagens. |
35 | ||
6533b2c9 | 36 | %package devel |
4add988f | 37 | Summary: Header files and more to develop SDL_image applications |
6a02ff81 ER |
38 | Summary(pl.UTF-8): Pliki nagłówkowe do rozwijania aplikacji używających SDL_image |
39 | Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações SDL | |
ea1b2ce1 | 40 | Group: Development/Libraries |
2c78cf22 | 41 | Requires: %{name} = %{version}-%{release} |
2ddf60ef | 42 | Requires: SDL-devel >= 1.2.10 |
1843ad0e | 43 | Obsoletes: libSDL_image1.2-devel |
6533b2c9 | 44 | |
45 | %description devel | |
ea1b2ce1 | 46 | Header files and more to develop SDL_image applications. |
6533b2c9 | 47 | |
6cacee76 JR |
48 | %description devel -l pl.UTF-8 |
49 | Pliki nagłówkowe do rozwijania aplikacji używających SDL_image. | |
fff12f80 | 50 | |
6cacee76 JR |
51 | %description devel -l pt_BR.UTF-8 |
52 | Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações | |
4add988f | 53 | SDL. |
54 | ||
ea1b2ce1 | 55 | %package static |
fff12f80 | 56 | Summary: Static SDL_image libraries |
6a02ff81 ER |
57 | Summary(pl.UTF-8): Statyczne biblioteki SDL_image |
58 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento de aplicações SDL | |
ea1b2ce1 | 59 | Group: Development/Libraries |
2c78cf22 | 60 | Requires: %{name}-devel = %{version}-%{release} |
ea1b2ce1 | 61 | |
62 | %description static | |
63 | Statis SDL_image libraries. | |
6533b2c9 | 64 | |
6cacee76 | 65 | %description static -l pl.UTF-8 |
fff12f80 AM |
66 | Statyczne biblioteki SDL_image. |
67 | ||
6cacee76 JR |
68 | %description static -l pt_BR.UTF-8 |
69 | Bibliotecas estáticas para desenvolvimento de aplicações SDL. | |
4add988f | 70 | |
ea1b2ce1 | 71 | %prep |
4add988f | 72 | %setup -q |
6533b2c9 | 73 | |
a27eb965 | 74 | rm -f acinclude.m4 |
9d17b6f2 JB |
75 | |
76 | %build | |
d2548248 | 77 | %{__libtoolize} |
c1e28d9f | 78 | %{__aclocal} |
9b7600fc | 79 | %{__autoconf} |
80 | %{__automake} | |
199fb27d | 81 | %configure \ |
d89af22e JB |
82 | jpg_lib=libjpeg.so.62 \ |
83 | png_lib=libpng12.so.0 \ | |
84 | tif_lib=libtiff.so.3 \ | |
6f9850dd | 85 | --enable-bmp \ |
86 | --enable-gif \ | |
87 | --enable-jpg \ | |
88 | --enable-pcx \ | |
89 | --enable-png \ | |
90 | --enable-ppm \ | |
91 | --enable-tif | |
ea1b2ce1 | 92 | |
b7ebbe93 | 93 | %{__make} |
6533b2c9 | 94 | |
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
b9acb865 | 97 | install -d $RPM_BUILD_ROOT%{_bindir} |
ea1b2ce1 | 98 | |
43fa5666 PG |
99 | %{__make} install \ |
100 | DESTDIR=$RPM_BUILD_ROOT | |
8d9d3b5e | 101 | |
c2b81651 | 102 | install .libs/showimage $RPM_BUILD_ROOT%{_bindir}/sdlshow |
6533b2c9 | 103 | |
104 | %clean | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
999f21b0 | 107 | %post -p /sbin/ldconfig |
108 | %postun -p /sbin/ldconfig | |
199fb27d | 109 | |
6533b2c9 | 110 | %files |
ea1b2ce1 | 111 | %defattr(644,root,root,755) |
d89af22e | 112 | %doc CHANGES README |
6a4c1856 JB |
113 | %attr(755,root,root) %{_bindir}/sdlshow |
114 | %attr(755,root,root) %{_libdir}/libSDL_image-*.so.*.*.* | |
14ab01ba | 115 | %attr(755,root,root) %ghost %{_libdir}/libSDL_image-1.2.so.0 |
6533b2c9 | 116 | |
117 | %files devel | |
ea1b2ce1 | 118 | %defattr(644,root,root,755) |
6a4c1856 JB |
119 | %attr(755,root,root) %{_libdir}/libSDL_image.so |
120 | %{_libdir}/libSDL_image.la | |
121 | %{_includedir}/SDL/SDL_image.h | |
ea1b2ce1 | 122 | |
123 | %files static | |
e06ff6de | 124 | %defattr(644,root,root,755) |
6a4c1856 | 125 | %{_libdir}/libSDL_image.a |