diff --git a/SDL2_image.changes b/SDL2_image.changes index 15555dd..ffd9b54 100644 --- a/SDL2_image.changes +++ b/SDL2_image.changes @@ -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 diff --git a/SDL2_image.spec b/SDL2_image.spec index 96b80b1..c2b1903 100644 --- a/SDL2_image.spec +++ b/SDL2_image.spec @@ -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