Split library out to sub package

This commit is contained in:
Peter Robinson 2019-12-12 05:28:06 +00:00
parent 3bcc09a7a4
commit 2fcdfa99aa

View File

@ -1,6 +1,6 @@
Name: sbc Name: sbc
Version: 1.4 Version: 1.4
Release: 3%{?dist} Release: 4%{?dist}
Summary: Sub Band Codec used by bluetooth A2DP Summary: Sub Band Codec used by bluetooth A2DP
License: GPLv2 and LGPLv2+ License: GPLv2 and LGPLv2+
@ -9,6 +9,7 @@ Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.
BuildRequires: gcc BuildRequires: gcc
BuildRequires: libsndfile-devel BuildRequires: libsndfile-devel
Requires: lib%{name}%{?_isa} = %{version}-%{release}
%description %description
SBC (Sub Band Codec) is a low-complexity audio codec used in the Advanced Audio SBC (Sub Band Codec) is a low-complexity audio codec used in the Advanced Audio
@ -16,9 +17,19 @@ Distribution Profile (A2DP) bluetooth standard but can be used standalone. It
uses 4 or 8 subbands, an adaptive bit allocation algorithm in combination with uses 4 or 8 subbands, an adaptive bit allocation algorithm in combination with
an adaptive block PCM quantizers. an adaptive block PCM quantizers.
%package -n libsbc
Summary: Library for the SBC (Sub Band Codec)
%description -n libsbc
Library for SBC (Sub Band Codec) is a low-complexity audio codec used in the
Advanced Audio Distribution Profile (A2DP) bluetooth standard but can be used
standalone. It uses 4 or 8 subbands, an adaptive bit allocation algorithm in
combination with an adaptive block PCM quantizers.
%package devel %package devel
Summary: Development package for %{name} Summary: Development package for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: lib%{name}%{?_isa} = %{version}-%{release}
%description devel %description devel
Files for development with %{name}. Files for development with %{name}.
@ -40,9 +51,11 @@ find %{buildroot} -type f -name "*.la" -delete
%ldconfig_scriptlets %ldconfig_scriptlets
%files %files
%license COPYING
%doc AUTHORS ChangeLog %doc AUTHORS ChangeLog
%{_bindir}/sbc* %{_bindir}/sbc*
%files -n libsbc
%license COPYING
%{_libdir}/libsbc.so.1* %{_libdir}/libsbc.so.1*
%files devel %files devel
@ -51,6 +64,9 @@ find %{buildroot} -type f -name "*.la" -delete
%{_libdir}/libsbc.so %{_libdir}/libsbc.so
%changelog %changelog
* Thu Dec 12 2019 Peter Robinson <pbrobinson@fedoraproject.org> 1.4-4
- Split library out to sub package
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-3 * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild