SDL2_mixer/SDL2_mixer.spec

94 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

2014-06-08 18:37:38 +04:00
%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
2022-10-10 18:10:26 +03:00
Version: 2.6.2
Release: 1
2014-06-08 18:37:38 +04:00
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)
2022-04-11 22:24:36 +03:00
BuildRequires: pkgconfig(fluidsynth)
2014-06-08 18:37:38 +04:00
BuildRequires: pkgconfig(libmodplug)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(zlib)
2021-08-11 08:07:03 +09:00
BuildRequires: pkgconfig(libmpg123)
BuildRequires: pkgconfig(opusfile)
2014-06-08 18:37:38 +04:00
%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}
2022-10-10 18:10:26 +03:00
%doc src/codecs/timidity/FAQ src/codecs/timidity/README
%license LICENSE.txt
2014-06-08 18:37:38 +04:00
%{_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
%{_includedir}/SDL2/*
2022-10-10 18:10:26 +03:00
%{_libdir}/cmake/%{name}
%{_libdir}/lib%{name}.so
2014-06-08 18:37:38 +04:00
%{_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
2022-10-10 18:10:26 +03:00
%autosetup -p1
2014-06-08 18:37:38 +04:00
%build
2020-01-04 02:42:11 +03:00
%configure \
2022-04-22 13:39:27 +03:00
--disable-music-flac-shared \
--disable-music-ogg-shared \
--disable-static \
--enable-music-mod
2020-01-13 14:15:47 +03:00
%make
2014-06-08 18:37:38 +04:00
%install
2020-01-13 14:15:47 +03:00
%makeinstall_std install-bin