59a9bdb096
I want to maintain libsbc in Factory and would like to use Base:System as the devel project. libsbc was formerly in the bluez package and is now split out. Ok, and "want" is probably not the right word, but somebody needs to do it. OBS-URL: https://build.opensuse.org/request/show/131528 OBS-URL: https://build.opensuse.org/package/show/Base:System/sbc?expand=0&rev=1
83 lines
2.1 KiB
RPMSpec
83 lines
2.1 KiB
RPMSpec
# spec file for package sbc
|
|
#
|
|
# Copyright (c) 2012 B1 Systems GmbH, Vohburg, 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.
|
|
|
|
# norootforbuild
|
|
|
|
%define sonum 1
|
|
|
|
Name: sbc
|
|
Version: 1.0
|
|
Release: 0
|
|
License: GPL-2.0+
|
|
Summary: Bluetooth Low-Complexity, Sub-Band Codec Utilities
|
|
Url: http://www.kernel.org/pub/linux/bluetooth
|
|
Group: Hardware/Mobile
|
|
Source: http://www.kernel.org/pub/linux/bluetooth/sbc-%{version}.tar.bz2
|
|
BuildRequires: libsndfile-devel pkg-config
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
AutoReqProv: on
|
|
|
|
%description
|
|
The package contains utilities for using the SBC codec.
|
|
|
|
%package -n libsbc%{sonum}
|
|
License: LGPL-2.1+
|
|
Summary: Bluetooth Low-Complexity, Sub-Band Codec Library
|
|
%description -n libsbc%{sonum}
|
|
The package contains libraries for using the SBC codec.
|
|
|
|
%package devel
|
|
Summary: Development files for libsbc%{sonum}
|
|
Group: Development/Sources
|
|
Requires: libsbc%{sonum} = %{version}
|
|
%description devel
|
|
Development files for the SBC library
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
rm %{buildroot}/%{_libdir}/libsbc.la
|
|
|
|
%clean
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
%post -n libsbc%{sonum} -p /sbin/ldconfig
|
|
|
|
%postun -n libsbc%{sonum} -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc ChangeLog README COPYING
|
|
/usr/bin/sbc*
|
|
|
|
%files -n libsbc%{sonum}
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libsbc.so.%{sonum}
|
|
%{_libdir}/libsbc.so.%{sonum}.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%dir /usr/include/sbc
|
|
/usr/include/sbc/sbc.h
|
|
%{_libdir}/pkgconfig/sbc.pc
|
|
%{_libdir}/libsbc.a
|
|
%{_libdir}/libsbc.so
|
|
|
|
%changelog
|