]> git.pld-linux.org Git - packages/SDL_image.git/blobdiff - SDL_image.spec
- x32 rebuild
[packages/SDL_image.git] / SDL_image.spec
index b95d222f56c5b9864bbc1a8ae3ce75864dab50ec..e1972e40b8b5db32cc5d56faf16cea171d864b7a 100644 (file)
@@ -1,83 +1,96 @@
 Summary:       Simple DirectMedia Layer - Sample Image Loading Library
-Summary(pl):   Przyk³adowa biblioteka do ³adowania obrazków
-Summary(pt_BR):        Simple DirectMedia Layer - Biblioteca exemplo para carga de Imagens
+Summary(pl.UTF-8):     Przykładowa biblioteka do ładowania obrazków dla SDL
+Summary(pt_BR.UTF-8):  Simple DirectMedia Layer - Biblioteca exemplo para carga de Imagens
 Name:          SDL_image
-Version:       1.2.3
-Release:       2
-License:       LGPL
+Version:       1.2.12
+Release:       4
+License:       Zlib-like
 Group:         Libraries
 Source0:       http://www.libsdl.org/projects/SDL_image/release/%{name}-%{version}.tar.gz
-# Source0-md5: d55826ffbd2bdc48b09cc64a9ed9e59e
-URL:           http://www.libsdl.org/projects/SDL_image/
-Patch0:                %{name}-ac_fixes.patch
-BuildRequires: SDL-devel >= 1.2.5-2
+# Source0-md5: a0f9098ebe5400f0bdc9b62e60797ecb
+Patch0:                %{name}-libpng.patch
+URL:           http://www.libsdl.org/projects/SDL_image/release-1.2.html
+BuildRequires: SDL-devel >= 1.2.10
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: libjpeg-devel
-BuildRequires: libpng >= 1.0.8
-BuildRequires: libtiff-devel
-BuildRequires: libtool
-BuildRequires: zlib-devel
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRequires: libjpeg-devel >= 8
+BuildRequires: libpng-devel >= 2:1.5.0
+BuildRequires: libtiff-devel >= 4
+BuildRequires: libtool >= 2:2.0
+BuildRequires: libwebp-devel >= 0.1.3
+BuildRequires: pkgconfig >= 1:0.9.0
+Requires:      SDL >= 1.2.10
+Suggests:      libjpeg >= 8
+%if "%(pkg-config --exists libpng16 2>/dev/null ; echo $?)" == "0"
+Suggests:      libpng >= 2:1.6.0
+%else
+Suggests:      libpng >= 2:1.5.0
+%endif
+Suggests:      libtiff >= 4
+Suggests:      libwebp >= 0.1.3
 Obsoletes:     libSDL_image1.2
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# NOTE: libraries dlopened by sonames detected at build time:
+# libjpeg.so.8
+# libpng16.so.16/libpng15.so.15 [note the libpng patch for preferred libs order]
+# libtiff.so.5
+# libwebp.so.5
 
 %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.
+surfaces. This library currently supports BMP, GIF, JPEG, LBM, PCX,
+PNG, PNM (PBM/PGM/PPM), TGA, TIFF, WebP, XCF and XPM formats.
 
-%description -l pl
-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.
+%description -l pl.UTF-8
+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, GIF, JPEG, LBM, PCX, PNG, PNM (PBM/PGM/PPM),
+TGA, TIFF, WebP, XCF oraz XPM.
 
-%description -l pt_BR
+%description -l pt_BR.UTF-8
 Simple DirectMedia Layer - Biblioteca exemplo para carga de Imagens.
 
 %package devel
 Summary:       Header files and more to develop SDL_image applications
-Summary(pl):   Pliki nag³ówkowe do rozwijania aplikacji u¿ywaj±cych SDL_image
-Summary(pt_BR):        Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações SDL
+Summary(pl.UTF-8):     Pliki nagłówkowe do rozwijania aplikacji używających SDL_image
+Summary(pt_BR.UTF-8):  Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações SDL
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
-Requires:      SDL-devel
-Requires:      libjpeg-devel
-Requires:      libpng-devel
-Requires:      libtiff-devel
+Requires:      SDL-devel >= 1.2.10
 Obsoletes:     libSDL_image1.2-devel
 
 %description devel
 Header files and more to develop SDL_image applications.
 
-%description devel -l pl
-Pliki nag³ówkowe do rozwijania aplikacji u¿ywaj±cych SDL_image.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe do rozwijania aplikacji używających SDL_image.
 
-%description devel -l pt_BR
-Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações
+%description devel -l pt_BR.UTF-8
+Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações
 SDL.
 
 %package static
 Summary:       Static SDL_image libraries
-Summary(pl):   Statyczne biblioteki SDL_image
-Summary(pt_BR):        Bibliotecas estáticas para desenvolvimento de aplicações SDL
+Summary(pl.UTF-8):     Statyczne biblioteki SDL_image
+Summary(pt_BR.UTF-8):  Bibliotecas estáticas para desenvolvimento de aplicações SDL
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 Statis SDL_image libraries.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Statyczne biblioteki SDL_image.
 
-%description static -l pt_BR
-Bibliotecas estáticas para desenvolvimento de aplicações SDL.
+%description static -l pt_BR.UTF-8
+Bibliotecas estáticas para desenvolvimento de aplicações SDL.
 
 %prep
 %setup -q
 %patch0 -p1
 
 %build
-rm -f acinclude.m4
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
@@ -86,10 +99,20 @@ rm -f acinclude.m4
        --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-webp \
+       --enable-webp-shared \
+       --enable-xcf \
+       --enable-xpm \
+       --enable-xv
 
 %{__make}
 
@@ -105,21 +128,23 @@ install .libs/showimage $RPM_BUILD_ROOT%{_bindir}/sdlshow
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post   -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%doc CHANGES COPYING README
+%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)
-%doc README CHANGES
-%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
This page took 0.084542 seconds and 4 git commands to generate.