New version 2.0.5

New library major 1
This commit is contained in:
Andrey Bondrov 2016-10-24 17:49:59 +10:00
parent 1e73e6ae0d
commit 978d5a454b
2 changed files with 17 additions and 15 deletions

View file

@ -1,2 +1,2 @@
sources: sources:
SDL2-2.0.4.tar.gz: 470a23dfc4b6220c687925ebbe5fe96287f8fb08 SDL2-2.0.5.tar.gz: c4f87580630387796df4ac87c362b4f9a721457e

View file

@ -1,18 +1,20 @@
%define oversion 0.4.1
%define api 2.0 %define api 2.0
%define major 0 %define major 1
%define libname %mklibname %{name}_ %{api} %{major} %define libname %mklibname %{name}_ %{api} %{major}
%define devname %mklibname %{name} -d %define devname %mklibname %{name} -d
Summary: Simple DirectMedia Layer Summary: Simple DirectMedia Layer
Name: SDL2 Name: SDL2
Version: 2.0.4 Version: 2.0.5
Release: 2 Release: 1
License: Zlib License: Zlib
Group: System/Libraries Group: System/Libraries
Url: http://www.libsdl.org/ Url: http://www.libsdl.org/
Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
Patch0: SDL2-2.0.3-cmake.patch Patch0: SDL2-2.0.3-cmake.patch
#Patch1: SDL2-2.0.1-cmake-joystick.patch BuildRequires: cmake
BuildRequires: nas-devel BuildRequires: nas-devel
BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(dbus-1)
@ -29,15 +31,14 @@ BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(xscrnsaver) BuildRequires: pkgconfig(xscrnsaver)
BuildRequires: pkgconfig(xxf86vm) BuildRequires: pkgconfig(xxf86vm)
BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(zlib)
BuildRequires: cmake
#----------------------------------------------------------------------------
%description %description
This is the Simple DirectMedia Layer, a generic API that provides low level This is the Simple DirectMedia Layer, a generic API that provides low level
access to audio, keyboard, mouse, and display framebuffer across multiple access to audio, keyboard, mouse, and display framebuffer across multiple
platforms. platforms.
#----------------------------------------------------------------------------
%package -n %{libname} %package -n %{libname}
Summary: Main library for %{name} Summary: Main library for %{name}
Group: System/Libraries Group: System/Libraries
@ -48,15 +49,16 @@ linked with %{name}.
%files -n %{libname} %files -n %{libname}
%doc README.txt README-SDL.txt CREDITS.txt COPYING.txt BUGS.txt WhatsNew.txt %doc README.txt README-SDL.txt CREDITS.txt COPYING.txt BUGS.txt WhatsNew.txt
%{_libdir}/libSDL2-%{api}.so.%{major}* %{_libdir}/libSDL2-%{api}.so.%{major}
%{_libdir}/libSDL2-%{api}.so.%{oversion}
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
%package -n %{devname} %package -n %{devname}
Summary: Headers for developing programs that will use %{name} Summary: Headers for developing programs that will use %{name}
Group: Development/C Group: Development/C
Requires: %{libname} = %{version}-%{release} Requires: %{libname} = %{EVRD}
Provides: %{name}-devel = %{version}-%{release} Provides: %{name}-devel = %{EVRD}
%description -n %{devname} %description -n %{devname}
This package contains the headers that programmers will need to develop This package contains the headers that programmers will need to develop