Name: libtheora Version: 1.0beta3 Release: 1 Summary: The Theora Video Compression Codec. Group: System Environment/Libraries License: BSD URL: http://www.theora.org/ Vendor: Xiph.org Foundation Source0: http://downloads.xiph.org/releases/theora/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: libogg-devel >= 1.1.3 BuildRequires: libvorbis-devel >= 1.2.0 BuildRequires: SDL-devel >= 1.2 Requires: libogg >= 1.1.3 Requires: libvorbis >= 1.2.0 Requires: SDL >= 1.2 %description Theora is Xiph.Org's first publicly released video codec, intended for use within the Ogg's project's Ogg multimedia streaming system. Theora is derived directly from On2's VP3 codec; Currently the two are nearly identical, varying only in encapsulating decoder tables in the bitstream headers, but Theora will make use of this extra freedom in the future to improve over what is possible with VP3. The library is available as 32-bit and 64-bit. %package devel Summary: Development tools for Theora applications. Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: libogg-devel >= 1.1.3 %description devel The libtheora-devel package contains the header files and documentation needed to develop applications with Ogg Theora. If you are compiling a 32-bit program, no special compiler options are needed. If you are compiling a 64-bit program, you have to compile and link your application with "xlc -q64" or "gcc -maix64". %prep %setup -q %build # setup environment for 32-bit and 64-bit builds export AR="ar -X32_64" export NM="nm -X32_64" # first build the 64-bit version export CC="xlc -q64" ./configure \ --prefix=%{_prefix} \ --enable-shared --enable-static make %{?_smp_mflags} cp lib/.libs/libtheora.so.0 . cp lib/.libs/libtheoradec.so.1 . cp lib/.libs/libtheoraenc.so.1 . make distclean # now build the 32-bit version export CC="xlc" ./configure \ --prefix=%{_prefix} \ --enable-shared --enable-static make %{?_smp_mflags} # add the 64-bit shared objects to the shared library containing already the # 32-bit shared objects ${AR} -q lib/.libs/libtheora.a ./libtheora.so.0 ${AR} -q lib/.libs/libtheoradec.a ./libtheoradec.so.1 ${AR} -q lib/.libs/libtheoraenc.a ./libtheoraenc.so.1 %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install ( cd ${RPM_BUILD_ROOT} for dir in include lib do mkdir -p usr/${dir} cd usr/${dir} ln -sf ../..%{_prefix}/${dir}/* . cd - done ) %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc COPYING README %{_libdir}/*.a /usr/lib/*.a %files devel %defattr(-,root,system,-) %doc doc/draft-ietf-avt-rtp-theora-00.txt doc/vp3-format.txt doc/spec/Theora.pdf %{_includedir}/* %{_libdir}/*.la %{_libdir}/pkgconfig/*.pc /usr/include/* /usr/lib/*.la %changelog * Wed May 28 2008 Michael Perzl - 1.0beta3-1 - updated to version 1.0beta3 * Thu Jan 17 2008 Michael Perzl - 1.0beta2-1 - first version for AIX V5.1 and higher