!16 [sync] PR-15: Fix excuting mpg123 xxx.mp3 error
From: @openeuler-sync-bot Reviewed-by: @peijiankang Signed-off-by: @peijiankang
This commit is contained in:
commit
d8b9cd71ea
106
mpg123.spec
106
mpg123.spec
@ -1,37 +1,70 @@
|
||||
%global enable_jack 1
|
||||
%global enable_portaudio 1
|
||||
%global _description \
|
||||
Real time MPEG 1.0/2.0/2.5 audio player/decoder for layers 1, 2 and 3 (most \
|
||||
commonly MPEG 1.0 layer 3 aka MP3), as well as re-usable decoding and output \
|
||||
libraries.
|
||||
|
||||
Name: mpg123
|
||||
Version: 1.29.3
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: Real time MPEG 1.0/2.0/2.5 audio player/decoder for layers 1, 2 and 3
|
||||
|
||||
License: LGPL-2.1-or-later and GPL-2.0-or-later
|
||||
URL: http://mpg123.org
|
||||
Source0: http://mpg123.org/download/%{name}-%{version}.tar.bz2
|
||||
BuildRequires: autoconf automake gcc libtool make pkgconfig(alsa)
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
|
||||
BuildRequires: gcc make alsa-lib-devel
|
||||
|
||||
Provides: %{name}-libs = %{version}-%{release}
|
||||
Provides: lib%{name} = %{version}-%{release}
|
||||
Obsoletes: %{name}-libs < 1.29.3-2
|
||||
Obsoletes: lib%{name} < 1.23.4-1
|
||||
|
||||
|
||||
%description
|
||||
Real time MPEG 1.0/2.0/2.5 audio player/decoder for layers 1, 2 and 3 (most
|
||||
commonly MPEG 1.0 layer 3 aka MP3), as well as re-usable decoding and output
|
||||
libraries.
|
||||
%description %{_description}
|
||||
|
||||
%package plugins-pulseaudio
|
||||
Summary: Pulseaudio output plug-in for mpg123
|
||||
BuildRequires: pulseaudio-libs-devel
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Summary: Pulseaudio output plug-in for mpg123
|
||||
BuildRequires: pulseaudio-libs-devel
|
||||
BuildRequires: pkgconfig(libpulse-simple)
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Supplements: (mpg123 and pulseaudio)
|
||||
|
||||
%description plugins-pulseaudio
|
||||
Pulseaudio output plug-in for mpg123.
|
||||
|
||||
%if 0%{?enable_jack}
|
||||
%package plugins-jack
|
||||
Summary: JACK output plug-in for %{name}
|
||||
BuildRequires: pkgconfig(jack)
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Supplements: (mpg123 and jack-audio-connection-kit)
|
||||
Obsoletes: %{name}-plugins-extras < 1.23.4-1
|
||||
|
||||
%description plugins-jack %{_description}
|
||||
JACK output plug-in.
|
||||
%endif
|
||||
|
||||
%if 0%{?enable_portaudio}
|
||||
%package plugins-portaudio
|
||||
Summary: PortAudio output plug-in for %{name}
|
||||
BuildRequires: pkgconfig(portaudio-2.0)
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Supplements: (mpg123 and portaudio)
|
||||
|
||||
%description plugins-portaudio %{_description}
|
||||
PortAudio output plug-in.
|
||||
%endif
|
||||
|
||||
%package libs
|
||||
Summary: %{_summary}
|
||||
Provides: lib%{name} = %{version}-%{release}
|
||||
Provides: lib%{name} = %{version}-%{release}
|
||||
Obsoletes: lib%{name} < 1.23.4-1
|
||||
|
||||
%description libs %{_description}
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildRequires: doxygen
|
||||
Summary: Development files for %{name}
|
||||
BuildRequires:doxygen
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
Provides: lib%{name}-devel = %{version}-%{release}
|
||||
Obsoletes: lib%{name}-devel < 1.23.4-1
|
||||
Obsoletes: %{name}-libs-devel < 1.23.8-3
|
||||
|
||||
%description devel
|
||||
Development files for decoding and output libraries for mpg123.
|
||||
@ -42,8 +75,9 @@ Development files for decoding and output libraries for mpg123.
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
%build
|
||||
%configure --with-audio=alsa,pulse,oss
|
||||
%disable_rpath
|
||||
autoreconf -vfi
|
||||
%configure --enable-modules=yes --with-default-audio=portaudio \
|
||||
--with-audio=alsa,%{?enable_jack:jack},pulse,oss,%{?enable_portaudio:portaudio}
|
||||
%make_build
|
||||
pushd doc
|
||||
doxygen doxygen.conf
|
||||
@ -52,16 +86,10 @@ popd
|
||||
%install
|
||||
%make_install
|
||||
%delete_la
|
||||
|
||||
%pre
|
||||
%preun
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets libs
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%{_bindir}/*
|
||||
%{_libdir}/*.so.*
|
||||
%dir %{_libdir}/%{name}
|
||||
%{_libdir}/%{name}/output_alsa.*
|
||||
%{_libdir}/%{name}/output_dummy.*
|
||||
@ -69,6 +97,22 @@ popd
|
||||
|
||||
%files plugins-pulseaudio
|
||||
%{_libdir}/%{name}/output_pulse.*
|
||||
|
||||
%if 0%{?enable_jack}
|
||||
%files plugins-jack
|
||||
%{_libdir}/%{name}/output_jack.*
|
||||
%endif
|
||||
|
||||
%if 0%{?enable_portaudio}
|
||||
%files plugins-portaudio
|
||||
%{_libdir}/%{name}/output_portaudio.*
|
||||
%endif
|
||||
|
||||
%files libs
|
||||
%license COPYING
|
||||
%{_libdir}/lib%{name}.so.0*
|
||||
%{_libdir}/libout123.so.0*
|
||||
%{_libdir}/libsyn123.so.0*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/*
|
||||
@ -79,8 +123,10 @@ popd
|
||||
%doc NEWS NEWS.lib%{name} doc/*
|
||||
%doc %{_mandir}/man1/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Jul 30 2022 wangkai <wangkai385@h-partners.com> - 1.29.3-3
|
||||
- Add portaudio and jack audio plugin to fix mpg123 xxx.mp3 error
|
||||
|
||||
* Mon May 23 2022 tanyulong<tanyulong@kylinos.cn> - 1.29.3-2
|
||||
- Improve the project according to the requirements of compliance improvement
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user