1
0
forked from pool/SDL_image

Edit package summary and description. Drop --with-pic.

OBS-URL: https://build.opensuse.org/package/show/games/SDL_image?expand=0&rev=19
This commit is contained in:
Jan Engelhardt 2015-01-06 12:18:14 +00:00 committed by Git OBS Bridge
parent 3b6e0cccbd
commit 23ac706a7c
2 changed files with 33 additions and 27 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jan 6 12:04:26 UTC 2015 - jengelh@inai.de
- Improve package summary and description
- Drop --with-pic which is enabled implicitly anyway
-------------------------------------------------------------------
Tue Aug 13 12:04:26 UTC 2013 - jengelh@inai.de

View File

@ -1,7 +1,7 @@
#
# spec file for package SDL_image
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,77 +18,77 @@
Name: SDL_image
%define lname libSDL_image-1_2-0
Summary: Simple DirectMedia Layer--Sample Image Loading Library
License: LGPL-2.1+
Group: Development/Libraries/X11
Version: 1.2.12
Release: 0
Summary: SDL image loading library
License: LGPL-2.1+
Group: Development/Libraries/X11
Url: http://libsdl.org/projects/SDL_image/release-1.2.html
# removed VisualC.zip, VisualCE.zip, Watcom-OS2.zip, Xcode.tar.gz, Xcode_iPhone.tar.gz from upstream tarball [bnc#508084]
Source: %{name}-%{version}-repack.tar.bz2
Source1: baselibs.conf
Source: %name-%version-repack.tar.bz2
Source3: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libSDL-devel
BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libwebp)
BuildRequires: pkgconfig(sdl)
%description
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.
surfaces. This library supports the BMP, PPM, PCX, GIF, JPEG, PNG,
TIFF and WEBP formats.
%package -n %lname
Summary: Simple DirectMedia Layer--Sample Image Loading Library
Summary: Simple DirectMedia Layer  Image loading library
Group: System/Libraries
Provides: SDL_image = %{version}
Obsoletes: SDL_image <= %{version}
Provides: SDL_image = %version-%release
Obsoletes: SDL_image < %version-%release
%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.
surfaces. This library supports the BMP, PPM, PCX, GIF, JPEG, PNG,
TIFF and WEBP formats.
%package -n libSDL_image-devel
Summary: Libraries, includes and more to develop SDL_image applications
Group: Development/Libraries/X11
Requires: %lname = %{version}
Requires: libSDL-devel
Provides: SDL_image-devel = %{version}
Obsoletes: SDL_image-devel <= %{version}
Provides: SDL_image-devel = %version-%release
Obsoletes: SDL_image-devel < %version-%release
%description -n libSDL_image-devel
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.
surfaces. This library supports the BMP, PPM, PCX, GIF, JPEG, PNG,
TIFF and WEBP formats.
%prep
%setup -q
%build
%configure --disable-png-shared --disable-jpg-shared --disable-tif-shared --disable-static --with-pic
%configure --disable-png-shared --disable-jpg-shared --disable-tif-shared \
--disable-webp-shared --disable-static
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT
%{__rm} -f %{buildroot}%{_libdir}/*.la
%post -n %lname -p /sbin/ldconfig
%make_install
rm -f "%buildroot/%_libdir"/*.la
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%defattr(-,root,root)
%doc CHANGES COPYING README
%{_libdir}/libSDL_image-1*.so.*
%_libdir/libSDL_image-1*.so.*
%files -n libSDL_image-devel
%defattr(-,root,root)
%{_includedir}/SDL/
%{_libdir}/libSDL_image.so
%{_libdir}/pkgconfig/SDL_image.pc
%_includedir/SDL/
%_libdir/libSDL_image.so
%_libdir/pkgconfig/SDL_image.pc
%changelog