packaging: Initial packaging
authorvivian,zhang <vivian.zhang@intel.com>
Wed, 3 Jul 2013 03:08:04 +0000 (11:08 +0800)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Tue, 6 Jan 2015 09:47:09 +0000 (10:47 +0100)
Change-Id: I332330046d23d929bc8f09e74e69e738af797471
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
packaging/sbc.spec [new file with mode: 0644]

diff --git a/packaging/sbc.spec b/packaging/sbc.spec
new file mode 100644 (file)
index 0000000..b40c4a6
--- /dev/null
@@ -0,0 +1,50 @@
+Name:    sbc
+Version: 1.1
+Release: 0
+Summary: Bluetooth SBC Utilities
+Group:   Multimedia/Utilities
+License: GPL-2.0
+URL:     http://www.bluez.org
+Source0: http://www.kernel.org/pub/linux/bluetooth/sbc-1.1.tar.gz
+BuildRequires:  pkgconfig(sndfile)
+
+%description
+Bluetooth SBC utilities
+
+%package devel
+Summary:    Bluetooth SBC development files
+Group:      Development/Libraries
+Requires:   %{name} = %{version}-%{release}
+Requires:   pkgconfig
+
+%description devel
+This package contains Bluetooth SBC development files
+
+%prep
+%setup -q
+
+%build
+%configure --enable-shared --disable-static --prefix=/usr
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=%{buildroot}
+rm -rf %{buildroot}%{_libdir}/*.la
+
+%clean
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%{_bindir}/sbcinfo
+%{_bindir}/sbcdec
+%{_bindir}/sbcenc
+%{_libdir}/libsbc.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/sbc/*
+%{_libdir}/libsbc.so
+%{_libdir}/pkgconfig/sbc.pc