Summary(pl.UTF-8): Przykładowa biblioteka do ładowania obrazków
Summary(pt_BR.UTF-8): Simple DirectMedia Layer - Biblioteca exemplo para carga de Imagens
Name: SDL_image
-Version: 1.2.5
-Release: 1
-License: LGPL
+Version: 1.2.10
+Release: 2
+License: LGPL v2.1+
Group: Libraries
Source0: http://www.libsdl.org/projects/SDL_image/release/%{name}-%{version}.tar.gz
-# Source0-md5: cd006109a73bf7dcc93e1c3ed15ee782
+# Source0-md5: 6c06584b31559e2b59f2b982d0d1f628
+Patch0: %{name}-libpng.patch
URL: http://www.libsdl.org/projects/SDL_image/
BuildRequires: SDL-devel >= 1.2.10
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: libjpeg-devel >= 6b
-BuildRequires: libpng-devel >= 1.2.0
-BuildRequires: libtiff-devel
-BuildRequires: libtool
-BuildRequires: zlib-devel
+BuildRequires: libjpeg-devel >= 7
+BuildRequires: libpng-devel >= 2:1.2.0
+BuildRequires: libtiff-devel >= 3
+BuildRequires: libtool >= 2:2.0
+BuildRequires: pkgconfig >= 1:0.9.0
Requires: SDL >= 1.2.10
Obsoletes: libSDL_image1.2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+# NOTE: libraries dlopened by sonames detected at build time:
+# libjpeg.so.8
+# libpng14.so.14 [note the libpng patch for preferred libs order]
+# libtiff.so.3
+
%description
This is a simple library to load images of various formats as SDL
surfaces. This library currently supports BMP, PPM, PCX, GIF, JPEG,
and PNG formats.
%description -l pl.UTF-8
-jest to prosta biblioteka służąca do ładowania różnego formatu obrazków
+Jest to prosta biblioteka służąca do ładowania różnego formatu obrazków
jako powierzchni SDL. W chwili obecnej biblioteka obsługuje
następujące formaty: BMP, PPM, PCX, GIF, JPEG oraz PNG.
%prep
%setup -q
-
-rm -f acinclude.m4
+%patch0 -p1
%build
%{__libtoolize}
%{__autoconf}
%{__automake}
%configure \
- jpg_lib=libjpeg.so.62 \
- png_lib=libpng12.so.0 \
- tif_lib=libtiff.so.3 \
--enable-bmp \
--enable-gif \
--enable-jpg \
+ --enable-jpg-shared \
+ --enable-lbm \
--enable-pcx \
--enable-png \
- --enable-ppm \
- --enable-tif
+ --enable-png-shared \
+ --enable-pnm \
+ --enable-tga \
+ --enable-tif \
+ --enable-tif-shared \
+ --enable-xcf \
+ --enable-xpm \
+ --enable-xv
%{__make}
%files
%defattr(644,root,root,755)
%doc CHANGES README
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%attr(755,root,root) %{_bindir}/sdlshow
+%attr(755,root,root) %{_libdir}/libSDL_image-1.2.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libSDL_image-1.2.so.0
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
-%{_includedir}/SDL/*
+%attr(755,root,root) %{_libdir}/libSDL_image.so
+%{_libdir}/libSDL_image.la
+%{_includedir}/SDL/SDL_image.h
+%{_pkgconfigdir}/SDL_image.pc
%files static
%defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libSDL_image.a