3 %bcond_with bootstrap # no ffmpeg/gpac support in x264 utility
4 %bcond_without asm # disable asm
6 %ifnarch %{ix86} %{x8664}
13 Summary: H264 encoder library
14 Summary(pl.UTF-8): Biblioteka kodująca H264
17 Release: 1.%{snap}_%{snaph}.%{rel}
20 # still no releases, use snapshots
21 Source0: ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-%{snap}-%{snaph}.tar.bz2
22 # Source0-md5: ef5f7a7eec118f4641e743a894de90c4
23 Patch0: %{name}-alpha.patch
24 Patch1: altivec-no-vand.patch
25 Patch2: %{name}-gpac.patch
27 URL: http://www.videolan.org/developers/x264.html
28 %{?with_asm:BuildRequires: nasm >= 2.13}
29 BuildRequires: pkgconfig
30 %if %{without bootstrap}
31 # which version exactly???
32 # for full x264 CLI utility functionality it wants:
33 # libswscale >= 0.9.0 (in pkgconfig file)
34 # libav{format,codec,util} from ffmpeg >= r21854
35 BuildRequires: ffmpeg-devel >= 0.7.1
36 BuildRequires: ffmpegsource-devel >= 2.16
38 BuildRequires: gpac-devel >= 0.5.0-3
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 # encoder/macroblock.c breaks strict-aliasing rules
43 %define specflags -fno-strict-aliasing
46 libx264 library for encoding H264 video format.
48 %description -l pl.UTF-8
49 Biblioteka libx264 do kodowania w formacie obrazu H264.
52 Summary: Header files for x264 library
53 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki x264
54 Group: Development/Libraries
55 Requires: %{name} = %{version}-%{release}
58 Header files for x264 library.
60 %description devel -l pl.UTF-8
61 Pliki nagłówkowe biblioteki x264.
64 Summary: Static x264 library
65 Summary(pl.UTF-8): Statyczna biblioteka x264
66 Group: Development/Libraries
67 Requires: %{name}-devel = %{version}-%{release}
72 %description static -l pl.UTF-8
73 Statyczna biblioteka x264.
76 Summary: x264 CLI decoder
77 Summary(pl.UTF-8): Dekoder x264 działający z linii poleceń
78 Group: Applications/Multimedia
79 Requires: %{name} = %{version}-%{release}
80 %if %{without bootstrap}
81 Requires: gpac >= 0.5.0-3
87 %description -n x264 -l pl.UTF-8
88 Dekoder x264 działający z linii poleceń.
91 %setup -q -n x264-snapshot-%{snap}-%{snaph}
93 %if "%{pld_release}" == "ac"
102 --host=%{_target_platform} \
103 --prefix=%{_prefix} \
104 --exec-prefix=%{_prefix} \
105 --bindir=%{_bindir} \
106 --includedir=%{_includedir} \
107 --libdir=%{_libdir} \
108 --extra-cflags="%{rpmcflags}" \
109 %{!?with_asm:--disable-asm} \
117 rm -rf $RPM_BUILD_ROOT
120 DESTDIR=$RPM_BUILD_ROOT
123 rm -rf $RPM_BUILD_ROOT
125 %post -p /sbin/ldconfig
126 %postun -p /sbin/ldconfig
129 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_libdir}/libx264.so.157
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_libdir}/libx264.so
136 %{_includedir}/x264.h
137 %{_includedir}/x264_config.h
138 %{_pkgconfigdir}/x264.pc
141 %defattr(644,root,root,755)
145 %defattr(644,root,root,755)
146 %attr(755,root,root) %{_bindir}/x264