]> git.pld-linux.org Git - packages/SDL_image.git/blobdiff - SDL_image.spec
- added libpng patch to prefer libpng 1.4.x over 1.2.x/1.0.x
[packages/SDL_image.git] / SDL_image.spec
index 9bb83bbb3ace3426b49e9e86a46fd92dbd96ed6b..53201a92ea4aa6fa0367dfe90f4a9e4bf8c0a26e 100644 (file)
@@ -3,11 +3,12 @@ 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.10
-Release:       1
+Release:       2
 License:       LGPL v2.1+
 Group:         Libraries
 Source0:       http://www.libsdl.org/projects/SDL_image/release/%{name}-%{version}.tar.gz
 # Source0-md5: 6c06584b31559e2b59f2b982d0d1f628
+Patch0:                %{name}-libpng.patch
 URL:           http://www.libsdl.org/projects/SDL_image/
 BuildRequires: SDL-devel >= 1.2.10
 BuildRequires: autoconf
@@ -15,11 +16,17 @@ BuildRequires:      automake
 BuildRequires: libjpeg-devel >= 7
 BuildRequires: libpng-devel >= 2:1.2.0
 BuildRequires: libtiff-devel >= 3
-BuildRequires: libtool
+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,
@@ -70,8 +77,7 @@ Bibliotecas estáticas para desenvolvimento de aplicações SDL.
 
 %prep
 %setup -q
-
-rm -f acinclude.m4
+%patch0 -p1
 
 %build
 %{__libtoolize}
@@ -79,16 +85,21 @@ rm -f acinclude.m4
 %{__autoconf}
 %{__automake}
 %configure \
-       jpg_lib=libjpeg.so.7 \
-       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}
 
@@ -111,7 +122,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc CHANGES README
 %attr(755,root,root) %{_bindir}/sdlshow
-%attr(755,root,root) %{_libdir}/libSDL_image-*.so.*.*.*
+%attr(755,root,root) %{_libdir}/libSDL_image-1.2.so.*.*.*
 %attr(755,root,root) %ghost  %{_libdir}/libSDL_image-1.2.so.0
 
 %files devel
@@ -119,6 +130,7 @@ rm -rf $RPM_BUILD_ROOT
 %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)
This page took 0.052747 seconds and 4 git commands to generate.