diff --git a/.gitignore b/.gitignore index e69de29..6c3b304 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/opusfile-0.2.tar.gz diff --git a/opusfile.spec b/opusfile.spec new file mode 100644 index 0000000..99b6ddb --- /dev/null +++ b/opusfile.spec @@ -0,0 +1,69 @@ +Name: opusfile +Version: 0.2 +Release: 1%{?dist} +Summary: A high-level API for decoding and seeking within .opus files + +Group: System Environment/Libraries +License: BSD +URL: http://www.opus-codec.org/ +Source0: http://downloads.xiph.org/releases/opus/%{name}-%{version}.tar.gz + +BuildRequires: libogg-devel +BuildRequires: openssl-devel +BuildRequires: opus-devel + +%description +libopusfile provides a high-level API for decoding and seeking +within .opus files. It includes: +* Support for all files with at least one Opus stream (including +multichannel files or Ogg files where Opus is muxed with something else). +* Full support, including seeking, for chained files. +* A simple stereo downmixing API (allowing chained files to be +decoded with a single output format, even if the channel count changes). +* Support for reading from a file, memory buffer, or over HTTP(S) +(including seeking). +* Support for both random access and streaming data sources. + +%package devel +Summary: Development package for %{name} +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: pkgconfig + +%description devel +Files for development with %{name}. + +%prep +%setup -q + +%build +%configure --disable-static + +make %{?_smp_mflags} V=1 + +%install +make install DESTDIR=%{buildroot} INSTALL='install -p' + +#Remove libtool archives. +find %{buildroot} -name '*.la' -exec rm -f {} ';' + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%doc COPYING AUTHORS +%{_libdir}/libopusfile.so.* + +%files devel +%doc %{_docdir}/%{name} +%{_includedir}/opus/opusfile* +%{_libdir}/pkgconfig/opusfile.pc +%{_libdir}/libopusfile.so + +%changelog +* Wed Nov 14 2012 Peter Robinson 0.2-1 +- Update to 0.2 + +* Sun Nov 4 2012 Peter Robinson 0.1-1 +- Initial package diff --git a/sources b/sources index e69de29..2c01940 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +454375f51fb2f84bef9bf2fbf9535bb1 opusfile-0.2.tar.gz