| 1 | #global candidate rc2
|
|---|
| 2 |
|
|---|
| 3 | Name: opus
|
|---|
| 4 | Version: 1.3
|
|---|
| 5 | Release: 2%{?candidate:.%{candidate}}%{?dist}
|
|---|
| 6 | Summary: An audio codec for use in low-delay speech and audio communication
|
|---|
| 7 | License: BSD
|
|---|
| 8 | URL: https://www.opus-codec.org/
|
|---|
| 9 |
|
|---|
| 10 | #Source0: http://downloads.xiph.org/releases/%{name}/%{name}-%{version}%{?candidate:-%{candidate}}.tar.gz
|
|---|
| 11 | %scm_source github https://github.com/xiph/opus master
|
|---|
| 12 | # This is the final IETF Working Group RFC
|
|---|
| 13 | Source1: http://tools.ietf.org/rfc/rfc6716.txt
|
|---|
| 14 | Source2: http://tools.ietf.org/rfc/rfc8251.txt
|
|---|
| 15 |
|
|---|
| 16 | BuildRequires: gcc
|
|---|
| 17 | BuildRequires: doxygen
|
|---|
| 18 |
|
|---|
| 19 | %description
|
|---|
| 20 | The Opus codec is designed for interactive speech and audio transmission over
|
|---|
| 21 | the Internet. It is designed by the IETF Codec Working Group and incorporates
|
|---|
| 22 | technology from Skype's SILK codec and Xiph.Org's CELT codec.
|
|---|
| 23 |
|
|---|
| 24 | %package devel
|
|---|
| 25 | Summary: Development package for opus
|
|---|
| 26 | Requires: libogg
|
|---|
| 27 | Requires: opus = %{version}-%{release}
|
|---|
| 28 |
|
|---|
| 29 | %description devel
|
|---|
| 30 | Files for development with opus.
|
|---|
| 31 |
|
|---|
| 32 | %debug_package
|
|---|
| 33 |
|
|---|
| 34 | %prep
|
|---|
| 35 | #%setup -q %{?candidate:-n %{name}-%{version}-%{candidate}}
|
|---|
| 36 | %scm_setup
|
|---|
| 37 | cp %{SOURCE1} .
|
|---|
| 38 | cp %{SOURCE2} .
|
|---|
| 39 | autoreconf -vif
|
|---|
| 40 |
|
|---|
| 41 | %build
|
|---|
| 42 | %configure --enable-custom-modes --disable-static \
|
|---|
| 43 | --enable-hardening --enable-ambisonics
|
|---|
| 44 |
|
|---|
| 45 | make %{?_smp_mflags}
|
|---|
| 46 |
|
|---|
| 47 | %install
|
|---|
| 48 | %make_install
|
|---|
| 49 |
|
|---|
| 50 | # Remove libtool archives
|
|---|
| 51 | find %{buildroot} -type f -name "*.la" -delete
|
|---|
| 52 | rm -rf %{buildroot}%{_datadir}/doc/opus/html
|
|---|
| 53 |
|
|---|
| 54 | %check
|
|---|
| 55 | #make check %{?_smp_mflags} V=1
|
|---|
| 56 |
|
|---|
| 57 | #%ldconfig_scriptlets
|
|---|
| 58 |
|
|---|
| 59 | %files
|
|---|
| 60 | %license COPYING
|
|---|
| 61 | %{_libdir}/opus*.dll
|
|---|
| 62 |
|
|---|
| 63 | %files devel
|
|---|
| 64 | %doc README doc/html rfc6716.txt rfc8251.txt
|
|---|
| 65 | %{_includedir}/opus
|
|---|
| 66 | %{_libdir}/*.a
|
|---|
| 67 | %{_libdir}/pkgconfig/opus.pc
|
|---|
| 68 | %{_datadir}/aclocal/opus.m4
|
|---|
| 69 | %{_datadir}/man/man3/opus_*.3.gz
|
|---|
| 70 |
|
|---|
| 71 | %changelog
|
|---|
| 72 | * Mon Mar 04 2019 Elbert Pol <elbert.pol@gmail.com> - 1.3-2
|
|---|
| 73 | - Add dll to right section
|
|---|
| 74 |
|
|---|
| 75 | * Sun Mar 03 2019 Elbert Pol <elbert.pol@gmail.com> - 1.3-1
|
|---|
| 76 | - first RPM release for OS2
|
|---|