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
9 Source0: http://www.libsdl.org/projects/SDL_image/release/%{name}-%{version}.tar.gz
10 # Source0-md5: a0f9098ebe5400f0bdc9b62e60797ecb
11 Patch0: %{name}-libpng.patch
12 URL: http://www.libsdl.org/projects/SDL_image/
13 BuildRequires: SDL-devel >= 1.2.10
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: libjpeg-devel >= 8
17 BuildRequires: libpng-devel >= 2:1.4.0
18 BuildRequires: libtiff-devel >= 4
19 BuildRequires: libtool >= 2:2.0
20 BuildRequires: libwebp-devel >= 0.1.3
21 BuildRequires: pkgconfig >= 1:0.9.0
22 Requires: SDL >= 1.2.10
23 Suggests: libjpeg >= 8
24 %if "%(pkg-config --exists libpng15 2>/dev/null ; echo $?)" == "0"
25 Suggests: libpng >= 2:1.5.0
27 Suggests: libpng >= 2:1.4.0
29 Suggests: libtiff >= 4
30 Suggests: libwebp >= 0.1.3
31 Obsoletes: libSDL_image1.2
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 # NOTE: libraries dlopened by sonames detected at build time:
36 # libpng15.so.15/libpng14.so.14 [note the libpng patch for preferred libs order]
41 This is a simple library to load images of various formats as SDL
42 surfaces. This library currently supports BMP, GIF, JPEG, LBM, PCX,
43 PNG, PNM (PBM/PGM/PPM), TGA, TIFF, WebP, XCF and XPM formats.
45 %description -l pl.UTF-8
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
48 następujące formaty: BMP, GIF, JPEG, LBM, PCX, PNG, PNM (PBM/PGM/PPM),
49 TGA, TIFF, WebP, XCF oraz XPM.
51 %description -l pt_BR.UTF-8
52 Simple DirectMedia Layer - Biblioteca exemplo para carga de Imagens.
55 Summary: Header files and more to develop SDL_image applications
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
58 Group: Development/Libraries
59 Requires: %{name} = %{version}-%{release}
60 Requires: SDL-devel >= 1.2.10
61 Obsoletes: libSDL_image1.2-devel
64 Header files and more to develop SDL_image applications.
66 %description devel -l pl.UTF-8
67 Pliki nagłówkowe do rozwijania aplikacji używających SDL_image.
69 %description devel -l pt_BR.UTF-8
70 Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações
74 Summary: Static SDL_image libraries
75 Summary(pl.UTF-8): Statyczne biblioteki SDL_image
76 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento de aplicações SDL
77 Group: Development/Libraries
78 Requires: %{name}-devel = %{version}-%{release}
81 Statis SDL_image libraries.
83 %description static -l pl.UTF-8
84 Statyczne biblioteki SDL_image.
86 %description static -l pt_BR.UTF-8
87 Bibliotecas estáticas para desenvolvimento de aplicações SDL.
102 --enable-jpg-shared \
106 --enable-png-shared \
110 --enable-tif-shared \
112 --enable-webp-shared \
120 rm -rf $RPM_BUILD_ROOT
121 install -d $RPM_BUILD_ROOT%{_bindir}
124 DESTDIR=$RPM_BUILD_ROOT
126 install .libs/showimage $RPM_BUILD_ROOT%{_bindir}/sdlshow
129 rm -rf $RPM_BUILD_ROOT
131 %post -p /sbin/ldconfig
132 %postun -p /sbin/ldconfig
135 %defattr(644,root,root,755)
136 %doc CHANGES COPYING README
137 %attr(755,root,root) %{_bindir}/sdlshow
138 %attr(755,root,root) %{_libdir}/libSDL_image-1.2.so.*.*.*
139 %attr(755,root,root) %ghost %{_libdir}/libSDL_image-1.2.so.0
142 %defattr(644,root,root,755)
143 %attr(755,root,root) %{_libdir}/libSDL_image.so
144 %{_libdir}/libSDL_image.la
145 %{_includedir}/SDL/SDL_image.h
146 %{_pkgconfigdir}/SDL_image.pc
149 %defattr(644,root,root,755)
150 %{_libdir}/libSDL_image.a