Summary: Free reimplementation of the OpenDivX video codec Name: xvidcore Version: 1.3.2 Release: 1.arte Group: System Environment/Libraries URL: http://www.xvid.org/ Source: ttp://downloads.xvid.org/downloads/xvidcore-%{version}.tar.gz License: XviD BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root #Patch0: xvidcore-1.1.0-verbose-build.patch BuildRequires: yasm Obsoletes: libxvidcore <= %{version}-%{release} Provides: libxvidcore = %{version}-%{release} %description Free reimplementation of the OpenDivX video codec. You can play OpenDivX and DivX4 videos with it, as well as encode compatible files. %package devel Summary: Static library, headers and documentation of the XviD video codec Group: Development/Libraries Requires: %{name} = %{version} Obsoletes: xvidcore-static <= 1.0.0 Obsoletes: libxvidcore-devel <= %{version}-%{release} Provides: libxvidcore-devel = %{version}-%{release} %description devel Free reimplementation of the OpenDivX video codec. You can play OpenDivX and DivX4 videos with it, as well as encode compatible files. This package contains the static library, header files and API documentation needed to build applications that will use the XviD video codec. %prep %setup -n %{name} #%patch0 -p1 -b .verbose-build %build [ "%{buildroot}" == "/" ] && exit 255 cd build/generic/ %configure --disable-static %{__make} %{?_smp_mflags} cd - %install [ "%{buildroot}" == "/" ] && exit 255 cd build/generic/ %{__make} install DESTDIR="%{buildroot}" cd - ### Make .so and .so.x symlinks to the so.x.y file, +x to get proper stripping %{__ln_s} -f libxvidcore.so.4.3 %{buildroot}%{_libdir}/libxvidcore.so.4 %{__ln_s} -f libxvidcore.so.4.3 %{buildroot}%{_libdir}/libxvidcore.so %{__chmod} +x %{buildroot}%{_libdir}/libxvidcore.so.4.3 ### Remove unwanted files from the docs %{__rm} -f doc/Makefile ### Clear executable stack flag bit (should not be needed) #execstack -c %{buildroot}%{_libdir}/*.so.*.* || : %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean [ "%{buildroot}" == "/" ] && exit 255 %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc AUTHORS ChangeLog LICENSE README TODO %{_libdir}/libxvidcore.so.* %files devel %defattr(-, root, root, 0755) %doc CodingStyle doc/* examples/ %{_includedir}/xvid.h %{_libdir}/libxvidcore.so %exclude %{_libdir}/libxvidcore.a %changelog * Wed Feb 1 2012 Rafal Rafal Frühling 1.3.2-1.arte - Bumped to current version