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:
parent
dd23254cf9
commit
1aac81a1d0
@ -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
|
Wed Jun 25 12:35:38 UTC 2014 - jengelh@inai.de
|
||||||
|
|
||||||
|
@ -17,35 +17,36 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: SDL2_gfx
|
Name: SDL2_gfx
|
||||||
|
%define lname libSDL2_gfx-1_0-0
|
||||||
Version: 1.0.1
|
Version: 1.0.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: SDL2 Graphics Routines for Primitives and Other Support Functions
|
Summary: SDL2 Graphics Routines for Primitives and Other Support Functions
|
||||||
License: Zlib
|
License: Zlib
|
||||||
Group: Development/Libraries/X11
|
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
|
Source: http://www.ferzkopp.net/Software/SDL2_gfx/%name-%version.tar.gz
|
||||||
Source1: baselibs.conf
|
Source3: baselibs.conf
|
||||||
BuildRequires: libSDL2-devel
|
|
||||||
BuildRequires: pkgconfig
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: pkgconfig(sdl2)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Library containing 20+ graphics primitives (line, box, circle, polygon, etc.) for SDL2.
|
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
|
Summary: SDL2 Graphics Routines for Primitives and Other Support Functions
|
||||||
Group: System/Libraries
|
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.
|
Library containing 20+ graphics primitives (line, box, circle, polygon, etc.) for SDL2.
|
||||||
|
|
||||||
%package -n libSDL2_gfx-devel
|
%package -n libSDL2_gfx-devel
|
||||||
Summary: Libraries, includes and more to develop SDL2_gfx applications
|
Summary: Libraries, includes and more to develop SDL2_gfx applications
|
||||||
Group: Development/Libraries/X11
|
Group: Development/Libraries/X11
|
||||||
Requires: libSDL2_gfx-1_0-0 = %{version}
|
Requires: %lname = %version
|
||||||
Provides: SDL2_gfx-devel = %{version}
|
Provides: SDL2_gfx-devel = %version-%release
|
||||||
|
|
||||||
%description -n libSDL2_gfx-devel
|
%description -n libSDL2_gfx-devel
|
||||||
Library containing 20+ graphics primitives (line, box, circle, polygon, etc.) for SDL2.
|
Library containing 20+ graphics primitives (line, box, circle, polygon, etc.) for SDL2.
|
||||||
@ -63,21 +64,20 @@ make %{?_smp_mflags}
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR="%buildroot"
|
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 %lname
|
||||||
|
|
||||||
%files -n libSDL2_gfx-1_0-0
|
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS COPYING ChangeLog NEWS README
|
%doc AUTHORS COPYING ChangeLog NEWS README
|
||||||
%{_libdir}/lib*.so.*
|
%_libdir/lib*.so.*
|
||||||
|
|
||||||
%files -n libSDL2_gfx-devel
|
%files -n libSDL2_gfx-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_includedir}/SDL2/
|
%_includedir/SDL2/
|
||||||
%{_libdir}/lib*.so
|
%_libdir/lib*.so
|
||||||
%_libdir/pkgconfig/*.pc
|
%_libdir/pkgconfig/*.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
libSDL2_gfx-1_0-0
|
libSDL2_gfx-1_0-0
|
||||||
provides "SDL2_gfx-<targettype> = <version>"
|
provides "SDL2_gfx-<targettype> = <version>-<release>"
|
||||||
obsoletes "SDL2_gfx-<targettype> <= <version>"
|
|
||||||
libSDL2_gfx-devel
|
libSDL2_gfx-devel
|
||||||
|
provides "SDL2_gfx-devel-<targettype> = <version>-<release>"
|
||||||
requires -libSDL2_gfx-<targettype>
|
requires -libSDL2_gfx-<targettype>
|
||||||
requires "libSDL2_gfx-1_0-0-<targettype> = <version>"
|
requires "libSDL2_gfx-1_0-0-<targettype> = <version>"
|
||||||
|
Loading…
Reference in New Issue
Block a user