celt051/celt051.spec

93 lines
2.8 KiB
RPMSpec

Name: celt051
Version: 0.5.1.3
Release: 2mamba
Summary: The CELT (Constrained Energy Lapped Transform) ultra-low delay audio codec
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.celt-codec.org/
Source: http://downloads.xiph.org/releases/celt/celt-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libogg-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
The CELT codec is a compression algorithm for audio. Like MP3, Vorbis, and AAC it is suitable for transmitting music with high quality. Unlike these formats CELT imposes very little delay on the signal, even less than is typical for speech centric formats like Speex, GSM, or G.729.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
The CELT (Constrained Energy Lapped Transform) ultra-low delay audio codec.
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Libraries and headers for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
The CELT (Constrained Energy Lapped Transform) ultra-low delay audio codec.
This package contains libraries and header files needed for development.
%package -n lib%{name}-static
Group: Development/Libraries
Summary: Static libraries for %{name}
Requires: lib%{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-static
The CELT (Constrained Energy Lapped Transform) ultra-low delay audio codec.
This package contains static libraries needed for development.
%prep
%setup -q -n celt-%{version}
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/celtdec051
%{_bindir}/celtenc051
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libcelt051.so.*
%doc COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/celt051
%{_includedir}/celt051/celt*.h
%{_libdir}/libcelt051.so
%{_libdir}/pkgconfig/celt051.pc
%doc README TODO
%files -n lib%{name}-static
%defattr(-,root,root)
%{_libdir}/libcelt*.*a
%changelog
* Mon May 12 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.1.3-2mamba
- libcelt-static: fix requirement for libcelt-devel
* Sun May 11 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.1.3-1mamba
- legacy package required by Spice server