]> git.pld-linux.org Git - packages/SDL_image.git/blobdiff - SDL_image.spec
- massive attack: adding Source-md5
[packages/SDL_image.git] / SDL_image.spec
index c2113e68fbb9c5bdf2487ed3e0060c059f5bca08..402a05322f47afc06d183a84281e6a050c4f968d 100644 (file)
-%define name SDL_image
-%define version 1.0.4
-%define release 1
-
-Summary: Simple DirectMedia Layer - Sample Image Loading Library
-Name: %{name}
-Version: %{version}
-Release: %{release}
-Source0: %{name}-%{version}.tar.gz
-Copyright: LGPL
-Group: System Environment/Libraries
-BuildRoot: /var/tmp/%{name}-buildroot
-Prefix: %{_prefix}
-Packager: Hakan Tandogan <hakan@iconsult.com>
-BuildRequires: SDL-devel
-BuildRequires: libjpeg-devel
-BuildRequires: libpng-devel
-#BuildRequires: libtiff-devel
+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.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.5-2
+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)
+Obsoletes:     libSDL_image1.2
 
 %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.
+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 formatu obrazków
+jako powierzchni SDL. W chwili obecnej biblioteka obs³uguje
+nastepuj±ce formaty: BMP, PPM, PCX, GIF, JPEG oraz PNG.
+
+%description -l pt_BR
+Simple DirectMedia Layer - Biblioteca exemplo para carga de Imagens.
 
 %package devel
-Summary: Libraries, includes and more to develop SDL applications.
-Group: Development/Libraries
-Requires: %{name}
-Requires: SDL-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
+Group:         Development/Libraries
+Requires:      %{name} = %{version}
+Requires:      SDL-devel
+Obsoletes:     libSDL_image1.2-devel
 
 %description devel
-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.
+Header files and more to develop SDL_image applications.
 
-%prep
-rm -rf ${RPM_BUILD_ROOT}
+%description devel -l pl
+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
+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
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}
+
+%description static
+Statis SDL_image libraries.
+
+%description static -l pl
+Statyczne biblioteki SDL_image.
 
-%setup 
+%description static -l pt_BR
+Bibliotecas estáticas para desenvolvimento de aplicações SDL.
+
+%prep
+%setup -q
+%patch0 -p1
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
-make
+rm -f missing acinclude.m4
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+if [ -f %{_pkgconfigdir}/libpng12.pc ] ; then
+       CPPFLAGS="`pkg-config libpng12 --cflags`"
+fi
+%configure CPPFLAGS="$CPPFLAGS" \
+       --enable-bmp \
+       --enable-gif \
+       --enable-jpg \
+       --enable-pcx \
+       --enable-png \
+       --enable-ppm \
+       --enable-tif
+
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install prefix=$RPM_BUILD_ROOT/%{prefix}
+install -d $RPM_BUILD_ROOT%{_bindir}
+
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+install showimage $RPM_BUILD_ROOT%{_bindir}/sdlshow
+
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%defattr(-,root,root)
-%doc README CHANGES COPYING
-%{prefix}/bin/showimage
-%{prefix}/lib/lib*.so.*
-%{prefix}/lib/lib*.so
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
 
 %files devel
-%defattr(-,root,root)
-%{prefix}/lib/*a
-%{prefix}/include/SDL/
-
-%changelog
-* Wed Jan 19 2000 Sam Lantinga 
-- converted to get package information from configure
-* Tue Jan 18 2000 Hakan Tandogan <hakan@iconsult.com>
-- initial spec file
+%defattr(644,root,root,755)
+%doc README CHANGES
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_libdir}/lib*.la
+%{_includedir}/SDL/*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
This page took 0.652289 seconds and 4 git commands to generate.