Some cleanups - remove useless obsoletes, copy provides
OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=29
This commit is contained in:
parent
39a7400fa7
commit
269f8b11f2
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 18 10:04:34 UTC 2014 - jengelh@inai.de
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 18 09:46:46 UTC 2014 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Remove SDL2 obsoletes (we never had packages of that name).
|
||||||
|
Copy current Provides to baselibs.conf.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jul 21 20:13:17 UTC 2014 - jengelh@inai.de
|
Mon Jul 21 20:13:17 UTC 2014 - jengelh@inai.de
|
||||||
|
|
||||||
|
29
SDL2.spec
29
SDL2.spec
@ -76,7 +76,7 @@ across multiple platforms.
|
|||||||
%package -n %lname
|
%package -n %lname
|
||||||
Summary: Simple DirectMedia Layer Library
|
Summary: Simple DirectMedia Layer Library
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Provides: SDL2 = %{version}
|
Provides: SDL2 = %version-%release
|
||||||
|
|
||||||
%description -n %lname
|
%description -n %lname
|
||||||
This is the "Simple DirectMedia Layer" library. It provides a generic
|
This is the "Simple DirectMedia Layer" library. It provides a generic
|
||||||
@ -86,7 +86,7 @@ across multiple platforms.
|
|||||||
%package -n libSDL2-devel
|
%package -n libSDL2-devel
|
||||||
Summary: SDL2 Library Developer Files
|
Summary: SDL2 Library Developer Files
|
||||||
Group: Development/Libraries/X11
|
Group: Development/Libraries/X11
|
||||||
Requires: %lname = %{version}
|
Requires: %lname = %version
|
||||||
Requires: c_compiler
|
Requires: c_compiler
|
||||||
Requires: pkgconfig
|
Requires: pkgconfig
|
||||||
Requires: pkgconfig(gl)
|
Requires: pkgconfig(gl)
|
||||||
@ -95,7 +95,7 @@ Requires: pkgconfig(glesv2)
|
|||||||
Requires: pkgconfig(glu)
|
Requires: pkgconfig(glu)
|
||||||
Requires: pkgconfig(x11)
|
Requires: pkgconfig(x11)
|
||||||
Requires: pkgconfig(xproto)
|
Requires: pkgconfig(xproto)
|
||||||
Provides: SDL2-devel = %{version}
|
Provides: SDL2-devel = %version-%release
|
||||||
|
|
||||||
%description -n libSDL2-devel
|
%description -n libSDL2-devel
|
||||||
This package contains files needed for development with the SDL2
|
This package contains files needed for development with the SDL2
|
||||||
@ -121,27 +121,26 @@ 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 %lname -p /sbin/ldconfig
|
|
||||||
|
|
||||||
|
%post -n %lname -p /sbin/ldconfig
|
||||||
%postun -n %lname -p /sbin/ldconfig
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n %lname
|
%files -n %lname
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc BUGS.txt COPYING.txt CREDITS.txt README.txt README-SDL.txt
|
%doc BUGS.txt COPYING.txt CREDITS.txt README.txt README-SDL.txt
|
||||||
%{_libdir}/libSDL2-2*.so.*
|
%_libdir/libSDL2-2*.so.*
|
||||||
|
|
||||||
%files -n libSDL2-devel
|
%files -n libSDL2-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc TODO.txt WhatsNew.txt
|
%doc TODO.txt WhatsNew.txt
|
||||||
%{_bindir}/sdl2-config
|
%_bindir/sdl2-config
|
||||||
%{_libdir}/libSDL2.so
|
%_libdir/libSDL2.so
|
||||||
%{_libdir}/libSDL2.a
|
%_libdir/libSDL2.a
|
||||||
%{_libdir}/libSDL2main.a
|
%_libdir/libSDL2main.a
|
||||||
%{_libdir}/libSDL2_test.a
|
%_libdir/libSDL2_test.a
|
||||||
%{_includedir}/SDL2/
|
%_includedir/SDL2/
|
||||||
%{_datadir}/aclocal/sdl2.m4
|
%_datadir/aclocal/sdl2.m4
|
||||||
%{_libdir}/pkgconfig/sdl2.pc
|
%_libdir/pkgconfig/sdl2.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
libSDL2-2_0-0
|
libSDL2-2_0-0
|
||||||
provides "SDL2-<targettype> = <version>"
|
provides "SDL2-<targettype> = <version>-<release>"
|
||||||
obsoletes "SDL2-<targettype> <= <version>"
|
|
||||||
libSDL2-devel
|
libSDL2-devel
|
||||||
provides "SDL2-devel-<targettype> = <version>"
|
provides "SDL2-devel-<targettype> = <version>-<release>"
|
||||||
obsoletes "SDL2-devel-<targettype> <= <version>"
|
requires -libSDL2-<targettype>
|
||||||
requires -libSDL2-<targettype>
|
requires "libSDL2-2_0-0-<targettype> = <version>"
|
||||||
requires "libSDL2-2_0-0-<targettype> = <version>"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user