Some cleanups - remove useless obsoletes, copy provides

OBS-URL: https://build.opensuse.org/package/show/games/SDL2_gfx?expand=0&rev=11
This commit is contained in:
Jan Engelhardt 2014-12-18 09:49:19 +00:00 committed by Git OBS Bridge
parent dd23254cf9
commit 1aac81a1d0
3 changed files with 27 additions and 21 deletions

View File

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

View File

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

View File

@ -1,6 +1,6 @@
libSDL2_gfx-1_0-0
provides "SDL2_gfx-<targettype> = <version>"
obsoletes "SDL2_gfx-<targettype> <= <version>"
provides "SDL2_gfx-<targettype> = <version>-<release>"
libSDL2_gfx-devel
provides "SDL2_gfx-devel-<targettype> = <version>-<release>"
requires -libSDL2_gfx-<targettype>
requires "libSDL2_gfx-1_0-0-<targettype> = <version>"