X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;ds=sidebyside;f=SDL_image.spec;h=9945c40722ab59e287fadef8ef9c5d004f911eea;hb=a27eb965e8ff7bd795c0d04fff14bd8659a5c21c;hp=44e2d0be065e34a59656f2b9d60fb48ebe8e1806;hpb=4add988f4b3eecbf48b3396c38c27589494f8d91;p=packages%2FSDL_image.git diff --git a/SDL_image.spec b/SDL_image.spec index 44e2d0b..9945c40 100644 --- a/SDL_image.spec +++ b/SDL_image.spec @@ -2,14 +2,15 @@ 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 Name: SDL_image -Version: 1.2.2 +Version: 1.2.3 Release: 1 License: LGPL 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.0 +BuildRequires: SDL-devel >= 1.2.5-2 BuildRequires: autoconf BuildRequires: automake BuildRequires: libjpeg-devel @@ -20,15 +21,13 @@ BuildRequires: zlib-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Obsoletes: libSDL_image1.2 -%define _prefix /usr/X11R6 - %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 -jest to prosta biblioteka s³u¿±ca do ³adowania ró¿nego formtu 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 nastepuj±ce formaty: BMP, PPM, PCX, GIF, JPEG oraz PNG. @@ -42,6 +41,9 @@ Summary(pt_BR): Bibliotecas e arquivos de inclus Group: Development/Libraries Requires: %{name} = %{version} Requires: SDL-devel +Requires: libjpeg-devel +Requires: libpng-devel +Requires: libtiff-devel Obsoletes: libSDL_image1.2-devel %description devel @@ -75,15 +77,12 @@ Bibliotecas est %patch0 -p1 %build -rm -f missing acinclude.m4 -libtoolize --copy --force -aclocal -autoconf -automake -a -c -f -if [ -f %{_pkgconfigdir}/libpng12.pc ] ; then - CPPFLAGS="`pkg-config libpng12 --cflags`" -fi -%configure CPPFLAGS="$CPPFLAGS" \ +rm -f acinclude.m4 +%{__libtoolize} +%{__aclocal} +%{__autoconf} +%{__automake} +%configure \ --enable-bmp \ --enable-gif \ --enable-jpg \ @@ -96,19 +95,19 @@ fi %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_bindir} -%{__make} install DESTDIR=$RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT -mv -f $RPM_BUILD_ROOT%{_bindir}/showimage $RPM_BUILD_ROOT%{_bindir}/sdlshow +install showimage $RPM_BUILD_ROOT%{_bindir}/sdlshow -gzip -9nf README CHANGES +%clean +rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig -%clean -rm -rf $RPM_BUILD_ROOT - %files %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/* @@ -116,8 +115,9 @@ rm -rf $RPM_BUILD_ROOT %files devel %defattr(644,root,root,755) -%doc *.gz +%doc README CHANGES %attr(755,root,root) %{_libdir}/lib*.so +%{_libdir}/lib*.la %{_includedir}/SDL/* %files static