michael@0: Name: xvidcore michael@0: Version: 1.2.1 michael@0: Release: 1%{?dist} michael@0: Summary: MPEG-4 Simple and Advanced Simple Profile codec michael@0: michael@0: Group: System Environment/Libraries michael@0: License: GPLv2+ michael@0: URL: http://www.xvid.org/ michael@0: Source0: http://downloads.xvid.org/downloads/xvidcore-%{version}.tar.bz2 michael@0: Patch0: xvidcore-1.2.1-noexec-stack.patch michael@0: BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) michael@0: michael@0: %ifarch %{ix86} x86_64 michael@0: BuildRequires: nasm >= 2.0 michael@0: %endif michael@0: michael@0: %description michael@0: The Xvid video codec implements MPEG-4 Simple Profile and Advanced Simple michael@0: Profile standards. It permits compressing and decompressing digital video michael@0: in order to reduce the required bandwidth of video data for transmission michael@0: over computer networks or efficient storage on CDs or DVDs. Due to its michael@0: unrivalled quality Xvid has gained great popularity and is used in many michael@0: other GPLed applications, like e.g. Transcode, MEncoder, MPlayer, Xine and michael@0: many more. michael@0: michael@0: %package devel michael@0: Summary: Development files for the Xvid video codec michael@0: Group: Development/Libraries michael@0: Requires: %{name} = %{version}-%{release} michael@0: michael@0: %description devel michael@0: This package contains header files, static library and API michael@0: documentation for the Xvid video codec. michael@0: michael@0: michael@0: %prep michael@0: %setup -q -n %{name} michael@0: %patch0 -p1 -z .noexec-stack michael@0: chmod -x examples/*.pl michael@0: f=AUTHORS ; iconv -f iso-8859-1 -t utf-8 -o $f.utf8 $f && touch -r $f $f.utf8 && mv $f.utf8 $f michael@0: # Yes, we want to see the build output. michael@0: %{__perl} -pi -e 's/^\t@(?!echo\b)/\t/' build/generic/Makefile michael@0: michael@0: michael@0: %build michael@0: cd build/generic michael@0: export CFLAGS="$RPM_OPT_FLAGS -ffast-math" michael@0: %configure michael@0: make %{?_smp_mflags} michael@0: cd - michael@0: michael@0: michael@0: %install michael@0: rm -rf $RPM_BUILD_ROOT michael@0: make -C build/generic install DESTDIR=$RPM_BUILD_ROOT michael@0: rm $RPM_BUILD_ROOT%{_libdir}/libxvidcore.a michael@0: cd $RPM_BUILD_ROOT%{_libdir} michael@0: chmod 755 libxvidcore.so* michael@0: /sbin/ldconfig -n . michael@0: ln -s libxvidcore.so.? libxvidcore.so michael@0: cd - michael@0: michael@0: michael@0: %clean michael@0: rm -rf $RPM_BUILD_ROOT michael@0: michael@0: michael@0: %post -p /sbin/ldconfig michael@0: michael@0: %postun -p /sbin/ldconfig michael@0: michael@0: michael@0: %files michael@0: %defattr(-,root,root,-) michael@0: %doc LICENSE README AUTHORS ChangeLog michael@0: %{_libdir}/libxvidcore.so.* michael@0: michael@0: %files devel michael@0: %defattr(-,root,root,-) michael@0: %doc CodingStyle TODO examples/ michael@0: %{_includedir}/xvid.h michael@0: %{_libdir}/libxvidcore.so michael@0: michael@0: michael@0: %changelog michael@0: * Mon Nov 1 2010 Kozinov Ivan - 1.2.1-1 michael@0: - Build for MeeGo 1.1