]>
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 |
940dc9d2 | 5 | Version: 1.2.12 |
eb4cf9d5 JB |
6 | Release: 1 |
7 | License: Zlib-like | |
ea1b2ce1 | 8 | Group: Libraries |
983150b6 | 9 | Source0: http://www.libsdl.org/projects/SDL_image/release/%{name}-%{version}.tar.gz |
940dc9d2 | 10 | # Source0-md5: a0f9098ebe5400f0bdc9b62e60797ecb |
7f86801d | 11 | Patch0: %{name}-libpng.patch |
fff12f80 | 12 | URL: http://www.libsdl.org/projects/SDL_image/ |
2ddf60ef | 13 | BuildRequires: SDL-devel >= 1.2.10 |
8d9d3b5e | 14 | BuildRequires: autoconf |
15 | BuildRequires: automake | |
eb4cf9d5 JB |
16 | BuildRequires: libjpeg-devel >= 8 |
17 | BuildRequires: libpng-devel >= 2:1.4.0 | |
18 | BuildRequires: libtiff-devel >= 4 | |
7f86801d | 19 | BuildRequires: libtool >= 2:2.0 |
940dc9d2 | 20 | BuildRequires: libwebp-devel >= 0.1.3 |
7f86801d | 21 | BuildRequires: pkgconfig >= 1:0.9.0 |
2ddf60ef | 22 | Requires: SDL >= 1.2.10 |
d90f05d0 JB |
23 | Suggests: libjpeg >= 8 |
24 | Suggests: libpng >= 2:1.4.0 | |
25 | Suggests: libtiff >= 4 | |
26 | Suggests: libwebp >= 0.1.3 | |
1843ad0e | 27 | Obsoletes: libSDL_image1.2 |
fee6c0ad | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ea1b2ce1 | 29 | |
7f86801d JB |
30 | # NOTE: libraries dlopened by sonames detected at build time: |
31 | # libjpeg.so.8 | |
eb4cf9d5 JB |
32 | # libpng15.so.15/libpng14.so.14 [note the libpng patch for preferred libs order] |
33 | # libtiff.so.5 | |
34 | # libwebp.so.2 | |
7f86801d | 35 | |
6533b2c9 | 36 | %description |
e06ff6de | 37 | This is a simple library to load images of various formats as SDL |
d90f05d0 JB |
38 | surfaces. This library currently supports BMP, GIF, JPEG, LBM, PCX, |
39 | PNG, PNM (PBM/PGM/PPM), TGA, TIFF, WebP, XCF and XPM formats. | |
6533b2c9 | 40 | |
6cacee76 | 41 | %description -l pl.UTF-8 |
940dc9d2 | 42 | Jest to prosta biblioteka służąca do ładowania różnego formatu |
43 | obrazków jako powierzchni SDL. W chwili obecnej biblioteka obsługuje | |
d90f05d0 JB |
44 | następujące formaty: BMP, GIF, JPEG, LBM, PCX, PNG, PNM (PBM/PGM/PPM), |
45 | TGA, TIFF, WebP, XCF oraz XPM. | |
d65af93b | 46 | |
6cacee76 | 47 | %description -l pt_BR.UTF-8 |
4add988f | 48 | Simple DirectMedia Layer - Biblioteca exemplo para carga de Imagens. |
49 | ||
6533b2c9 | 50 | %package devel |
4add988f | 51 | Summary: Header files and more to develop SDL_image applications |
6a02ff81 ER |
52 | Summary(pl.UTF-8): Pliki nagłówkowe do rozwijania aplikacji używających SDL_image |
53 | Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações SDL | |
ea1b2ce1 | 54 | Group: Development/Libraries |
2c78cf22 | 55 | Requires: %{name} = %{version}-%{release} |
2ddf60ef | 56 | Requires: SDL-devel >= 1.2.10 |
1843ad0e | 57 | Obsoletes: libSDL_image1.2-devel |
6533b2c9 | 58 | |
59 | %description devel | |
ea1b2ce1 | 60 | Header files and more to develop SDL_image applications. |
6533b2c9 | 61 | |
6cacee76 JR |
62 | %description devel -l pl.UTF-8 |
63 | Pliki nagłówkowe do rozwijania aplikacji używających SDL_image. | |
fff12f80 | 64 | |
6cacee76 JR |
65 | %description devel -l pt_BR.UTF-8 |
66 | Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações | |
4add988f | 67 | SDL. |
68 | ||
ea1b2ce1 | 69 | %package static |
fff12f80 | 70 | Summary: Static SDL_image libraries |
6a02ff81 ER |
71 | Summary(pl.UTF-8): Statyczne biblioteki SDL_image |
72 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento de aplicações SDL | |
ea1b2ce1 | 73 | Group: Development/Libraries |
2c78cf22 | 74 | Requires: %{name}-devel = %{version}-%{release} |
ea1b2ce1 | 75 | |
76 | %description static | |
77 | Statis SDL_image libraries. | |
6533b2c9 | 78 | |
6cacee76 | 79 | %description static -l pl.UTF-8 |
fff12f80 AM |
80 | Statyczne biblioteki SDL_image. |
81 | ||
6cacee76 JR |
82 | %description static -l pt_BR.UTF-8 |
83 | Bibliotecas estáticas para desenvolvimento de aplicações SDL. | |
4add988f | 84 | |
ea1b2ce1 | 85 | %prep |
4add988f | 86 | %setup -q |
7f86801d | 87 | %patch0 -p1 |
9d17b6f2 JB |
88 | |
89 | %build | |
d2548248 | 90 | %{__libtoolize} |
c1e28d9f | 91 | %{__aclocal} |
9b7600fc | 92 | %{__autoconf} |
93 | %{__automake} | |
199fb27d | 94 | %configure \ |
6f9850dd | 95 | --enable-bmp \ |
96 | --enable-gif \ | |
97 | --enable-jpg \ | |
768ceec1 | 98 | --enable-jpg-shared \ |
99 | --enable-lbm \ | |
6f9850dd | 100 | --enable-pcx \ |
101 | --enable-png \ | |
768ceec1 | 102 | --enable-png-shared \ |
103 | --enable-pnm \ | |
104 | --enable-tga \ | |
105 | --enable-tif \ | |
106 | --enable-tif-shared \ | |
eb4cf9d5 JB |
107 | --enable-webp \ |
108 | --enable-webp-shared \ | |
768ceec1 | 109 | --enable-xcf \ |
110 | --enable-xpm \ | |
940dc9d2 | 111 | --enable-xv |
ea1b2ce1 | 112 | |
b7ebbe93 | 113 | %{__make} |
6533b2c9 | 114 | |
115 | %install | |
116 | rm -rf $RPM_BUILD_ROOT | |
b9acb865 | 117 | install -d $RPM_BUILD_ROOT%{_bindir} |
ea1b2ce1 | 118 | |
43fa5666 PG |
119 | %{__make} install \ |
120 | DESTDIR=$RPM_BUILD_ROOT | |
8d9d3b5e | 121 | |
c2b81651 | 122 | install .libs/showimage $RPM_BUILD_ROOT%{_bindir}/sdlshow |
6533b2c9 | 123 | |
124 | %clean | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
999f21b0 | 127 | %post -p /sbin/ldconfig |
128 | %postun -p /sbin/ldconfig | |
199fb27d | 129 | |
6533b2c9 | 130 | %files |
ea1b2ce1 | 131 | %defattr(644,root,root,755) |
eb4cf9d5 | 132 | %doc CHANGES COPYING README |
6a4c1856 | 133 | %attr(755,root,root) %{_bindir}/sdlshow |
7f86801d | 134 | %attr(755,root,root) %{_libdir}/libSDL_image-1.2.so.*.*.* |
14ab01ba | 135 | %attr(755,root,root) %ghost %{_libdir}/libSDL_image-1.2.so.0 |
6533b2c9 | 136 | |
137 | %files devel | |
ea1b2ce1 | 138 | %defattr(644,root,root,755) |
6a4c1856 JB |
139 | %attr(755,root,root) %{_libdir}/libSDL_image.so |
140 | %{_libdir}/libSDL_image.la | |
141 | %{_includedir}/SDL/SDL_image.h | |
768ceec1 | 142 | %{_pkgconfigdir}/SDL_image.pc |
ea1b2ce1 | 143 | |
144 | %files static | |
e06ff6de | 145 | %defattr(644,root,root,755) |
6a4c1856 | 146 | %{_libdir}/libSDL_image.a |