2012-05-31 16:34:09 +02:00
|
|
|
#
|
|
|
|
# spec file for package opus
|
|
|
|
#
|
2017-01-16 22:32:59 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-05-31 16:34:09 +02:00
|
|
|
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2016-01-27 08:38:00 +01:00
|
|
|
%define soname 0
|
2012-05-31 16:34:09 +02:00
|
|
|
Name: opus
|
2017-02-27 18:01:58 +01:00
|
|
|
Version: 1.1.4
|
2012-05-31 16:34:09 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Opus Audio Codec Library
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: System/Libraries
|
2016-01-27 08:38:00 +01:00
|
|
|
Url: http://opus-codec.org/
|
2013-08-05 11:20:58 +02:00
|
|
|
Source: http://downloads.xiph.org/releases/opus/%{name}-%{version}.tar.gz
|
2012-05-31 16:34:09 +02:00
|
|
|
Source99: baselibs.conf
|
2016-01-27 08:38:00 +01:00
|
|
|
BuildRequires: pkg-config
|
2012-05-31 16:34:09 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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
|
2016-01-27 08:38:00 +01:00
|
|
|
technology from Skype's SILK codec and Xiph.Org's CELT codec.
|
2012-05-31 16:34:09 +02:00
|
|
|
|
|
|
|
%package -n libopus%{soname}
|
|
|
|
Summary: Opus Audio Codec Library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libopus%{soname}
|
|
|
|
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
|
2016-01-27 08:38:00 +01:00
|
|
|
technology from Skype's SILK codec and Xiph.Org's CELT codec.
|
2012-05-31 16:34:09 +02:00
|
|
|
|
|
|
|
%package -n libopus-devel
|
|
|
|
Summary: Opus Audio Codec Library Development Environment
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libopus%{soname} = %{version}
|
|
|
|
|
|
|
|
%description -n libopus-devel
|
|
|
|
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
|
2016-01-27 08:38:00 +01:00
|
|
|
technology from Skype's SILK codec and Xiph.Org's CELT codec.
|
2012-05-31 16:34:09 +02:00
|
|
|
|
|
|
|
%package -n libopus-devel-static
|
|
|
|
Summary: Opus Audio Codec Library Static Library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libopus-devel = %{version}
|
|
|
|
|
|
|
|
%description -n libopus-devel-static
|
|
|
|
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
|
2016-01-27 08:38:00 +01:00
|
|
|
technology from Skype's SILK codec and Xiph.Org's CELT codec.
|
2012-09-23 23:05:15 +02:00
|
|
|
|
2012-05-31 16:34:09 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
2016-08-13 18:10:30 +02:00
|
|
|
%if 0%{?suse_version} <= 1110
|
|
|
|
--disable-intrinsics \
|
|
|
|
%endif
|
2016-01-27 08:38:00 +01:00
|
|
|
--disable-silent-rules \
|
|
|
|
--disable-doc \
|
2016-01-27 10:32:51 +01:00
|
|
|
--enable-custom-modes
|
2016-01-27 08:38:00 +01:00
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
2012-09-23 23:05:15 +02:00
|
|
|
|
2016-01-27 08:38:00 +01:00
|
|
|
%check
|
|
|
|
make %{?_smp_mflags} check
|
2012-05-31 16:34:09 +02:00
|
|
|
|
|
|
|
%install
|
2016-01-27 08:38:00 +01:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
2012-05-31 16:34:09 +02:00
|
|
|
|
2016-01-27 08:38:00 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2012-05-31 16:34:09 +02:00
|
|
|
|
|
|
|
%post -n libopus%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libopus%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libopus%{soname}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING README
|
|
|
|
%{_libdir}/libopus.so.%{soname}
|
|
|
|
%{_libdir}/libopus.so.%{soname}.*
|
|
|
|
|
|
|
|
%files -n libopus-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libopus.so
|
|
|
|
%{_includedir}/opus
|
|
|
|
%{_libdir}/pkgconfig/opus.pc
|
2012-09-23 23:05:15 +02:00
|
|
|
%{_datadir}/aclocal/opus.m4
|
2012-05-31 16:34:09 +02:00
|
|
|
|
|
|
|
%files -n libopus-devel-static
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libopus.a
|
|
|
|
|
|
|
|
%changelog
|