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