diff --git a/configure.ac b/configure.ac index fe16c102f4e4e1b7bd8de3885781c36829e1b702..1d858808a9492a6a56b9f009d2da95333707cf8a 100644 --- a/configure.ac +++ b/configure.ac @@ -164,7 +164,8 @@ fi AC_SUBST(SIZE16) AC_SUBST(SIZE32) -AC_OUTPUT([Makefile libcelt/Makefile tests/Makefile celt.pc tools/Makefile]) +AC_OUTPUT([Makefile libcelt/Makefile tests/Makefile + celt.pc tools/Makefile libcelt.spec ]) if test "x$tools" = "x"; then echo "**IMPORTANT**" diff --git a/libcelt.spec.in b/libcelt.spec.in new file mode 100644 index 0000000000000000000000000000000000000000..64cb0e33da0140499899568134f2469285fd08ad --- /dev/null +++ b/libcelt.spec.in @@ -0,0 +1,84 @@ +Summary: The CELT Low-Latency Audio Compression Codec. +Name: libcelt +Version: @CELT_VERSION@ +Release: 0%{?dist} +Epoch: 0 +Group: System Environment/Libraries +License: BSD +URL: http://www.xiph.org/ +Source: http://downloads.xiph.org/releases/celt/celt-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: libogg-devel >= 2:1.1 +Requires: pkg-config + +%description +CELT is a fully open, non-proprietary, patent- and royalty-free, +low-latency compressed audio format for voice and music. + +The libcelt package contains runtime libraries for use in programs +that support Ogg CELT. + +%package devel +Summary: Files for CELT application development. +Group: Development/Libraries +Requires: libogg-devel >= 2:1.1 +Requires: libcelt = %{epoch}:%{version}-%{release} + +%description devel +The libcelt-devel package contains the header files and documentation +needed to develop applications with Ogg CELT. + +%package utils +Summary: CELT codec utilities. +Group: Applications/Multimedia +Requires: libcelt = %{epoch}:%{version}-%{release} + +%description utils +Basic utilities for encoding, decoding and manipulating Ogg CELT streams. + +%prep + +%setup -q -n celt-%{version} + +%build +%configure --with-ogg-libraries=%{_libdir} +make + +%check +make check + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install + +# remove unpackaged files from the buildroot +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la +rm -f $RPM_BUILD_ROOT%{_libdir}/*.a + + +%files +%defattr(-,root,root) +%doc AUTHORS COPYING README +%{_libdir}/libcelt.so.* + +%files devel +%defattr(-,root,root) +%{_includedir}/celt +%{_libdir}/libcelt.so +%{_libdir}/pkgconfig/*.pc + +%files utils +%defattr(-,root,root) +%{_bindir}/celtenc +%{_bindir}/celtdec + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%changelog +* Mon Dec 22 2008 Monty Montgomery <monty@xiph.org> 0.5.1-0 +- initial spec file created