2007-01-15 22:50:23 +00:00
|
|
|
|
#
|
2011-09-18 18:56:07 +00:00
|
|
|
|
# spec file for package SDL_image
|
2007-01-15 22:50:23 +00:00
|
|
|
|
#
|
2015-01-06 12:18:14 +00:00
|
|
|
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 22:50:23 +00:00
|
|
|
|
#
|
2009-03-02 00:29:17 +00: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.
|
|
|
|
|
|
2007-01-15 22:50:23 +00:00
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: SDL_image
|
2013-08-15 13:55:59 +00:00
|
|
|
|
%define lname libSDL_image-1_2-0
|
2012-08-29 13:18:24 +00:00
|
|
|
|
Version: 1.2.12
|
|
|
|
|
Release: 0
|
2015-01-06 12:18:14 +00:00
|
|
|
|
Summary: SDL image loading library
|
|
|
|
|
License: LGPL-2.1+
|
|
|
|
|
Group: Development/Libraries/X11
|
2013-08-15 13:55:59 +00:00
|
|
|
|
Url: http://libsdl.org/projects/SDL_image/release-1.2.html
|
|
|
|
|
|
2010-02-19 15:26:45 +00:00
|
|
|
|
# removed VisualC.zip, VisualCE.zip, Watcom-OS2.zip, Xcode.tar.gz, Xcode_iPhone.tar.gz from upstream tarball [bnc#508084]
|
2015-01-06 12:18:14 +00:00
|
|
|
|
Source: %name-%version-repack.tar.bz2
|
|
|
|
|
Source3: baselibs.conf
|
2007-01-15 22:50:23 +00:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-08-15 13:55:59 +00:00
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
|
BuildRequires: libtiff-devel
|
2015-01-08 09:14:47 +00:00
|
|
|
|
BuildRequires: pkg-config
|
2013-08-15 13:55:59 +00:00
|
|
|
|
BuildRequires: pkgconfig(libpng)
|
|
|
|
|
BuildRequires: pkgconfig(libwebp)
|
2015-01-06 12:18:14 +00:00
|
|
|
|
BuildRequires: pkgconfig(sdl)
|
2007-01-15 22:50:23 +00:00
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This is a simple library to load images of various formats as SDL
|
2015-01-06 12:18:14 +00:00
|
|
|
|
surfaces. This library supports the BMP, PPM, PCX, GIF, JPEG, PNG,
|
|
|
|
|
TIFF and WEBP formats.
|
2007-01-15 22:50:23 +00:00
|
|
|
|
|
2013-08-15 13:55:59 +00:00
|
|
|
|
%package -n %lname
|
2015-01-06 12:18:14 +00:00
|
|
|
|
Summary: Simple DirectMedia Layer – Image loading library
|
2009-05-28 21:26:30 +00:00
|
|
|
|
Group: System/Libraries
|
2015-01-06 12:18:14 +00:00
|
|
|
|
Provides: SDL_image = %version-%release
|
|
|
|
|
Obsoletes: SDL_image < %version-%release
|
2009-05-28 21:26:30 +00:00
|
|
|
|
|
2013-08-15 13:55:59 +00:00
|
|
|
|
%description -n %lname
|
2009-05-28 21:26:30 +00:00
|
|
|
|
This is a simple library to load images of various formats as SDL
|
2015-01-06 12:18:14 +00:00
|
|
|
|
surfaces. This library supports the BMP, PPM, PCX, GIF, JPEG, PNG,
|
|
|
|
|
TIFF and WEBP formats.
|
2009-05-28 21:26:30 +00:00
|
|
|
|
|
|
|
|
|
%package -n libSDL_image-devel
|
2007-01-15 22:50:23 +00:00
|
|
|
|
Summary: Libraries, includes and more to develop SDL_image applications
|
2013-08-15 13:55:59 +00:00
|
|
|
|
Group: Development/Libraries/X11
|
|
|
|
|
Requires: %lname = %{version}
|
2012-08-29 13:18:24 +00:00
|
|
|
|
Requires: libSDL-devel
|
2015-01-06 12:18:14 +00:00
|
|
|
|
Provides: SDL_image-devel = %version-%release
|
|
|
|
|
Obsoletes: SDL_image-devel < %version-%release
|
2007-01-15 22:50:23 +00:00
|
|
|
|
|
2009-05-28 21:26:30 +00:00
|
|
|
|
%description -n libSDL_image-devel
|
2007-01-15 22:50:23 +00:00
|
|
|
|
This is a simple library to load images of various formats as SDL
|
2015-01-06 12:18:14 +00:00
|
|
|
|
surfaces. This library supports the BMP, PPM, PCX, GIF, JPEG, PNG,
|
|
|
|
|
TIFF and WEBP formats.
|
2007-01-15 22:50:23 +00:00
|
|
|
|
|
|
|
|
|
%prep
|
2007-03-03 13:36:00 +00:00
|
|
|
|
%setup -q
|
2007-01-15 22:50:23 +00:00
|
|
|
|
|
|
|
|
|
%build
|
2015-01-06 12:18:14 +00:00
|
|
|
|
%configure --disable-png-shared --disable-jpg-shared --disable-tif-shared \
|
|
|
|
|
--disable-webp-shared --disable-static
|
2011-07-05 00:09:41 +00:00
|
|
|
|
make %{?_smp_mflags}
|
2007-01-15 22:50:23 +00:00
|
|
|
|
|
|
|
|
|
%install
|
2015-01-06 12:18:14 +00:00
|
|
|
|
%make_install
|
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2007-01-15 22:50:23 +00:00
|
|
|
|
|
2015-01-06 12:18:14 +00:00
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2013-08-15 13:55:59 +00:00
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2007-01-15 22:50:23 +00:00
|
|
|
|
|
2013-08-15 13:55:59 +00:00
|
|
|
|
%files -n %lname
|
2007-01-15 22:50:23 +00:00
|
|
|
|
%defattr(-,root,root)
|
2009-05-19 22:16:17 +00:00
|
|
|
|
%doc CHANGES COPYING README
|
2015-01-06 12:18:14 +00:00
|
|
|
|
%_libdir/libSDL_image-1*.so.*
|
2007-01-15 22:50:23 +00:00
|
|
|
|
|
2009-05-28 21:26:30 +00:00
|
|
|
|
%files -n libSDL_image-devel
|
2007-01-15 22:50:23 +00:00
|
|
|
|
%defattr(-,root,root)
|
2015-01-06 12:18:14 +00:00
|
|
|
|
%_includedir/SDL/
|
|
|
|
|
%_libdir/libSDL_image.so
|
|
|
|
|
%_libdir/pkgconfig/SDL_image.pc
|
2007-01-15 22:50:23 +00:00
|
|
|
|
|
2007-03-03 13:36:00 +00:00
|
|
|
|
%changelog
|