mirror of
https://abf.rosa.ru/djam/SDL2_mixer.git
synced 2025-02-23 14:52:47 +00:00
91 lines
2.4 KiB
RPMSpec
91 lines
2.4 KiB
RPMSpec
%define major 0
|
|
%define api 2.0
|
|
%define libname %mklibname %{name} %{api} %{major}
|
|
%define devname %mklibname %{name} -d
|
|
|
|
Summary: Simple DirectMedia Layer 2 - mixer
|
|
Name: SDL2_mixer
|
|
Version: 2.0.1
|
|
Release: 3
|
|
License: Zlib
|
|
Group: System/Libraries
|
|
Url: http://www.libsdl.org/projects/SDL_mixer/
|
|
Source0: http://www.libsdl.org/projects/SDL_mixer/release/%{name}-%{version}.tar.gz
|
|
BuildRequires: libmikmod-devel
|
|
BuildRequires: pkgconfig(flac)
|
|
BuildRequires: pkgconfig(fluidsynth)
|
|
BuildRequires: pkgconfig(libmodplug)
|
|
BuildRequires: pkgconfig(sdl2)
|
|
BuildRequires: pkgconfig(vorbis)
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
%description
|
|
SDL2_mixer is a sample multi-channel audio mixer library. It supports any
|
|
number of simultaneously playing channels of 16 bit stereo audio, plus a
|
|
single channel of music, mixed by the popular MikMod MOD, Timidity MIDI
|
|
and SMPEG MP3 libraries.
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%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 COPYING.txt
|
|
%doc timidity/FAQ timidity/README
|
|
%{_libdir}/lib%{name}-%{api}.so.%{major}*
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%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 CHANGES.txt
|
|
%{_libdir}/lib%{name}.so
|
|
%{_includedir}/SDL2/*
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%package -n %{name}-player
|
|
Summary: Players using %{name}
|
|
Group: System/Libraries
|
|
Conflicts: SDL_mixer-player
|
|
|
|
%description -n %{name}-player
|
|
This package contains binary to test the associated library.
|
|
|
|
%files -n %{name}-player
|
|
%doc README.txt
|
|
%{_bindir}/playwave
|
|
%{_bindir}/playmus
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure2_5x \
|
|
--disable-static \
|
|
--enable-music-mod \
|
|
--disable-music-ogg-shared \
|
|
--disable-music-flac-shared
|
|
%make
|
|
|
|
%install
|
|
%makeinstall_std install-bin
|
|
|