From 1aac81a1d08e663bac96ae5a3d4a12ab638a835352e00e01dc2e8283c6aa76a4 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 18 Dec 2014 09:49:19 +0000 Subject: [PATCH] Some cleanups - remove useless obsoletes, copy provides OBS-URL: https://build.opensuse.org/package/show/games/SDL2_gfx?expand=0&rev=11 --- SDL2_gfx.changes | 6 ++++++ SDL2_gfx.spec | 34 +++++++++++++++++----------------- baselibs.conf | 8 ++++---- 3 files changed, 27 insertions(+), 21 deletions(-) diff --git a/SDL2_gfx.changes b/SDL2_gfx.changes index 3f0c56e..1e7443d 100644 --- a/SDL2_gfx.changes +++ b/SDL2_gfx.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Dec 18 09:46:46 UTC 2014 - jengelh@inai.de + +- Remove SDL2_gfx obsoletes (we never had packages of that name). + Copy current Provides to baselibs.conf. + ------------------------------------------------------------------- Wed Jun 25 12:35:38 UTC 2014 - jengelh@inai.de diff --git a/SDL2_gfx.spec b/SDL2_gfx.spec index f8c1b62..dcde856 100644 --- a/SDL2_gfx.spec +++ b/SDL2_gfx.spec @@ -17,35 +17,36 @@ Name: SDL2_gfx +%define lname libSDL2_gfx-1_0-0 Version: 1.0.1 Release: 0 Summary: SDL2 Graphics Routines for Primitives and Other Support Functions License: Zlib Group: Development/Libraries/X11 +Url: http://cms.ferzkopp.net/index.php/software/13-sdl-gfx -Url: http://www.ferzkopp.net/joomla/content/view/19/14/ Source: http://www.ferzkopp.net/Software/SDL2_gfx/%name-%version.tar.gz -Source1: baselibs.conf -BuildRequires: libSDL2-devel -BuildRequires: pkgconfig +Source3: baselibs.conf BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: pkgconfig +BuildRequires: pkgconfig(sdl2) %description Library containing 20+ graphics primitives (line, box, circle, polygon, etc.) for SDL2. -%package -n libSDL2_gfx-1_0-0 +%package -n %lname Summary: SDL2 Graphics Routines for Primitives and Other Support Functions Group: System/Libraries -Provides: SDL2_gfx = %{version} +Provides: SDL2_gfx = %version-%release -%description -n libSDL2_gfx-1_0-0 +%description -n %lname Library containing 20+ graphics primitives (line, box, circle, polygon, etc.) for SDL2. %package -n libSDL2_gfx-devel Summary: Libraries, includes and more to develop SDL2_gfx applications Group: Development/Libraries/X11 -Requires: libSDL2_gfx-1_0-0 = %{version} -Provides: SDL2_gfx-devel = %{version} +Requires: %lname = %version +Provides: SDL2_gfx-devel = %version-%release %description -n libSDL2_gfx-devel Library containing 20+ graphics primitives (line, box, circle, polygon, etc.) for SDL2. @@ -63,21 +64,20 @@ make %{?_smp_mflags} %install make install DESTDIR="%buildroot" -rm -f %{buildroot}%{_libdir}/*.la +rm -f "%buildroot/%_libdir"/*.la -%post -n libSDL2_gfx-1_0-0 -p /sbin/ldconfig +%post -n %lname -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig -%postun -n libSDL2_gfx-1_0-0 -p /sbin/ldconfig - -%files -n libSDL2_gfx-1_0-0 +%files -n %lname %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README -%{_libdir}/lib*.so.* +%_libdir/lib*.so.* %files -n libSDL2_gfx-devel %defattr(-,root,root) -%{_includedir}/SDL2/ -%{_libdir}/lib*.so +%_includedir/SDL2/ +%_libdir/lib*.so %_libdir/pkgconfig/*.pc %changelog diff --git a/baselibs.conf b/baselibs.conf index b96f924..1537872 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1,6 +1,6 @@ libSDL2_gfx-1_0-0 - provides "SDL2_gfx- = " - obsoletes "SDL2_gfx- <= " + provides "SDL2_gfx- = -" libSDL2_gfx-devel - requires -libSDL2_gfx- - requires "libSDL2_gfx-1_0-0- = " + provides "SDL2_gfx-devel- = -" + requires -libSDL2_gfx- + requires "libSDL2_gfx-1_0-0- = "