ALT Linux repositórios
Group :: Som
RPM: mpg123
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%def_without esd
Name: mpg123
Version: 0.59s
Release: alt0.9
Summary: MPEG audio player
Group: Sound
License: distributable
ExclusiveArch: %ix86 x86_64
Url: http://www.%name.de
# http://www.mpg123.de/mpg123/
Source: %name-pre%version.tar.bz2
Source1: mp3license
Packager: Alexey Tourbin <at at altlinux.ru>
# goldhead
Patch1: %name-0.59q-makefile.patch
Patch2: %name-pre0.59s-8bit.patch
#atch3: %name-0.59r-3DNow.patch.bz2
Patch4: %name-pre0.59s-opt.patch
# new patches
Patch10: mpg123-0.59s-pld-esd.patch
Patch11: mpg123-0.59s-pld-id3v2-hack.patch
Patch12: mpg123-0.59s-rh-audio_sun.patch
# http://www.securityfocus.com/bid/6629
# http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0577
Patch15: mpg123-0.59s-security-zero_bitrate.patch
# reported by sb at altlinux http://bugzilla.altlinux.ru/show_bug.cgi?id=2810
# `mpg123 -Z ~/.bash_profile' eats LOTS of memory
Patch16: mpg123-0.59s-alt-memory-leak.patch
# remote client-side heap corruption exploit
# http://securityfocus.com/archive/1/338641
Patch17: mpg123-0.59s-security-http.patch
# http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0797
Patch18: mpg123-0.59s-security-layer2.patch
%if_with esd
BuildPreReq: esound-devel libaudiofile-devel
%endif
%description
Mpg123 is a fast, free and portable MPEG audio player for Unix.
It supports MPEG 1.0/2.0 layers 1, 2 and 3 ("mp3" files). For
full CD quality playback (44 kHz, 16 bit, stereo) a fast CPU
is required. Mono and/or reduced quality playback (22 kHz or
11 kHz) is possible on slow CPUs (like Intel 486).
For information on the MP3 License, please visit:
%url
%prep
%setup -q -n %name
#patch1 -p1 --optimizations, pretty much the same as opt.patch
%patch2 -p0
#patch3 -p1
%patch4 -p0
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch15 -p1
%patch16 -p1
%patch17 -p1
%patch18 -p1
%__install -p -m644 %SOURCE1 .
%build
%{!?_enable_debug:%add_optflags -fomit-frame-pointer -ffast-math -frename-registers}
%if_with esd
CFLAGS=-DUSE_ESD; OBJECTS=audio_esd.o; AUDIO_LIB='-lesd -laudiofile'
%else
CFLAGS=-DOSS; OBJECTS=audio_oss.o AUDIO_LIB=
%endif
%ifarch %ix86
%make_build mpg123-make BINDIR=%_bindir MANDIR=%_mandir \
AUDIO_LIB="$AUDIO_LIB" \
OBJECTS="decode_i386.o dct64_i386.o decode_i586.o term.o $OBJECTS" \
CFLAGS="%optflags -DI386_ASSEM -DPENTIUM_OPT -DREAL_IS_FLOAT -DLINUX -DTERM_CONTROL -DINET6 $CFLAGS"
%else
%make_build OBJECTS="decode.o dct64.o audio_oss.o" \
CFLAGS="-DREAL_IS_FLOAT -DLINUX -Wall -DOSS \
-fomit-frame-pointer -funroll-all-loops -finline-functions \
-ffast-math" \
mpg123-make
%endif
%install
%__install -pD -m755 %name %buildroot%_bindir/%name
%__install -pD -m644 %name.1 %buildroot%_man1dir/%name.1
%files
%_bindir/*
%_man1dir/*
%doc BUGS CHANGES COPYING JUKEBOX README README.remote TODO mp3license
%changelog
…
Todas as alterações você pod ver aqui
Name: mpg123
Version: 0.59s
Release: alt0.9
Summary: MPEG audio player
Group: Sound
License: distributable
ExclusiveArch: %ix86 x86_64
Url: http://www.%name.de
# http://www.mpg123.de/mpg123/
Source: %name-pre%version.tar.bz2
Source1: mp3license
Packager: Alexey Tourbin <at at altlinux.ru>
# goldhead
Patch1: %name-0.59q-makefile.patch
Patch2: %name-pre0.59s-8bit.patch
#atch3: %name-0.59r-3DNow.patch.bz2
Patch4: %name-pre0.59s-opt.patch
# new patches
Patch10: mpg123-0.59s-pld-esd.patch
Patch11: mpg123-0.59s-pld-id3v2-hack.patch
Patch12: mpg123-0.59s-rh-audio_sun.patch
# http://www.securityfocus.com/bid/6629
# http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0577
Patch15: mpg123-0.59s-security-zero_bitrate.patch
# reported by sb at altlinux http://bugzilla.altlinux.ru/show_bug.cgi?id=2810
# `mpg123 -Z ~/.bash_profile' eats LOTS of memory
Patch16: mpg123-0.59s-alt-memory-leak.patch
# remote client-side heap corruption exploit
# http://securityfocus.com/archive/1/338641
Patch17: mpg123-0.59s-security-http.patch
# http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0797
Patch18: mpg123-0.59s-security-layer2.patch
%if_with esd
BuildPreReq: esound-devel libaudiofile-devel
%endif
%description
Mpg123 is a fast, free and portable MPEG audio player for Unix.
It supports MPEG 1.0/2.0 layers 1, 2 and 3 ("mp3" files). For
full CD quality playback (44 kHz, 16 bit, stereo) a fast CPU
is required. Mono and/or reduced quality playback (22 kHz or
11 kHz) is possible on slow CPUs (like Intel 486).
For information on the MP3 License, please visit:
%url
%prep
%setup -q -n %name
#patch1 -p1 --optimizations, pretty much the same as opt.patch
%patch2 -p0
#patch3 -p1
%patch4 -p0
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch15 -p1
%patch16 -p1
%patch17 -p1
%patch18 -p1
%__install -p -m644 %SOURCE1 .
%build
%{!?_enable_debug:%add_optflags -fomit-frame-pointer -ffast-math -frename-registers}
%if_with esd
CFLAGS=-DUSE_ESD; OBJECTS=audio_esd.o; AUDIO_LIB='-lesd -laudiofile'
%else
CFLAGS=-DOSS; OBJECTS=audio_oss.o AUDIO_LIB=
%endif
%ifarch %ix86
%make_build mpg123-make BINDIR=%_bindir MANDIR=%_mandir \
AUDIO_LIB="$AUDIO_LIB" \
OBJECTS="decode_i386.o dct64_i386.o decode_i586.o term.o $OBJECTS" \
CFLAGS="%optflags -DI386_ASSEM -DPENTIUM_OPT -DREAL_IS_FLOAT -DLINUX -DTERM_CONTROL -DINET6 $CFLAGS"
%else
%make_build OBJECTS="decode.o dct64.o audio_oss.o" \
CFLAGS="-DREAL_IS_FLOAT -DLINUX -Wall -DOSS \
-fomit-frame-pointer -funroll-all-loops -finline-functions \
-ffast-math" \
mpg123-make
%endif
%install
%__install -pD -m755 %name %buildroot%_bindir/%name
%__install -pD -m644 %name.1 %buildroot%_man1dir/%name.1
%files
%_bindir/*
%_man1dir/*
%doc BUGS CHANGES COPYING JUKEBOX README README.remote TODO mp3license
%changelog
…
Todas as alterações você pod ver aqui