mirror of
https://abf.rosa.ru/djam/SDL3.git
synced 2025-02-23 13:52:54 +00:00
Automatic import for version 2.0.0-0.1
This commit is contained in:
commit
ff29444b05
2 changed files with 88 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
sources:
|
||||
"SDL2-2.0.0.tar.gz": c65e320c9c3fee5cb59b9683eb2d92e40eec08fb
|
86
SDL2.spec
Normal file
86
SDL2.spec
Normal file
|
@ -0,0 +1,86 @@
|
|||
%define api 2.0
|
||||
%define major 0
|
||||
%define libname %mklibname SDL %{api} %{major}
|
||||
%define devname %mklibname %{name} -d
|
||||
|
||||
Summary: Simple DirectMedia Layer
|
||||
Name: SDL2
|
||||
Version: 2.0.0
|
||||
Release: 0.1
|
||||
License: Zlib
|
||||
Group: System/Libraries
|
||||
Url: http://www.libsdl.org/
|
||||
Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: pkgconfig(gl)
|
||||
BuildRequires: pkgconfig(glu)
|
||||
BuildRequires: pkgconfig(libpulse)
|
||||
BuildRequires: pkgconfig(xrandr)
|
||||
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}*
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package -n %{devname}
|
||||
Summary: Headers for developing programs that will use %{name}
|
||||
Group: Development/C
|
||||
Requires: %{libname} = %{version}-%{release}
|
||||
Provides: %{name}-devel = %{version}-%{release}
|
||||
|
||||
%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}/pkgconfig/sdl2.pc
|
||||
%{_libdir}/*.so
|
||||
%dir %{_includedir}/SDL2
|
||||
%{_includedir}/SDL2/*.h
|
||||
%{_datadir}/aclocal/sdl2.m4
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure2_5x \
|
||||
--disable-static \
|
||||
--disable-rpath \
|
||||
--disable-esd \
|
||||
--disable-oss \
|
||||
--enable-pulseaudio \
|
||||
--enable-pulseaudio-shared \
|
||||
--enable-alsa \
|
||||
--enable-alsa-shared
|
||||
|
||||
sed -i s,"objdir=.libs","objdir=",g libtool
|
||||
%make
|
||||
|
||||
%install
|
||||
rm build/libSDL2.la
|
||||
cp build/libSDL2.lai build/libSDL2.la
|
||||
%makeinstall_std
|
||||
|
||||
rm -f %{buildroot}%{_libdir}/*.a
|
||||
|
Loading…
Add table
Reference in a new issue