From 9d7170d154b06829956249381061da00278d9d9a Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Mon, 3 Dec 2012 14:40:35 +0000 Subject: [PATCH] initial import --- .gitignore | 1 + sbc.spec | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 60 insertions(+) create mode 100644 sbc.spec diff --git a/.gitignore b/.gitignore index e69de29..c1ac89a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/sbc-*.tar.gz diff --git a/sbc.spec b/sbc.spec new file mode 100644 index 0000000..f487975 --- /dev/null +++ b/sbc.spec @@ -0,0 +1,58 @@ +Name: sbc +Version: 1.0 +Release: 1%{?dist} +Summary: Sub Band Codec used by bluetooth A2DP + +Group: System Environment/Libraries +License: GPLv2 and LGPLv2+ +URL: http://www.bluez.org +Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz + +BuildRequires: libsndfile-devel + +%description +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 +Summary: Development package for %{name} +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: pkgconfig + +%description devel +Files for development with %{name}. + +%prep +%setup -q + +%build +%configure --disable-static + +make %{?_smp_mflags} V=1 + +%install +make install DESTDIR=%{buildroot} INSTALL='install -p' + +#Remove libtool archives. +find %{buildroot} -name '*.la' -exec rm -f {} ';' + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%doc COPYING AUTHORS ChangeLog +%{_bindir}/sbc* +%{_libdir}/*.so.* + +%files devel +%{_includedir}/sbc +%{_libdir}/pkgconfig/sbc.pc +%{_libdir}/*.so + +%changelog +* Sat Dec 1 2012 Peter Robinson 1.0-1 +- Initial package diff --git a/sources b/sources index e69de29..d64a3a4 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d01dab8c54638710c958cc2ceaff145a sbc-1.0.tar.gz