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: 586e5a6e49bef5b026702c327b1edda2
18 Patch0: %{name}-alpha.patch
19 Patch1: altivec-no-vand.patch
20 Patch2: %{name}-gpac.patch
21 URL: http://www.videolan.org/developers/x264.html
22 BuildRequires: pkgconfig
23 %ifarch %{ix86} %{x8664}
24 BuildRequires: yasm >= 0.6.0
26 %if %{without bootstrap}
27 # which version exactly???
28 # for full x264 CLI utility functionality it wants:
29 # libswscale >= 0.9.0 (in pkgconfig file)
30 # libav{format,codec,util} from ffmpeg >= r21854
31 BuildRequires: ffmpeg-devel >= 0.7.1
32 BuildRequires: ffmpegsource-devel >= 2.16
34 BuildRequires: gpac-devel >= 0.4.5-2
35 Requires: gpac >= 0.4.5-2
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 # encoder/macroblock.c breaks strict-aliasing rules
40 %define specflags -fno-strict-aliasing
43 libx264 library for encoding H264 video format.
45 %description -l pl.UTF-8
46 Biblioteka libx264 do kodowania w formacie obrazu H264.
49 Summary: Header files for x264 library
50 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki x264
51 Group: Development/Libraries
52 Requires: %{name} = %{version}-%{release}
55 Header files for x264 library.
57 %description devel -l pl.UTF-8
58 Pliki nagłówkowe biblioteki x264.
61 Summary: Static x264 library
62 Summary(pl.UTF-8): Statyczna biblioteka x264
63 Group: Development/Libraries
64 Requires: %{name}-devel = %{version}-%{release}
69 %description static -l pl.UTF-8
70 Statyczna biblioteka x264.
73 Summary: x264 CLI decoder
74 Summary(pl.UTF-8): Dekoder x264 działający z linii poleceń
75 Group: Applications/Multimedia
76 Requires: %{name} = %{version}-%{release}
81 %description -n x264 -l pl.UTF-8
82 Dekoder x264 działający z linii poleceń.
85 %setup -q -n x264-snapshot-%{snap}-%{snaph}
87 %if "%{pld_release}" == "ac"
96 --exec-prefix=%{_prefix} \
98 --includedir=%{_includedir} \
100 --extra-cflags="%{rpmcflags}" \
108 rm -rf $RPM_BUILD_ROOT
111 DESTDIR=$RPM_BUILD_ROOT
114 rm -rf $RPM_BUILD_ROOT
116 %post -p /sbin/ldconfig
117 %postun -p /sbin/ldconfig
120 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_libdir}/libx264.so.120
125 %defattr(644,root,root,755)
126 %attr(755,root,root) %{_libdir}/libx264.so
127 %{_includedir}/x264.h
128 %{_includedir}/x264_config.h
129 %{_pkgconfigdir}/x264.pc
132 %defattr(644,root,root,755)
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_bindir}/x264