File opus.spec of Package opus

#global candidate rc2
%global debug_package %{nil}
 
Name:     opus
Version:  1.3.1
Release:  <RELEASE>%{?dist}
Summary:  An audio codec for use in low-delay speech and audio communication
License:  BSD
URL:      https://www.opus-codec.org/
 
Source0:  http://downloads.xiph.org/releases/%{name}/%{name}-%{version}%{?candidate:-%{candidate}}.tar.gz
 
BuildRequires: gcc gdb
#BuildRequires: doxygen
 
%description
The Opus codec is designed for interactive speech and audio transmission over 
the Internet. It is designed by the IETF Codec Working Group and incorporates 
technology from Skype's SILK codec and Xiph.Org's CELT codec.
 
%package  devel
Summary:  Development package for opus
Requires: libogg-devel
Requires: opus = %{version}-%{release}
 
%description devel
Files for development with opus.
 
%prep
%setup -q %{?candidate:-n %{name}-%{version}-%{candidate}}
 
%build
%configure --enable-custom-modes --disable-static \
           --enable-hardening --enable-ambisonics
 
%make_build
%install
%make_install
# Remove libtool archives
find %{buildroot} -type f -name "*.la" -delete
rm -rf %{buildroot}%{_datadir}/doc/opus/html
 
%check
make check %{?_smp_mflags} V=1
 
%if 0%{?fedora} >= 29 || 0%{?rhel} == 8 
%ldconfig_scriptlets
%else
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%endif

%files
%license COPYING
%{_libdir}/libopus.so.*
 
%files devel
%doc README
%{_includedir}/opus
%{_libdir}/libopus.so
%{_libdir}/pkgconfig/opus.pc
%{_datadir}/aclocal/opus.m4
#%{_datadir}/man/man3/opus_*.3.gz
 
%changelog

* Tue Oct 8 2019 Ganapathi Chidambaram <ganapathi.rj@gmail.com> - %{version}-%{release}
-  Generated by OpenSUSE OBS System
openSUSE Build Service is sponsored by