3 %bcond_with bootstrap # no ffmpeg/gpac support in x264 utility
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: 0d8c9c3ab208a444de137e2983637f14
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.5.0-3
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 # encoder/macroblock.c breaks strict-aliasing rules
39 %define specflags -fno-strict-aliasing
42 libx264 library for encoding H264 video format.
44 %description -l pl.UTF-8
45 Biblioteka libx264 do kodowania w formacie obrazu H264.
48 Summary: Header files for x264 library
49 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki x264
50 Group: Development/Libraries
51 Requires: %{name} = %{version}-%{release}
54 Header files for x264 library.
56 %description devel -l pl.UTF-8
57 Pliki nagłówkowe biblioteki x264.
60 Summary: Static x264 library
61 Summary(pl.UTF-8): Statyczna biblioteka x264
62 Group: Development/Libraries
63 Requires: %{name}-devel = %{version}-%{release}
68 %description static -l pl.UTF-8
69 Statyczna biblioteka x264.
72 Summary: x264 CLI decoder
73 Summary(pl.UTF-8): Dekoder x264 działający z linii poleceń
74 Group: Applications/Multimedia
75 Requires: %{name} = %{version}-%{release}
76 %if %{without bootstrap}
77 Requires: gpac >= 0.5.0-3
83 %description -n x264 -l pl.UTF-8
84 Dekoder x264 działający z linii poleceń.
87 %setup -q -n x264-snapshot-%{snap}-%{snaph}
89 %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.120
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