Search
j0ke.net Open Build Service
>
Projects
>
multimedia
>
x264
> x264.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File x264.spec of Package x264 (Revision 12)
Currently displaying revision
12
,
show latest
# norootforbuild #!BuildIgnore: post-build-checks %define binname x264 %define realname libx264 %define soname 67 %define svn 20090627 %define sonamecompa 66 %define svncompa 20090228 %define sonamecompb 65 %define svncompb 20090119 %define sonamecompc 64 %define svncompc 20081001 Name: %{binname} Summary: A free h264/avc encoder - encoder binary Version: 0.0svn%{svn} Release: 15 License: GNU General Public License (GPL) Group: Productivity/Multimedia/Video URL: http://developers.videolan.org/x264.html Source0: ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-%{svn}-2245.tar.bz2 Source1: ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-%{svncompa}-2245.tar.bz2 Source2: ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-%{svncompb}-2245.tar.bz2 Source3: ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-%{svncompc}-2245.tar.bz2 BuildRoot: %{_tmppath}/build-root-%{name} Requires: %{realname}-%{soname} = %{version}-%{release} BuildRequires: nasm BuildRequires: yasm >= 0.7.1 %description x264 is a free library for encoding next-generation H264/AVC video streams. The code is written from scratch by Laurent Aimar, Loren Merritt, Eric Petit (OS X), Min Chen (vfw/asm), Justin Clay (vfw), Mans Rullgard, Radek Czyz, Christian Heine (asm), Alex Izvorski (asm), and Alex Wright. It is released under the terms of the GPL license. This package contains a shared library and a commandline tool for encoding H264 streams. This library is needed for mplayer/mencoder for H264 encoding support. Encoder features: - CAVLC/CABAC - Multi-references - Intra: all macroblock types (16x16, 8x8, and 4x4 with all predictions) - Inter P: all partitions (from 16x16 down to 4x4) - Inter B: partitions from 16x16 down to 8x8 (including skip/direct) - Ratecontrol: constant quantizer, single or multipass ABR, optional VBV - Scene cut detection - Adaptive B-frame placement - B-frames as references / arbitrary frame order - 8x8 and 4x4 adaptive spatial transform - Lossless mode - Custom quantization matrices - Parallel encoding of multiple slices (currently disabled) Be aware that the x264 library is still in early development stage. The command line tool x264 can handle only raw YUV 4:2:0 streams at the moment so please use mencoder or another tool that supports x264 library for all other file types. %package -n %{realname}-%{soname} Summary: A free h264/avc encoder - encoder binary Group: Productivity/Multimedia/Video %description -n %{realname}-%{soname} x264 is a free library for encoding next-generation H264/AVC video streams. The code is written from scratch by Laurent Aimar, Loren Merritt, Eric Petit (OS X), Min Chen (vfw/asm), Justin Clay (vfw), Mans Rullgard, Radek Czyz, Christian Heine (asm), Alex Izvorski (asm), and Alex Wright. It is released under the terms of the GPL license. This package contains a static library and a header needed for the development with libx264. This library is needed to build mplayer/mencoder with H264 encoding support. %package -n %{realname}-%{sonamecompa} Summary: A free h264/avc encoder - encoder binary Group: Productivity/Multimedia/Video %description -n %{realname}-%{sonamecompa} x264 is a free library for encoding next-generation H264/AVC video streams. The code is written from scratch by Laurent Aimar, Loren Merritt, Eric Petit (OS X), Min Chen (vfw/asm), Justin Clay (vfw), Mans Rullgard, Radek Czyz, Christian Heine (asm), Alex Izvorski (asm), and Alex Wright. It is released under the terms of the GPL license. This package contains a static library and a header needed for the development with libx264. This library is needed to build mplayer/mencoder with H264 encoding support. %package -n %{realname}-%{sonamecompb} Summary: A free h264/avc encoder - encoder binary Group: Productivity/Multimedia/Video %description -n %{realname}-%{sonamecompb} x264 is a free library for encoding next-generation H264/AVC video streams. The code is written from scratch by Laurent Aimar, Loren Merritt, Eric Petit (OS X), Min Chen (vfw/asm), Justin Clay (vfw), Mans Rullgard, Radek Czyz, Christian Heine (asm), Alex Izvorski (asm), and Alex Wright. It is released under the terms of the GPL license. This package contains a static library and a header needed for the development with libx264. This library is needed to build mplayer/mencoder with H264 encoding support. %package -n %{realname}-%{sonamecompc} Summary: A free h264/avc encoder - encoder binary Group: Productivity/Multimedia/Video %description -n %{realname}-%{sonamecompc} x264 is a free library for encoding next-generation H264/AVC video streams. The code is written from scratch by Laurent Aimar, Loren Merritt, Eric Petit (OS X), Min Chen (vfw/asm), Justin Clay (vfw), Mans Rullgard, Radek Czyz, Christian Heine (asm), Alex Izvorski (asm), and Alex Wright. It is released under the terms of the GPL license. This package contains a static library and a header needed for the development with libx264. This library is needed to build mplayer/mencoder with H264 encoding support. %package -n %{realname}-devel Summary: Libraries and include file for the x264 encoder Group: Development/Libraries/C and C++ Requires: %{realname}-%{soname} = %{version}-%{release} Requires: %{buildrequires} Obsoletes: x264-devel < %{version}-%{release} Provides: x264-devel = %{version}-%{release} %description -n %{realname}-devel x264 is a free library for encoding next-generation H264/AVC video streams. The code is written from scratch by Laurent Aimar, Loren Merritt, Eric Petit (OS X), Min Chen (vfw/asm), Justin Clay (vfw), Mans Rullgard, Radek Czyz, Christian Heine (asm), Alex Izvorski (asm), and Alex Wright. It is released under the terms of the GPL license. This package contains a static library and a header needed for the development with libx264. This library is needed to build mplayer/mencoder with H264 encoding support. %debug_package %prep %setup -q -n "x264-snapshot-%{svn}-2245" -b 1 -b 2 -b 3 %build %ifarch i586 #no mmx or sse on the i586 package, therefore use i686 package, should run on every i586 cpu %configure --enable-shared --enable-pic --disable-asm %else %configure --enable-shared \ %if 0%{?sles_version} == 10 --disable-asm \ %endif --enable-pic %endif %__make %{?jobs:-j%{jobs}} cd ../x264-snapshot-%{svncompa}-2245 %ifarch i586 #no mmx or sse on the i586 package, therefore use i686 package, should run on every i586 cpu %configure --enable-shared --enable-pic --disable-asm %else %configure --enable-shared \ %if 0%{?sles_version} == 10 --disable-asm \ %endif --enable-pic %endif %__make %{?jobs:-j%{jobs}} cd ../x264-snapshot-%{svncompb}-2245 %ifarch i586 #no mmx or sse on the i586 package, therefore use i686 package, should run on every i586 cpu %configure --enable-shared --enable-pic --disable-asm %else %configure --enable-shared \ %if 0%{?sles_version} == 10 --disable-asm \ %endif --enable-pic %endif %__make %{?jobs:-j%{jobs}} cd ../x264-snapshot-%{svncompc}-2245 %ifarch i586 #no mmx or sse on the i586 package, therefore use i686 package, should run on every i586 cpu %configure --enable-shared --enable-pic --disable-asm %else %configure --enable-shared \ %if 0%{?sles_version} == 10 --disable-asm \ %endif --enable-pic %endif %__make %{?jobs:-j%{jobs}} %install %makeinstall %__rm -f "%{buildroot}/%{_libdir}/libx264.so" %__ln_s libx264.so.%{soname} "%{buildroot}%{_libdir}/libx264.so" cd ../x264-snapshot-%{svncompa}-2245 %{__install} -m 644 libx264.so.%{sonamecompa} %{buildroot}%{_libdir}/ cd ../x264-snapshot-%{svncompb}-2245 %{__install} -m 644 libx264.so.%{sonamecompb} %{buildroot}%{_libdir}/ cd ../x264-snapshot-%{svncompc}-2245 %{__install} -m 644 libx264.so.%{sonamecompc} %{buildroot}%{_libdir}/ %clean %__rm -rf "%{buildroot}" %post -n %{realname}-%{soname} -p /sbin/ldconfig %postun -n %{realname}-%{soname} -p /sbin/ldconfig %post -n %{realname}-%{sonamecompa} -p /sbin/ldconfig %postun -n %{realname}-%{sonamecompa} -p /sbin/ldconfig %post -n %{realname}-%{sonamecompb} -p /sbin/ldconfig %postun -n %{realname}-%{sonamecompb} -p /sbin/ldconfig %post -n %{realname}-%{sonamecompc} -p /sbin/ldconfig %postun -n %{realname}-%{sonamecompc} -p /sbin/ldconfig %files %defattr(-,root,root) %doc doc/*.txt %attr(0755,root,root) %{_bindir}/x264 %files -n %{realname}-%{soname} %defattr(0644,root,root) %attr(0755,root,root) %{_libdir}/libx264.so.%{soname} %files -n %{realname}-%{sonamecompa} %defattr(0644,root,root) %attr(0755,root,root) %{_libdir}/libx264.so.%{sonamecompa} %files -n %{realname}-%{sonamecompb} %defattr(0644,root,root) %attr(0755,root,root) %{_libdir}/libx264.so.%{sonamecompb} %files -n %{realname}-%{sonamecompc} %defattr(0644,root,root) %attr(0755,root,root) %{_libdir}/libx264.so.%{sonamecompc} %files -n %{realname}-devel %defattr(0644,root,root) %{_libdir}/pkgconfig/x264.pc %{_includedir}/x264.h %{_libdir}/libx264.so %{_libdir}/libx264.a %changelog * Mon Jun 29 2009 Carsten Schoene <cs@linux-administrator.com> - 20090627-15 - import for SLE_11 build