1
0
forked from pool/SDL2_image

Accepting request 187065 from home:jengelh:branches:games

- Some metadata spruce-up: add current URLs, softer wildcarding
  in the files list, more robust make install call

OBS-URL: https://build.opensuse.org/request/show/187065
OBS-URL: https://build.opensuse.org/package/show/games/SDL2_image?expand=0&rev=6
This commit is contained in:
Pavol Rusnak 2013-08-15 13:55:38 +00:00 committed by Git OBS Bridge
parent e4fd4b6bb9
commit fd900d57c8
2 changed files with 27 additions and 17 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Aug 13 12:04:26 UTC 2013 - jengelh@inai.de
- Some metadata spruce-up: add current URLs, softer wildcarding
in the files list, more robust make install call
-------------------------------------------------------------------
Tue Aug 13 11:27:54 UTC 2013 - prusnak@opensuse.org

View File

@ -17,19 +17,23 @@
Name: SDL2_image
%define lname libSDL2_image-2_0-0
Version: 2.0.0
Release: 0
Summary: Simple DirectMedia Layer--Sample Image Loading Library
License: Zlib
Group: System/Libraries
Url: http://www.libsdl.org/projects/SDL_image/
Source: http://www.libsdl.org/tmp/SDL_image/release/%{name}-%{version}.tar.gz
Source1: baselibs.conf
Group: Development/Libraries/X11
Url: http://libsdl.org/projects/SDL_image/
#Hg-Clone: http://hg.libsdl.org/SDL_image/
Source: http://libsdl.org/projects/SDL_image/release/%name-%version.tar.gz
Source2: baselibs.conf
BuildRequires: libSDL2-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
BuildRequires: libwebp-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libwebp)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -37,21 +41,21 @@ This is a simple library to load images of various formats as SDL
surfaces. This library supports BMP, PPM, PCX, GIF, JPEG, PNG, and TIFF
formats.
%package -n libSDL2_image-2_0-0
%package -n %lname
Summary: Simple DirectMedia Layer--Sample Image Loading Library
Group: System/Libraries
Provides: SDL2_image = %{version}
%description -n libSDL2_image-2_0-0
%description -n %lname
This is a simple library to load images of various formats as SDL
surfaces. This library supports BMP, PPM, PCX, GIF, JPEG, PNG, and TIFF
formats.
%package -n libSDL2_image-devel
Summary: Libraries, includes and more to develop SDL_image applications
Group: Development/Libraries/C and C++
Group: Development/Libraries/X11
Requires: %lname = %{version}
Requires: libSDL2-devel
Requires: libSDL2_image-2_0-0 = %{version}
Provides: SDL2_image-devel = %{version}
%description -n libSDL2_image-devel
@ -68,22 +72,22 @@ rm -rf external
make %{?_smp_mflags}
%install
%make_install
make install DESTDIR="%buildroot"
rm -f %{buildroot}%{_libdir}/*.la
%post -n libSDL2_image-2_0-0 -p /sbin/ldconfig
%post -n %lname -p /sbin/ldconfig
%postun -n libSDL2_image-2_0-0 -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n libSDL2_image-2_0-0
%files -n %lname
%defattr(-,root,root)
%doc CHANGES.txt COPYING.txt README.txt
%{_libdir}/lib*.so.*
%{_libdir}/libSDL2_image-2*.so.*
%files -n libSDL2_image-devel
%defattr(-,root,root)
%{_includedir}/SDL2/
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_libdir}/libSDL2_image.so
%{_libdir}/pkgconfig/SDL2_image.pc
%changelog