]> git.pld-linux.org Git - packages/SDL_image.git/blobdiff - SDL_image.spec
- strict deps.
[packages/SDL_image.git] / SDL_image.spec
index 402a05322f47afc06d183a84281e6a050c4f968d..9f759023b7ef491891a6a1afd8dbb3c026119442 100644 (file)
@@ -3,7 +3,7 @@ Summary(pl):    Przyk
 Summary(pt_BR):        Simple DirectMedia Layer - Biblioteca exemplo para carga de Imagens
 Name:          SDL_image
 Version:       1.2.3
-Release:       1
+Release:       2
 License:       LGPL
 Group:         Libraries
 Source0:       http://www.libsdl.org/projects/SDL_image/release/%{name}-%{version}.tar.gz
@@ -39,8 +39,11 @@ 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
 Group:         Development/Libraries
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{release}
 Requires:      SDL-devel
+Requires:      libjpeg-devel
+Requires:      libpng-devel
+Requires:      libtiff-devel
 Obsoletes:     libSDL_image1.2-devel
 
 %description devel
@@ -58,7 +61,7 @@ Summary:      Static SDL_image libraries
 Summary(pl):   Statyczne biblioteki SDL_image
 Summary(pt_BR):        Bibliotecas estáticas para desenvolvimento de aplicações SDL
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 Statis SDL_image libraries.
@@ -74,15 +77,12 @@ Bibliotecas est
 %patch0 -p1
 
 %build
-rm -f missing acinclude.m4
+rm -f acinclude.m4
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
 %{__automake}
-if [ -f %{_pkgconfigdir}/libpng12.pc ] ; then
-       CPPFLAGS="`pkg-config libpng12 --cflags`"
-fi
-%configure CPPFLAGS="$CPPFLAGS" \
+%configure \
        --enable-bmp \
        --enable-gif \
        --enable-jpg \
@@ -97,16 +97,17 @@ fi
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_bindir}
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-install showimage $RPM_BUILD_ROOT%{_bindir}/sdlshow
-
-%post   -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+install .libs/showimage $RPM_BUILD_ROOT%{_bindir}/sdlshow
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/*
This page took 0.061635 seconds and 4 git commands to generate.