[-]
[+]
|
Changed |
x264.spec
|
|
|
Added |
x264-snapshot-20080814-2245.tar.bz2
^
|
[-]
[+]
|
Added |
x264.spec.old
^
|
@@ -0,0 +1,132 @@
+# norootforbuild
+
+%define binname x264
+%define realname libx264
+%define soname 59
+%define svn 20080607
+
+Name: %{binname}
+Summary: A free h264/avc encoder - encoder binary.
+Version: 0.0svn%{svn}
+Release: 1
+License: GPL
+Group: Productivity/Multimedia/Video
+Url: http://developers.videolan.org/x264.html
+
+Source: ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-%{svn}-2245.tar.bz2
+
+BuildRoot: %{_tmppath}/build-root-%{name}
+
+Requires: %{realname}-%{soname}
+
+%ifarch x86_64
+BuildRequires: nasm yasm
+%else
+BuildRequires: nasm
+%endif
+
+%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}-devel
+Summary: Libraries and include file for the x264 encoder.
+Group: Development/Libraries/C and C++
+Requires: %{realname}-%{soname} = %{version}-%{release}
+Requires: %{buildrequires}
+
+%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.
+
+%prep
+%setup -q -n x264-snapshot-%{svn}-2245
+
+
+%build
+%{configure} --enable-shared --enable-pic
+#TODO: to compile with --enable-mp4-output gpac is needed, this should be added in the future...
+%{__make} %{?jobs:-j%{jobs}}
+
+
+%install
+%makeinstall
+
+rm $RPM_BUILD_ROOT/%{_libdir}/libx264.so
+cd $RPM_BUILD_ROOT/%{_libdir}
+ln -s libx264.so.%{soname} libx264.so
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%files
+%defattr(755,root,root)
+%doc doc/*.txt
+%{_bindir}/x264
+
+%files -n %{realname}-%{soname}
+%defattr(755,root,root)
+%{_libdir}/libx264.so.%{soname}
+
+
+%files -n %{realname}-devel
+%defattr(755,root,root)
+%{_libdir}/pkgconfig/x264.pc
+%{_includedir}/x264.h
+%{_libdir}/libx264.so
+%{_libdir}/libx264.a
+
+
+%changelog
+* Sun Sep 30 2007 Carsten Schoene <cs@linux-administrator.com>
+- import for SLE_10 build
+
|