mirror of
https://abf.rosa.ru/djam/SDL3.git
synced 2025-02-23 13:52:54 +00:00
100 lines
2.8 KiB
RPMSpec
100 lines
2.8 KiB
RPMSpec
%define oversion 0.12.0
|
|
|
|
%define api 2.0
|
|
%define major 0
|
|
%define libname %mklibname %{name}_ %{api} %{major}
|
|
%define devname %mklibname %{name} -d
|
|
|
|
Summary: Simple DirectMedia Layer
|
|
Name: SDL2
|
|
Version: 2.0.12
|
|
Release: 1
|
|
License: Zlib
|
|
Group: System/Libraries
|
|
Url: http://www.libsdl.org/
|
|
Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
|
|
Patch0: SDL2-2.0.3-cmake.patch
|
|
Patch1: SDL2-2.0.7-soversion.patch
|
|
BuildRequires: cmake
|
|
BuildRequires: wayland-doc
|
|
BuildRequires: nas-devel
|
|
BuildRequires: pkgconfig(alsa)
|
|
BuildRequires: pkgconfig(dbus-1)
|
|
BuildRequires: pkgconfig(egl)
|
|
BuildRequires: pkgconfig(gl)
|
|
BuildRequires: pkgconfig(glu)
|
|
BuildRequires: pkgconfig(libpulse)
|
|
BuildRequires: pkgconfig(libusb)
|
|
BuildRequires: pkgconfig(udev)
|
|
BuildRequires: pkgconfig(wayland-client)
|
|
BuildRequires: pkgconfig(wayland-cursor)
|
|
BuildRequires: pkgconfig(wayland-egl)
|
|
BuildRequires: pkgconfig(wayland-protocols)
|
|
BuildRequires: pkgconfig(wayland-scanner)
|
|
BuildRequires: pkgconfig(xcursor)
|
|
BuildRequires: pkgconfig(xext)
|
|
BuildRequires: pkgconfig(xi)
|
|
BuildRequires: pkgconfig(xinerama)
|
|
BuildRequires: pkgconfig(xkbcommon)
|
|
BuildRequires: pkgconfig(xrandr)
|
|
BuildRequires: pkgconfig(xscrnsaver)
|
|
BuildRequires: pkgconfig(xxf86vm)
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
%description
|
|
This is the Simple DirectMedia Layer, a generic API that provides low level
|
|
access to audio, keyboard, mouse, and display framebuffer across multiple
|
|
platforms.
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%package -n %{libname}
|
|
Summary: Main library for %{name}
|
|
Group: System/Libraries
|
|
|
|
%description -n %{libname}
|
|
This package contains the library needed to run programs dynamically
|
|
linked with %{name}.
|
|
|
|
%files -n %{libname}
|
|
%doc README.txt README-SDL.txt CREDITS.txt COPYING.txt BUGS.txt WhatsNew.txt
|
|
%{_libdir}/libSDL2-%{api}.so.%{major}
|
|
%{_libdir}/libSDL2-%{api}.so.%{oversion}
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%package -n %{devname}
|
|
Summary: Headers for developing programs that will use %{name}
|
|
Group: Development/C
|
|
Requires: %{libname} = %{EVRD}
|
|
Provides: %{name}-devel = %{EVRD}
|
|
|
|
%description -n %{devname}
|
|
This package contains the headers that programmers will need to develop
|
|
applications which will use %{name}.
|
|
|
|
%files -n %{devname}
|
|
%doc README.txt README-SDL.txt CREDITS.txt COPYING.txt BUGS.txt WhatsNew.txt
|
|
%{_bindir}/sdl2-config
|
|
%{_libdir}/cmake/SDL2/
|
|
%{_libdir}/pkgconfig/sdl2.pc
|
|
%{_libdir}/*.so
|
|
%{_libdir}/libSDL2main.a
|
|
%dir %{_includedir}/SDL2
|
|
%{_includedir}/SDL2/*.h
|
|
%{_datadir}/aclocal/sdl2.m4
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%global optflags %{optflags} -mstackrealign
|
|
%cmake \
|
|
-DRPATH:BOOL=OFF \
|
|
-DSDL_STATIC:BOOL=OFF
|
|
%make -s
|
|
|
|
%install
|
|
%makeinstall_std -C build
|