File mingw32-mpg123.spec of Package mingw32-mpg123
#
# spec file for package mingw32-mpg123
#
# Copyright (c) 2015-2024, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define sover 0
%define realname mpg123
Name: mingw32-%{realname}
Version: 1.32.5
Release: 0
Summary: Console MPEG audio player and decoder library
License: LGPL-2.1-only
Group: Productivity/Multimedia/Sound/Players
Url: https://mpg123.org/
Source: https://mpg123.org/download/%{realname}-%{version}.tar.bz2
BuildRequires: automake
BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-SDL2-devel
%{_mingw32_package_header_debug}
BuildArch: noarch
%description
The mpg123 distribution contains an 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.
%package -n mingw32-libmpg123-%{sover}
Summary: MPEG audio decoder library
%description -n mingw32-libmpg123-%{sover}
MPEG 1.0/2.0/2.5 audio decoder library for layers 1, 2 and 3 (most
commonly MPEG 1.0 Layer 3 aka MP3).
%package -n mingw32-libout123-%{sover}
Summary: MPEG audio decoder library
%description -n mingw32-libout123-%{sover}
The mpg123 distribution contains a 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.
%package -n mingw32-libsyn123-%{sover}
Summary: MPEG audio decoder library
%description -n mingw32-libsyn123-%{sover}
The mpg123 distribution contains a 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.
%package -n mingw32-%{realname}-devel
Summary: Files to develop against libmpg123
Group: Development/Libraries/C and C++
Requires: mingw32-libmpg123-%{sover} = %{version}
Requires: mingw32-libout123-%{sover} = %{version}
Requires: mingw32-libsyn123-%{sover} = %{version}
%description -n mingw32-%{realname}-devel
This package contains the files needed to compile programs that use
the mpg123 library.
%{_mingw32_debug_package}
%prep
%setup -q -n %{realname}-%{version}
%build
%{_mingw32_configure} \
%ifarch i586
--with-cpu=i586_dither \
%endif
%ifarch i686
--with-cpu=mmx \
%endif
%ifarch athlon
--with-cpu=3dnow \
%endif
%ifarch x86_64
--with-cpu=x86-64_dither \
%endif
--enable-modules=no
%{_mingw32_make} %{?_smp_mflags}
%install
%makeinstall
rm %{buildroot}/%{_mingw32_libdir}/libmpg123.la
%files
%license COPYING
%doc AUTHORS ChangeLog NEWS NEWS.libmpg123 NEWS.libout123 NEWS.libsyn123 README
%{_mingw32_bindir}/mpg123-id3dump.exe
%{_mingw32_bindir}/mpg123-strip.exe
%{_mingw32_bindir}/mpg123.exe
%{_mingw32_bindir}/out123.exe
%{_mingw32_mandir}/man1/mpg123.1%{?ext_man}
%{_mingw32_mandir}/man1/out123.1%{?ext_man}
%files -n mingw32-lib%{realname}-%{sover}
%{_mingw32_bindir}/libmpg123-%{sover}.dll
%files -n mingw32-libout123-%{sover}
%{_mingw32_bindir}/libout123-%{sover}.dll
%files -n mingw32-libsyn123-%{sover}
%{_mingw32_bindir}/libsyn123-%{sover}.dll
%files -n mingw32-%{realname}-devel
%{_mingw32_includedir}/fmt123.h
%{_mingw32_includedir}/mpg123.h
%{_mingw32_includedir}/out123.h
%{_mingw32_includedir}/syn123.h
%{_mingw32_libdir}/libmpg123.dll.a
%{_mingw32_libdir}/libout123.dll.a
%{_mingw32_libdir}/libsyn123.dll.a
%{_mingw32_libdir}/pkgconfig/libmpg123.pc
%{_mingw32_libdir}/pkgconfig/libout123.pc
%{_mingw32_libdir}/pkgconfig/libsyn123.pc
%changelog