Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37563522
en ru br
ALT Linux repos
S:0.3.2-alt3
5.0: 0.2.10.2-alt1.1
4.1: 0.2.10.2-alt1.1
4.0: 0.2.10.2-alt1.1
3.0: 0.2.10.2-alt1

Group :: Sound
RPM: mpg321

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1

Name: mpg321
Version: 0.3.2
Release: alt3
Summary: A Free command-line mp3 player, compatible with mpg123
Summary(ru_RU.UTF-8): mp3 плейер c интерфейсом командной строки, совместимый с mpg123
Group: Sound
License: GPLv2+
Url: http://mpg321.sourceforge.net/

Source0: %{name}_%{version}.orig.tar

# Patches from Gentoo

Patch1: mpg321-0.3.2-format-security.patch
Patch2: mpg321-0.3.2-CVE-2019-14247.patch
Patch3: mpg321-0.3.2-gcc10.patch
Patch4: mpg321-0.3.2-static-inline.patch

# Patches from ALT

Patch100: mpg321-0.3.2-alt-build.patch

# whether to replace mpg123 or not?

# on PII 350Mhz mpg321 uses 25 percents CPU time against 4.5 percents for mpg123.
%define REPLACE_123 0

%if %REPLACE_123
Provides: mpg123 = 0.59q
%endif

%define mad_ver 0.14.2b

# Automatically added by buildreq on Mon Nov 26 2012

# optimized out: zlib-devel
BuildRequires: libao-devel libid3tag-devel libmad-devel

%description
A Free command-line mp3 player, compatible with mpg123. mpg321 is a clone
of the popular mpg123 command-line mp3 player. It should function as a
drop-in replacement for mpg123 in many cases. While some of the
functionality of mpg123 is not yet implemented, mpg321 should function
properly in most cases for most people, such as for frontends such as
gqmpeg.

mpg321 is based on the mad MPEG audio decoding library. It therefore is
highly accurate, and also uses only fixed-point calculation, making it
more efficient on machines without a floating-point unit.

While mpg321 is not as fast as the non-free mpg123 on systems which have
a floating point unit, it comes under a fully Free license, which allows
greater freedom to its users. For most people who want mpg123, mpg321 is
a better alternative.

%description -l ru_RU.UTF-8
mpg321 - проигрыватель mp3 файлов с интерфейсом командной строки, может
заменить известный проигрыватель mpg123, в отличии от которого имеет
абсолютно свободную лицензию и некоторую дополнительную
функциональность, однако, уступает в производительности.

%prep
%setup -q -n %name-%version-orig
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch100 -p2

%build
%add_optflags -Werror=implicit-function-declaration

%if %REPLACE_123
%configure \
   --enable-alsa=no \
   --enable-ipv6
%else
%configure \
   --enable-mpg123-symlink=no \
   --enable-alsa=no \
   --enable-ipv6
%endif

%make_build

%install
%make_install DESTDIR=%buildroot install

%files
%doc AUTHORS BUGS HACKING NEWS README README.remote THANKS
%_bindir/*
%_man1dir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin