2007-01-15 23:50:23 +01:00
|
|
|
|
#
|
2011-09-18 20:56:07 +02:00
|
|
|
|
# spec file for package SDL_image
|
2007-01-15 23:50:23 +01:00
|
|
|
|
#
|
2019-08-23 13:48:11 +02:00
|
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:50:23 +01:00
|
|
|
|
#
|
2009-03-02 01:29:17 +01:00
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2019-08-23 13:48:11 +02:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:50:23 +01:00
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: SDL_image
|
2013-08-15 15:55:59 +02:00
|
|
|
|
%define lname libSDL_image-1_2-0
|
2019-08-23 15:34:20 +02:00
|
|
|
|
Version: 1.2.12+hg695
|
2012-08-29 15:18:24 +02:00
|
|
|
|
Release: 0
|
2015-01-06 13:18:14 +01:00
|
|
|
|
Summary: SDL image loading library
|
2019-08-23 13:48:11 +02:00
|
|
|
|
License: LGPL-2.1-or-later
|
2015-01-06 13:18:14 +01:00
|
|
|
|
Group: Development/Libraries/X11
|
2019-08-23 15:34:20 +02:00
|
|
|
|
URL: https://libsdl.org/projects/SDL_image/release-1.2.html
|
2013-08-15 15:55:59 +02:00
|
|
|
|
|
2019-08-23 15:34:20 +02:00
|
|
|
|
#Hg-Clone: http://hg.libsdl.org/SDL_image/
|
|
|
|
|
Source: %name-%version.tar.xz
|
2015-01-06 13:18:14 +01:00
|
|
|
|
Source3: baselibs.conf
|
2013-08-15 15:55:59 +02:00
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
|
BuildRequires: libtiff-devel
|
2015-01-08 10:14:47 +01:00
|
|
|
|
BuildRequires: pkg-config
|
2019-08-23 15:34:20 +02:00
|
|
|
|
BuildRequires: xz
|
2013-08-15 15:55:59 +02:00
|
|
|
|
BuildRequires: pkgconfig(libpng)
|
|
|
|
|
BuildRequires: pkgconfig(libwebp)
|
2015-01-06 13:18:14 +01:00
|
|
|
|
BuildRequires: pkgconfig(sdl)
|
2007-01-15 23:50:23 +01:00
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This is a simple library to load images of various formats as SDL
|
2015-01-06 13:18:14 +01:00
|
|
|
|
surfaces. This library supports the BMP, PPM, PCX, GIF, JPEG, PNG,
|
|
|
|
|
TIFF and WEBP formats.
|
2007-01-15 23:50:23 +01:00
|
|
|
|
|
2013-08-15 15:55:59 +02:00
|
|
|
|
%package -n %lname
|
2015-01-06 13:18:14 +01:00
|
|
|
|
Summary: Simple DirectMedia Layer – Image loading library
|
2009-05-28 23:26:30 +02:00
|
|
|
|
Group: System/Libraries
|
2015-01-06 13:18:14 +01:00
|
|
|
|
Provides: SDL_image = %version-%release
|
|
|
|
|
Obsoletes: SDL_image < %version-%release
|
2009-05-28 23:26:30 +02:00
|
|
|
|
|
2013-08-15 15:55:59 +02:00
|
|
|
|
%description -n %lname
|
2009-05-28 23:26:30 +02:00
|
|
|
|
This is a simple library to load images of various formats as SDL
|
2015-01-06 13:18:14 +01:00
|
|
|
|
surfaces. This library supports the BMP, PPM, PCX, GIF, JPEG, PNG,
|
|
|
|
|
TIFF and WEBP formats.
|
2009-05-28 23:26:30 +02:00
|
|
|
|
|
|
|
|
|
%package -n libSDL_image-devel
|
2007-01-15 23:50:23 +01:00
|
|
|
|
Summary: Libraries, includes and more to develop SDL_image applications
|
2013-08-15 15:55:59 +02:00
|
|
|
|
Group: Development/Libraries/X11
|
|
|
|
|
Requires: %lname = %{version}
|
2015-01-06 13:18:14 +01:00
|
|
|
|
Provides: SDL_image-devel = %version-%release
|
|
|
|
|
Obsoletes: SDL_image-devel < %version-%release
|
2007-01-15 23:50:23 +01:00
|
|
|
|
|
2009-05-28 23:26:30 +02:00
|
|
|
|
%description -n libSDL_image-devel
|
2007-01-15 23:50:23 +01:00
|
|
|
|
This is a simple library to load images of various formats as SDL
|
2015-01-06 13:18:14 +01:00
|
|
|
|
surfaces. This library supports the BMP, PPM, PCX, GIF, JPEG, PNG,
|
|
|
|
|
TIFF and WEBP formats.
|
2007-01-15 23:50:23 +01:00
|
|
|
|
|
|
|
|
|
%prep
|
2019-08-23 15:34:20 +02:00
|
|
|
|
%autosetup -p1
|
2007-01-15 23:50:23 +01:00
|
|
|
|
|
|
|
|
|
%build
|
2015-01-06 13:18:14 +01:00
|
|
|
|
%configure --disable-png-shared --disable-jpg-shared --disable-tif-shared \
|
|
|
|
|
--disable-webp-shared --disable-static
|
2011-07-05 02:09:41 +02:00
|
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:50:23 +01:00
|
|
|
|
|
|
|
|
|
%install
|
2015-01-06 13:18:14 +01:00
|
|
|
|
%make_install
|
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2007-01-15 23:50:23 +01:00
|
|
|
|
|
2015-01-06 13:18:14 +01:00
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2013-08-15 15:55:59 +02:00
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2007-01-15 23:50:23 +01:00
|
|
|
|
|
2013-08-15 15:55:59 +02:00
|
|
|
|
%files -n %lname
|
2019-08-23 15:34:20 +02:00
|
|
|
|
%license COPYING
|
2015-01-06 13:18:14 +01:00
|
|
|
|
%_libdir/libSDL_image-1*.so.*
|
2007-01-15 23:50:23 +01:00
|
|
|
|
|
2009-05-28 23:26:30 +02:00
|
|
|
|
%files -n libSDL_image-devel
|
2019-08-23 15:34:20 +02:00
|
|
|
|
%doc CHANGES README
|
2015-01-06 13:18:14 +01:00
|
|
|
|
%_includedir/SDL/
|
|
|
|
|
%_libdir/libSDL_image.so
|
|
|
|
|
%_libdir/pkgconfig/SDL_image.pc
|
2007-01-15 23:50:23 +01:00
|
|
|
|
|
2007-03-03 14:36:00 +01:00
|
|
|
|
%changelog
|