File mpg123.spec of Package mpg123

#
# spec file for package mpg123
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#


Name:           mpg123
Version:        1.23.8
Release:        0
Summary:        Fast console MPEG Audio Player and decoder library
License:        LGPL-2.1
Group:          Productivity/Multimedia/Sound/Players
Url:            http://www.mpg123.de/
Source0:        https://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{name}-%{version}.tar.bz2
Source1:        https://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{name}-%{version}.tar.bz2.sig
Source2:        mpg123.keyring
BuildRequires:  pkgconfig
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
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 devel
Summary:        Files to develop against libmpg123
Group:          Development/Languages/C and C++
Requires:       libmpg123-0 = %{version}
Requires:       libout123-0 = %{version}

%description devel
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 libmpg123-0
Summary:        Fast MPEG Audio decoder library
Group:          System/Libraries

%description -n libmpg123-0
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 libout123-0
Summary:        Fast MPEG Audio decoder library
Group:          System/Libraries

%description -n libout123-0
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.

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
find %{buildroot} -type f -name "*.la" -delete -print

%post   -n libmpg123-0 -p /sbin/ldconfig
%postun -n libmpg123-0 -p /sbin/ldconfig
%post   -n libout123-0 -p /sbin/ldconfig
%postun -n libout123-0 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc ChangeLog README
%{_bindir}/mpg123
%{_bindir}/mpg123-id3dump
%{_bindir}/mpg123-strip
%{_bindir}/out123
%{_mandir}/man1/mpg123.1%{ext_man}
%{_mandir}/man1/out123.1%{ext_man}

%files -n libmpg123-0
%defattr(-,root,root)
%doc COPYING
%{_libdir}/libmpg123.so.*

%files -n libout123-0
%defattr(-,root,root)
%{_libdir}/libout123.so.*

%files devel
%defattr(-,root,root)
%{_libdir}/libmpg123.so
%{_libdir}/libout123.so
%{_libdir}/pkgconfig/libmpg123.pc
%{_libdir}/pkgconfig/libout123.pc
%{_includedir}/fmt123.h
%{_includedir}/mpg123.h
%{_includedir}/out123.h

%changelog
openSUSE Build Service is sponsored by