SDL_mixer/SDL_mixer.spec

107 lines
3 KiB
RPMSpec
Raw Permalink Normal View History

2016-10-25 14:34:04 +10:00
%define major 0
%define apiver 1.2
%define libname %mklibname %{name} %{apiver} %{major}
%define devname %mklibname %{name} -d
2012-02-01 14:24:20 +04:00
2016-10-25 14:34:04 +10:00
Summary: Simple DirectMedia Layer - mixer
2012-02-01 14:24:20 +04:00
Name: SDL_mixer
Version: 1.2.12
2021-08-10 23:09:02 +09:00
Release: 9
2012-02-01 14:24:20 +04:00
License: LGPLv2+
Group: System/Libraries
2016-10-25 14:34:04 +10:00
Url: http://www.libsdl.org/projects/SDL_mixer/
2012-02-01 14:24:20 +04:00
Source0: http://www.libsdl.org/projects/SDL_mixer/release/%{name}-%{version}.tar.gz
Patch0: SDL_mixer-MikMod-1.patch
Patch1: SDL_mixer-MikMod-2.patch
2016-10-25 14:34:04 +10:00
BuildRequires: libstdc++-static-devel
BuildRequires: pkgconfig(esound)
BuildRequires: pkgconfig(flac)
2016-10-25 14:34:04 +10:00
BuildRequires: pkgconfig(sdl)
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(zlib)
2012-02-01 14:24:20 +04:00
%description
SDL_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.
2016-10-25 14:34:04 +10:00
#----------------------------------------------------------------------------
2012-02-01 14:24:20 +04:00
%package -n %{libname}
Summary: Main library for %{name}
Group: System/Libraries
Obsoletes: %{_lib}SDL_mixer1.2_0 < 1.2.10
2016-10-25 14:34:04 +10:00
%description -n %{libname}
2012-02-01 14:24:20 +04:00
This package contains the library needed to run programs dynamically
linked with %{name}.
2016-10-25 14:34:04 +10:00
%files -n %{libname}
%doc timidity/FAQ timidity/README
%{_libdir}/lib*%{apiver}.so.%{major}*
#----------------------------------------------------------------------------
%package -n %{devname}
2012-02-01 14:24:20 +04:00
Summary: Headers for developing programs that will use %{name}
Group: Development/C
2016-10-25 14:34:04 +10:00
Requires: %{libname} = %{EVRD}
Requires: pkgconfig(sdl)
2016-10-25 14:34:04 +10:00
Provides: %{name}-devel = %{EVRD}
2012-02-01 14:24:20 +04:00
2016-10-25 14:34:04 +10:00
%description -n %{devname}
2012-02-01 14:24:20 +04:00
This package contains the headers that programmers will need to develop
applications which will use %{name}.
2016-10-25 14:34:04 +10:00
%files -n %{devname}
%doc README CHANGES
%{_libdir}/lib*.so
%{_includedir}/SDL/*
%{_libdir}/pkgconfig/%{name}.pc
#----------------------------------------------------------------------------
%package player
2012-02-01 14:24:20 +04:00
Summary: Players using %{name}
Group: System/Libraries
2016-10-25 14:34:04 +10:00
Requires: %{libname} = %{EVRD}
2012-02-01 14:24:20 +04:00
2016-10-25 14:34:04 +10:00
%description player
2012-02-01 14:24:20 +04:00
This package contains binary to test the associated library.
2016-10-25 14:34:04 +10:00
%files player
%doc README
%{_bindir}/playwave
%{_bindir}/playmus
#----------------------------------------------------------------------------
2012-02-01 14:24:20 +04:00
%prep
%setup -q
%patch0 -p1
%patch1 -p1
2012-02-01 14:24:20 +04:00
%build
# (Anssi 02/2010) The below --disable-music-foo-shared options do not disable
# support for the format in question. They just disable dlopen, and using the
# shared libraries directly, allowing rpm autodeps to work. Just using dlopen
# on them would make it quite likely that adding the deps later on downstream
# packages using SDL_mixer manually would be forgotten.
2020-01-04 02:42:22 +03:00
%configure \
--enable-music-libmikmod=no \
2016-10-25 14:34:04 +10:00
--enable-music-native-midi \
--disable-music-ogg-shared \
--disable-music-flac-shared \
--disable-music-mod-shared \
--disable-music-mp3-shared \
--disable-static
2020-01-13 14:15:59 +03:00
%make
2012-02-01 14:24:20 +04:00
iconv -f ISO-8859-1 -t UTF-8 CHANGES > CHANGES.tmp
touch -r CHANGES CHANGES.tmp
2016-10-25 14:34:04 +10:00
mv CHANGES.tmp CHANGES
2012-02-01 14:24:20 +04:00
%install
2020-01-13 14:15:59 +03:00
%makeinstall_std install-bin