1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/xvidcore/xvidcore.spec Fri Mar 11 21:30:26 2011 +0100 1.3 @@ -0,0 +1,87 @@ 1.4 +Name: xvidcore 1.5 +Version: 1.2.1 1.6 +Release: 1%{?dist} 1.7 +Summary: MPEG-4 Simple and Advanced Simple Profile codec 1.8 + 1.9 +Group: System Environment/Libraries 1.10 +License: GPLv2+ 1.11 +URL: http://www.xvid.org/ 1.12 +Source0: http://downloads.xvid.org/downloads/xvidcore-%{version}.tar.bz2 1.13 +Patch0: xvidcore-1.2.1-noexec-stack.patch 1.14 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 1.15 + 1.16 +%ifarch %{ix86} x86_64 1.17 +BuildRequires: nasm >= 2.0 1.18 +%endif 1.19 + 1.20 +%description 1.21 +The Xvid video codec implements MPEG-4 Simple Profile and Advanced Simple 1.22 +Profile standards. It permits compressing and decompressing digital video 1.23 +in order to reduce the required bandwidth of video data for transmission 1.24 +over computer networks or efficient storage on CDs or DVDs. Due to its 1.25 +unrivalled quality Xvid has gained great popularity and is used in many 1.26 +other GPLed applications, like e.g. Transcode, MEncoder, MPlayer, Xine and 1.27 +many more. 1.28 + 1.29 +%package devel 1.30 +Summary: Development files for the Xvid video codec 1.31 +Group: Development/Libraries 1.32 +Requires: %{name} = %{version}-%{release} 1.33 + 1.34 +%description devel 1.35 +This package contains header files, static library and API 1.36 +documentation for the Xvid video codec. 1.37 + 1.38 + 1.39 +%prep 1.40 +%setup -q -n %{name} 1.41 +%patch0 -p1 -z .noexec-stack 1.42 +chmod -x examples/*.pl 1.43 +f=AUTHORS ; iconv -f iso-8859-1 -t utf-8 -o $f.utf8 $f && touch -r $f $f.utf8 && mv $f.utf8 $f 1.44 +# Yes, we want to see the build output. 1.45 +%{__perl} -pi -e 's/^\t@(?!echo\b)/\t/' build/generic/Makefile 1.46 + 1.47 + 1.48 +%build 1.49 +cd build/generic 1.50 +export CFLAGS="$RPM_OPT_FLAGS -ffast-math" 1.51 +%configure 1.52 +make %{?_smp_mflags} 1.53 +cd - 1.54 + 1.55 + 1.56 +%install 1.57 +rm -rf $RPM_BUILD_ROOT 1.58 +make -C build/generic install DESTDIR=$RPM_BUILD_ROOT 1.59 +rm $RPM_BUILD_ROOT%{_libdir}/libxvidcore.a 1.60 +cd $RPM_BUILD_ROOT%{_libdir} 1.61 +chmod 755 libxvidcore.so* 1.62 +/sbin/ldconfig -n . 1.63 +ln -s libxvidcore.so.? libxvidcore.so 1.64 +cd - 1.65 + 1.66 + 1.67 +%clean 1.68 +rm -rf $RPM_BUILD_ROOT 1.69 + 1.70 + 1.71 +%post -p /sbin/ldconfig 1.72 + 1.73 +%postun -p /sbin/ldconfig 1.74 + 1.75 + 1.76 +%files 1.77 +%defattr(-,root,root,-) 1.78 +%doc LICENSE README AUTHORS ChangeLog 1.79 +%{_libdir}/libxvidcore.so.* 1.80 + 1.81 +%files devel 1.82 +%defattr(-,root,root,-) 1.83 +%doc CodingStyle TODO examples/ 1.84 +%{_includedir}/xvid.h 1.85 +%{_libdir}/libxvidcore.so 1.86 + 1.87 + 1.88 +%changelog 1.89 +* Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 1.2.1-1 1.90 +- Build for MeeGo 1.1