diff --git a/SDL_gfx.spec b/SDL_gfx.spec index 9a9a4fd..415b010 100644 --- a/SDL_gfx.spec +++ b/SDL_gfx.spec @@ -17,6 +17,7 @@ Name: SDL_gfx +%define lname libSDL_gfx15 Version: 2.0.25 Release: 0 Summary: SDL Graphics Routines for Primitives and Other Support Functions @@ -36,13 +37,13 @@ provided basic drawing routines such as lines, circles or polygons and SDL_rotozoom which implemented a interpolating rotozoomer for SDL surfaces. -%package -n libSDL_gfx13 +%package -n %lname Summary: SDL Graphics Routines for Primitives and Other Support Functions Group: System/Libraries Provides: SDL_gfx = %{version} Obsoletes: SDL_gfx < %{version} -%description -n libSDL_gfx13 +%description -n %lname The SDL_gfx library evolved out of the SDL_gfxPrimitives code which provided basic drawing routines such as lines, circles or polygons and SDL_rotozoom which implemented a interpolating rotozoomer for SDL @@ -51,8 +52,8 @@ surfaces. %package -n libSDL_gfx-devel Summary: Libraries, includes and more to develop SDL_gfx applications Group: Development/Libraries/X11 +Requires: %lname = %version Requires: libSDL-devel -Requires: libSDL_gfx13 = %{version} Requires: pkgconfig Provides: SDL_gfx-devel = %{version} Obsoletes: SDL_gfx-devel < %{version} @@ -85,14 +86,13 @@ make %{?_smp_mflags} make install DESTDIR=$RPM_BUILD_ROOT %{__rm} -f %{buildroot}%{_libdir}/*.la -%post -n libSDL_gfx13 -p /sbin/ldconfig +%post -n %lname -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig -%postun -n libSDL_gfx13 -p /sbin/ldconfig - -%files -n libSDL_gfx13 +%files -n %lname %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog LICENSE NEWS README -%{_libdir}/lib*.so.* +%_libdir/libSDL_gfx.so.15* %files -n libSDL_gfx-devel %defattr(-,root,root) diff --git a/baselibs.conf b/baselibs.conf index 7d8c913..1f93e5f 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1,6 +1,6 @@ -libSDL_gfx13 +libSDL_gfx15 provides "SDL_gfx- = " obsoletes "SDL_gfx- <= " libSDL_gfx-devel requires -libSDL_gfx- - requires "libSDL_gfx13- = " + requires "libSDL_gfx15- = "