From 0cf0cfcff52d00004f8b2818bb9ce758148ea1363c37819f50f9794775b4658f Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 19 Aug 2022 18:02:27 +0000 Subject: [PATCH] - Rename devel package to just %name-devel, which is what most our packages do. OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=131 --- SDL2.changes | 2 ++ SDL2.spec | 9 +++++---- baselibs.conf | 5 +++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/SDL2.changes b/SDL2.changes index 8691bd2..40be46f 100644 --- a/SDL2.changes +++ b/SDL2.changes @@ -12,6 +12,8 @@ Fri Aug 19 16:25:00 UTC 2022 - Jan Engelhardt - Drop baselibs.conf (no SDL2_ttf-dependent Tumbleweed packages themselves have baselibs). - Drop fix-xi2-crash.patch (merged) +- Rename devel package to just %name-devel, which is what most + our packages do. ------------------------------------------------------------------- Tue Jul 5 09:16:41 UTC 2022 - Jan Engelhardt diff --git a/SDL2.spec b/SDL2.spec index 1c19747..9008eca 100644 --- a/SDL2.spec +++ b/SDL2.spec @@ -90,7 +90,7 @@ across multiple platforms. SDL2 uses dlopen, so if you experience problems under X11, check again that libXrandr2 and libXi6 are in fact installed. -%package -n libSDL2-devel +%package devel Summary: SDL2 Library Developer Files Group: Development/Libraries/X11 Requires: %lname = %version-%release @@ -102,9 +102,10 @@ Requires: pkgconfig(glesv2) Requires: pkgconfig(glu) Requires: pkgconfig(x11) Requires: pkgconfig(xproto) -Provides: SDL2-devel = %version-%release +Obsoletes: libSDL2-devel < %version-%release +Provides: libSDL2-devel = %version-%release -%description -n libSDL2-devel +%description devel This package contains files needed for development with the SDL2 library. @@ -143,7 +144,7 @@ rm -fv "%buildroot/%_libdir/libSDL2.a" "%buildroot/%_libdir/libSDL2_test.a" %doc README.md README-SDL.txt %_libdir/libSDL2-2*.so.* -%files -n libSDL2-devel +%files devel %doc WhatsNew.txt %_bindir/sdl2-config %_libdir/libSDL2.so diff --git a/baselibs.conf b/baselibs.conf index d1dd351..564454e 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1,6 +1,7 @@ libSDL2-2_0-0 provides "SDL2- = " -libSDL2-devel - provides "SDL2-devel- = " +SDL2-devel + obsoletes "libSDL2-devel-" + provides "libSDL2-devel- = " requires -libSDL2- requires "libSDL2-2_0-0- = "