%define name libtheora %define version 1.0 %define pre alpha5 %define fversion %version%pre %define rel 0.%pre.1 %define release %mkrel %rel %define libname %mklibname theora 0 #fixed2 %{?!mkrel:%define mkrel(c:) %{-c: 0.%{-c*}.}%{!?_with_unstable:%(perl -e '$_="%{1}";m/(.\*\\D\+)?(\\d+)$/;$rel=${2}-1;re;print "$1$rel";').%{?subrel:%subrel}%{!?subrel:1}.%{?distversion:%distversion}%{?!distversion:%(echo $[%{mdkversion}/10])}}%{?_with_unstable:%{1}}%{?distsuffix:%distsuffix}%{?!distsuffix:mdk}} Summary: Theora video compression codec Name: %{name} Version: %{version} Release: %{release} Source0: http://www.theora.org/files/%{name}-%{fversion}.tar.bz2 Patch0: libtheora-1.0alpha5-pic.patch.bz2 Patch1: libtheora-1.0alpha3-lib64.patch.bz2 URL: http://www.theora.org/ License: BSD Group: Video BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: automake1.7 >= 1.7.9 BuildRequires: autoconf2.5 >= 2.54 BuildRequires: libvorbis-devel >= 1.0.1 BuildRequires: libSDL-devel %description Ogg Theora is a fully open, non-proprietary, patent-and-royalty-free, general-purpose compressed video format. %package -n %{libname} Summary: Theora video compression codec Group: System/Libraries %description -n %{libname} Ogg Theora is a fully open, non-proprietary, patent-and-royalty-free, general-purpose compressed video format. %package -n %{libname}-devel Summary: Headers for developing programs that will use %{name} Group: Development/C Requires: libogg-devel >= 1.0.1 Requires: %libname = %version Provides: %name-devel = %version-%release Obsoletes: %name-devel %description -n %libname-devel This package contains the headers that programmers will need to develop applications which will use %{name}. %prep %setup -q -n %name-%fversion %patch0 -p1 -b .pic %patch1 -p1 -b .lib64 aclocal-1.7 -I m4 autoconf automake-1.7 -a %build %configure2_5x %make %install rm -rf $RPM_BUILD_ROOT installed-docs %makeinstall_std docdir=%_datadir/doc/libtheora mv %buildroot%_datadir/doc/libtheora installed-docs rm -f installed-docs/doxygen-build.stamp %clean rm -rf $RPM_BUILD_ROOT %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files -n %libname %defattr(-,root,root) %_libdir/libtheora*.so.* %doc README COPYING %files -n %libname-devel %defattr(-,root,root) %doc installed-docs/* %_includedir/theora %_libdir/libtheora*a %_libdir/libtheora*so %_libdir/pkgconfig/theora.pc %changelog * Wed Sep 7 2005 Götz Waschk <waschk@mandriva.org> 1.0-0.alpha5.1mdk - rediff patch 0 - new version * Thu May 12 2005 Oden Eriksson <oeriksson@mandriva.com> 1.0-0.alpha4.2mdk - rebuild * Mon Apr 25 2005 Götz Waschk <waschk@mandriva.org> 1.0-0.alpha4.1mdk - mkrel - libification - rediff patch 0 - new version * Wed Sep 29 2004 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.0-0.alpha3.3mdk - lib64 fixes - build static library with PIC as it can be built into a DSO * Wed Apr 21 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.alpha3.2mdk - fix buildrequires - fix URL * Fri Apr 2 2004 Götz Waschk <waschk@linux-mandrake.com> 1.0-0.alpha3.1mdk - initial package