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: 7579aff8166a974a1b293cd18b9ead92
18 Patch0: %{name}-alpha.patch
19 Patch1: altivec-no-vand.patch
20 URL: http://www.videolan.org/developers/x264.html
21 BuildRequires: pkgconfig
22 %ifarch %{ix86} %{x8664}
23 BuildRequires: yasm >= 0.6.0
25 %if %{without bootstrap}
26 # which version exactly???
27 # for full x264 CLI utility functionality it wants:
28 # libswscale >= 0.9.0 (in pkgconfig file)
29 # libav{format,codec,util} from ffmpeg >= r21854
30 BuildRequires: ffmpeg-devel >= 0.6.0
31 BuildRequires: ffmpegsource-devel >= 2.14
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 # encoder/macroblock.c breaks strict-aliasing rules
37 %define specflags -fno-strict-aliasing
40 libx264 library for encoding H264 video format.
42 %description -l pl.UTF-8
43 Biblioteka libx264 do kodowania w formacie obrazu H264.
46 Summary: Header files for x264 library
47 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki x264
48 Group: Development/Libraries
49 Requires: %{name} = %{version}-%{release}
52 Header files for x264 library.
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe biblioteki x264.
58 Summary: Static x264 library
59 Summary(pl.UTF-8): Statyczna biblioteka x264
60 Group: Development/Libraries
61 Requires: %{name}-devel = %{version}-%{release}
66 %description static -l pl.UTF-8
67 Statyczna biblioteka x264.
70 Summary: x264 CLI decoder
71 Summary(pl.UTF-8): Dekoder x264 działający z linii poleceń
72 Group: Applications/Multimedia
73 Requires: %{name} = %{version}-%{release}
78 %description -n x264 -l pl.UTF-8
79 Dekoder x264 działający z linii poleceń.
82 %setup -q -n x264-snapshot-%{snap}-%{snaph}
84 %if "%{pld_release}" == "ac"
92 --exec-prefix=%{_prefix} \
94 --includedir=%{_includedir} \
96 --extra-cflags="%{rpmcflags}" \
103 rm -rf $RPM_BUILD_ROOT
106 DESTDIR=$RPM_BUILD_ROOT
109 rm -rf $RPM_BUILD_ROOT
111 %post -p /sbin/ldconfig
112 %postun -p /sbin/ldconfig
115 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/libx264.so.114
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_libdir}/libx264.so
122 %{_includedir}/x264.h
123 %{_includedir}/x264_config.h
124 %{_pkgconfigdir}/x264.pc
127 %defattr(644,root,root,755)
131 %defattr(644,root,root,755)
132 %attr(755,root,root) %{_bindir}/x264