8 Summary: H264 encoder library
9 Summary(pl.UTF-8): Biblioteka kodująca H264
12 Release: 1.%{snap}_%{snaph}.%{rel}
15 # still no releases, use snapshots
16 Source0: ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-%{snap}-%{snaph}.tar.bz2
17 # Source0-md5: 6463c144cd10c26d721fac212a747910
18 Patch0: %{name}-alpha.patch
19 Patch1: altivec-no-vand.patch
20 Patch2: %{name}-gpac.patch
21 Patch3: %{name}-ffmpeg.patch
22 URL: http://www.videolan.org/developers/x264.html
23 BuildRequires: pkgconfig
24 %ifarch %{ix86} %{x8664}
25 BuildRequires: yasm >= 0.6.0
27 %if %{without bootstrap}
28 # which version exactly???
29 # for full x264 CLI utility functionality it wants:
30 # libswscale >= 0.9.0 (in pkgconfig file)
31 # libav{format,codec,util} from ffmpeg >= r21854
32 BuildRequires: ffmpeg-devel >= 0.7.1
33 BuildRequires: ffmpegsource-devel >= 2.15
35 BuildRequires: gpac-devel >= 0.4.5-2
36 Requires: gpac >= 0.4.5-2
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 # encoder/macroblock.c breaks strict-aliasing rules
41 %define specflags -fno-strict-aliasing
44 libx264 library for encoding H264 video format.
46 %description -l pl.UTF-8
47 Biblioteka libx264 do kodowania w formacie obrazu H264.
50 Summary: Header files for x264 library
51 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki x264
52 Group: Development/Libraries
53 Requires: %{name} = %{version}-%{release}
56 Header files for x264 library.
58 %description devel -l pl.UTF-8
59 Pliki nagłówkowe biblioteki x264.
62 Summary: Static x264 library
63 Summary(pl.UTF-8): Statyczna biblioteka x264
64 Group: Development/Libraries
65 Requires: %{name}-devel = %{version}-%{release}
70 %description static -l pl.UTF-8
71 Statyczna biblioteka x264.
74 Summary: x264 CLI decoder
75 Summary(pl.UTF-8): Dekoder x264 działający z linii poleceń
76 Group: Applications/Multimedia
77 Requires: %{name} = %{version}-%{release}
82 %description -n x264 -l pl.UTF-8
83 Dekoder x264 działający z linii poleceń.
86 %setup -q -n x264-snapshot-%{snap}-%{snaph}
88 %if "%{pld_release}" == "ac"
98 --exec-prefix=%{_prefix} \
100 --includedir=%{_includedir} \
101 --libdir=%{_libdir} \
102 --extra-cflags="%{rpmcflags}" \
110 rm -rf $RPM_BUILD_ROOT
113 DESTDIR=$RPM_BUILD_ROOT
116 rm -rf $RPM_BUILD_ROOT
118 %post -p /sbin/ldconfig
119 %postun -p /sbin/ldconfig
122 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libx264.so.115
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_libdir}/libx264.so
129 %{_includedir}/x264.h
130 %{_includedir}/x264_config.h
131 %{_pkgconfigdir}/x264.pc
134 %defattr(644,root,root,755)
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_bindir}/x264