Adjust package names for SO version bump

OBS-URL: https://build.opensuse.org/package/show/games/SDL_gfx?expand=0&rev=18
This commit is contained in:
Jan Engelhardt 2013-11-11 21:58:47 +00:00 committed by Git OBS Bridge
parent 366c129ef8
commit bb0f4c35dc
2 changed files with 10 additions and 10 deletions

View File

@ -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)

View File

@ -1,6 +1,6 @@
libSDL_gfx13
libSDL_gfx15
provides "SDL_gfx-<targettype> = <version>"
obsoletes "SDL_gfx-<targettype> <= <version>"
libSDL_gfx-devel
requires -libSDL_gfx-<targettype>
requires "libSDL_gfx13-<targettype> = <version>"
requires "libSDL_gfx15-<targettype> = <version>"